Schedule & Event Routines
Learn how to automate proactive workflows by creating scheduled routines or triggering your AI Teammate from integrated app events.
Routines are automated background workflows that empower your AI Teammates to work autonomously without waiting for manual prompts. Whether checking critical customer emails every morning or auditing database query costs every Monday, Routines ensure repetitive tasks are handled proactively.
Diaflow offers flexible ways to access, create, and configure routines, either by letting AI draft the instructions for you or by manually fine-tuning every parameter.
Where to Add a Routine
You can initiate routine creation from two convenient locations in your workspace:
Option A: From the Chat Workspace (Routines Widget): Look at the bottom-right panel of your chat view. In the Routines widget header, click the
+(Add) icon to quickly create a new routine for the active Teammate.Option B: From Teammate Settings: Click the Settings
⚙️icon in the top-right corner of the workspace, navigate to the Routines tab on the left sidebar, and click the green+(Add) button located next to the search and filter bar.


Methods of Creating a Routine
When the Create a routine window opens, you can choose between AI-assisted generation or full manual control:

Method 1: Generate with AI (Fast & Recommended)
Simply describe what you want the Teammate to accomplish in plain language:
In the input box under "What do you want the teammate to do?", type your request (e.g.,
Check email everyday at 7amorAudit database query costs every Monday at 8am).Press Enter or click the Arrow Up
↑button.What Diaflow does automatically:
Names the Routine: Generates a professional title (e.g., Check email daily at 7 AM).
Drafts a Structured Prompt: Composes a comprehensive, production-ready instruction set including scope, priority criteria, formatting requirements, and fallback handling (e.g., "If there are no new emails, respond with 'No new emails found.'").
Pre-configures Triggers: Automatically maps your time preference to the appropriate recurrence schedule.
Review the generated configuration and click Save.
Method 2: Create a Routine Manually
For granular control over triggers, execution prompts, and thread behaviors, click Create a routine manually → at the bottom of the modal:
Routine name: Enter a clear, identifiable name for your routine (e.g., Daily Data Pipeline Health & Query Cost Audit).
Prompt: Write the detailed prompt your Teammate must follow on each run. You can specify what data to inspect, how to prioritize findings, and the exact output format.
Trigger Configuration: Choose how this routine initiates:
Schedule (Recurring Time):
Click
+ Addto set execution times (e.g., At 07:00, every 1 day(s), starting 09/07/2026). You can configure multiple schedules for different intervals (Daily, Weekly, etc.).
On App Event (Event-Driven Automation):
Select a connected third-party tool (e.g., Gmail, Google Calendar, Slack, HubSpot) and define the triggering event (e.g., New email received, Meeting ended, Deal stage updated).
Thread Management (
Start a new thread each run):Checked (ON): Each automated run generates a fresh conversation thread. This prevents long-running routines from cluttering your existing chats and keeps each execution history isolated.
Unchecked (OFF): New run outputs will append directly to the current conversation thread.
Click Save to activate the routine.

Next steps
Managing & Running Routines: Learn how to test routines with on-demand runs, toggle active schedules, and review execution logs.
Last updated