> This is a page from the ElevenLabs documentation. For an index of the documentation, fetch https://elevenlabs.io/docs/llms.txt.

# Routines (Beta)

A routine is a flow of steps that runs in the background when a conversation ends, on a schedule, or when another system sends a webhook. Steps can call an API, run a tool, ask an agent to draft a reply, place an outbound call, or wait until a set time.

![Routine editor with the Support follow-up routine on the canvas and its trigger's settings
open](/docs/_fern-files/_img/2f5e8a547bf8b92bd7db86ac5f68071d059dc544583a8504246f15ad18ba78c9.webp)

> **Info**
>
> Routines are in beta and not yet available in every workspace. To request access, contact your
> account manager. Routines aren't available with Zero Retention Mode yet, because runs store data.

## When to use a routine

Routines are ideal for flows that need to run the same way every time, such as checking in with a customer a few days after every support call. A routine runs the steps you defined, in order, and a single run can span days or weeks. Every run is recorded, and a step can still hand a judgment call to an agent.

## How it works

Every routine has one trigger and the steps connected after it. When the trigger fires, it starts a run and passes in the run's input, such as the conversation that just ended. Each step reads the values it needs from that input, from earlier steps, or from the routine's variables, and its output is available to the steps after it.

Edit the routine as a draft, test it with live or mocked steps, then publish it as a numbered version. While the routine is active, its trigger runs the published version, and run history records what each step received and returned. [Build a routine](/docs/eleven-agents/operate/routines/build) walks through each part.

## Triggers and steps

A routine starts from one of four [triggers](/docs/eleven-agents/operate/routines/triggers): **Manual run**, **Schedule**, **Incoming webhook**, or **Conversation ended**. It can use five types of [steps](/docs/eleven-agents/operate/routines/steps): **HTTP request**, **Tool**, **Agent**, **Outbound call**, and **Wait**.

## Example use cases

A few examples to get you started. You can combine any of the triggers and steps above to build your own.

#### Post-call follow-up

When a support call ends, update the customer's ticket with what was discussed and have an agent
draft a follow-up email.

#### Callbacks and reminders

When a webhook reports a missed call or a booked appointment, wait until the right time and
place an outbound call.

#### Scheduled operations

Every morning, pull open tickets from your helpdesk, summarize them with an agent, and post the
summary to a team channel.

## Availability

Routines are built and managed in the ElevenAgents dashboard. There's no API, CLI, or SDK for creating or editing routines yet, so these pages cover the dashboard only. To build a routine from a description instead, use [Architect](/docs/eleven-agents/operate/architect).

## Limits

| Limit                  | Value                                                                                 |
| ---------------------- | ------------------------------------------------------------------------------------- |
| **Run length**         | Up to 31 days.                                                                        |
| **Wait step**          | Up to 30 days.                                                                        |
| **Runs per workspace** | 1,000 an hour across all routines. Runs started by a conversation ending don't count. |
| **Webhook requests**   | 60 a minute per routine, with a body of up to 256 KB.                                 |

## Privacy

Runs store each step's inputs and outputs, which can include customer data. They're deleted 30 days after they end by default, or when the starting conversation's transcript is deleted, if that's sooner. See [Retention](/docs/eleven-agents/operate/routines/runs#retention) to change this. Encrypted conversations and conversations in Zero Retention Mode don't start routines.

## Next steps

#### [Build a routine](/docs/eleven-agents/operate/routines/build)

Create a routine and connect its steps

#### [Triggers](/docs/eleven-agents/operate/routines/triggers)

Configure when runs start

#### [Steps](/docs/eleven-agents/operate/routines/steps)

Settings and outputs for each step type

#### [Test and publish](/docs/eleven-agents/operate/routines/test-and-publish)

Test your draft, then publish and activate it

#### [Runs](/docs/eleven-agents/operate/routines/runs)

Read run history and understand run outcomes