> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/teammates/routines-and-automation.md).

# Routines & Automation

Automate recurring business processes in the background with schedule-based and event-driven routines.

**Routines** are automated workflows that your AI Teammate executes autonomously, either on a recurring schedule or whenever a specific event occurs in an integrated application.

Instead of manually reminding your Teammate to perform regular tasks, Routines allow your AI coworker to work proactively in the background and deliver structured results straight to your **Inbox**.

{% hint style="info" %}
All executions of a routine are compiled into a rolling conversation thread inside your Inbox panel, giving you a clean, chronological audit trail with timestamp separators.
{% endhint %}

#### In this section <a href="#user-content-in-this-section-1" id="user-content-in-this-section-1"></a>

Learn how to configure and control autonomous background tasks:

* [**Schedule & Event Routines**](/teammates/routines-and-automation/schedule-and-event-routines.md): Set up recurring time-based schedules (Daily, Weekly, Monthly) or trigger workflows from third-party app events (e.g., new Gmail messages, Calendar events).
* [**Managing & Running Routines**](/teammates/routines-and-automation/managing-and-running-routines.md): Test routines on demand with the **Run Now** trigger, pause/resume active schedules, and adjust prompts.
