> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doe.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Loops

> Scheduled agents for recurring work

Loops are scheduled agents for recurring work: daily reports, alerts, digests, and reviews, built with natural language. A Loop stores a prompt, a cadence, and the context it needs, then runs automatically on your behalf.

***

## Creating a Loop

Ask for work that includes a time reference:

```text theme={null}
Send me a weekly pipeline summary every Monday at 9am PT.
```

```text theme={null}
Every morning, check @Ramp for transactions over $1,000 from yesterday and flag missing approvals.
```

Doe detects the schedule, extracts the recurring work, validates the cadence, and asks you to confirm. After confirmation, the Loop appears on the Loops page.

Each run starts from the Loop's source session, so the agent re-executes the task with fresh data every time instead of replaying an old answer. Loops also remember the intelligence mode that was active when they were created.

Loops can use the same context as normal requests, including files, folders, previous sessions, and connected integrations.

Use Loops for the work that should happen whether or not someone remembers to ask: pipeline checks, weekly metrics, expense reviews, renewal risk, customer follow-ups, and team updates.

***

## Managing Loops

Open the Loops page with `Cmd + J` (Mac) or `Ctrl + J` (Windows).

Each Loop shows its status, cadence, next run, last run, total runs, success rate, and services involved.

| Action           | What it does                                 |
| ---------------- | -------------------------------------------- |
| **Run Now**      | Execute immediately                          |
| **Pause/Resume** | Stop or restart the schedule                 |
| **Edit**         | Change the Loop prompt and schedule language |
| **Delete**       | Remove the Loop from the Loops list          |
| **See run**      | Open the chat created by a past run          |

Right-click any Loop for quick access to Run Now, Pause/Resume, and Delete.

When editing a Loop, Doe validates schedule changes before saving. If the prompt no longer includes a usable schedule, Doe will ask you to rewrite it in plain English.

## Corrections That Stick

Fixing a mistake inside one run does not change future runs. To make a correction permanent, ask Doe to add it as a Loop constraint:

```text theme={null}
From now on, always include the "And Finally" section in the weekly report.
Add that as a constraint on this Loop.
```

Constraints are injected into every future run exactly as written, and each Loop can hold up to 20 of them. Doe also builds a requirements checklist from the Loop's spec and verifies the hard requirements in each run's output before finishing.

## Operate Loops at Scale

The Loops page is built for more than a short personal list. Use it to monitor recurring tasks across services, spot failures, and manage many Loops at once.

| Control      | Use it for                                                                               |
| ------------ | ---------------------------------------------------------------------------------------- |
| Search       | Find Loops by name, service, prompt, or related task                                     |
| Filters      | Narrow by status (Running, Paused, Failing), frequency, health, or service               |
| Health       | Spot Loops rated Excellent (95%+ success), Good (80-94%), or Needs Attention (below 80%) |
| Sort         | Review by next run, recently created, success rate, total runs, service, or name         |
| List view    | Scan Loops grouped by timing: Overdue, Today, Tomorrow, Upcoming, Paused, No Schedule    |
| Board view   | Group Loops into columns by status, service, frequency, or next run                      |
| Multi-select | Pause, resume, or delete several Loops at once                                           |
| Run history  | Open past runs and inspect the chat, output, and failure details                         |

Use health and next-run views to catch overdue or failing Loops before they become silent gaps in reporting.

***

## Execution Limits

Loops have built-in safeguards:

* **Minimum interval**: 5 minutes between runs
* **Active Loops**: 50 active Loops per user
* **Max executions**: Optional cap on total runs when configured
* **Expiration date**: Optional end date
* **Auto-pause**: Stops after 5 consecutive failed or connection-blocked runs

When a Loop hits its limit or expires, it pauses automatically. Doe also pauses Loops proactively when a connected service they rely on expires or is disconnected, so runs are not wasted on work that cannot finish. Resuming a Loop clears its failure streak, and a successful run resets the counter.

***

## Examples

**Sales Pipeline Review** - *Weekdays at 9am*

```text theme={null}
Check @HubSpot for deals closing this month.
Show deal name, value, stage, days since last activity.
Flag any over $50k with no activity in 7 days.
```

**Daily Expense Check** - *Every day at 8am*

```text theme={null}
Check @Ramp for transactions over $1,000 from yesterday.
Categorize by department. List any missing approvals.
```

**Customer Follow-Up Queue** - *Every weekday at 4pm*

```text theme={null}
Search @Gmail and @HubSpot for customer replies that need a response.
Draft replies only. Do not send. Include source thread links.
```

**Weekly Metrics Workbook** - *Mondays at 7am*

```text theme={null}
Pull activation and revenue metrics from the connected analytics and revenue sources.
Update the metrics spreadsheet and summarize changes.
```

**Executive Briefing** - *Mondays at 8am*

```text theme={null}
Review CRM, customer, product, and finance signals from last week.
Draft an executive briefing with wins, risks, open decisions, and owner follow-ups.
Save the report and draft a team update for review.
```

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Loop didn't run">
    Check status on the Loops page. It may be paused, expired, or hit its max runs. Also verify your integrations are still connected in Settings -> Connections.
  </Accordion>

  <Accordion title="Loop was auto-paused">
    Loops pause after 5 consecutive failed or connection-blocked runs, and immediately when a service they depend on expires or is disconnected. Check run history for errors. Common causes are expired integrations, missing permissions, insufficient credits, or prompts that need clearer scope. Loops belonging to a member who leaves the organization are paused automatically.
  </Accordion>

  <Accordion title="Schedule times seem wrong">
    Verify your timezone in the Loop settings. Scheduled times use the timezone you selected, not your system timezone.
  </Accordion>

  <Accordion title="Can a Loop use files and integrations?">
    Yes. Mention the files, folders, sessions, or integrations the Loop should use. Make sure any connected services stay active.
  </Accordion>
</AccordionGroup>

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Prompting" href="/essentials/asking-questions">
    Write better prompts for Loops
  </Card>

  <Card title="Integrations" href="/essentials/integrations">
    Connect apps for Loops to use
  </Card>

  <Card title="Sharing" href="/essentials/sharing">
    Share Loop outputs and recurring report folders
  </Card>

  <Card title="Preview Pane" href="/essentials/chat">
    Monitor Loop execution in real-time
  </Card>
</CardGroup>
