Automations
Automations run a saved prompt in the background on a recurring schedule, in response to connected events, or manually on demand. Use an automation for repeatable workflows; for a one-off wait inside an active task, use a session's background work.
Getting started
Create an automation
Open Automations in the sidebar and select New automation, or ask the agent in any session to set one up.
Add triggers
Select Add trigger → Schedule for a recurring run or Add trigger → Event to react to a connected service or webhook. Leave triggers empty for a manual-only automation.
Write the prompt and choose a target
Describe what each run should inspect, decide, and produce, and choose whether it creates a fresh session (with your chosen model) or posts into an existing session.
Test with Run now
Select Run now to test the prompt without waiting for a trigger, then inspect the result under Runs.
Triggers
An automation can combine multiple triggers and fires whenever any matching trigger occurs.
Scheduled triggers
Run on a recurring cadence using a preset schedule or a custom cron expression (evaluated in UTC).
GitHub triggers
React to repository activity from your connected GitHub integration—such as pull request updates, merges, reviews, or check completions—scoped to selected repositories.
Slack triggers
React to events your Slack integration receives—mentions, direct messages, and handled threads—filtered to specific channels. Slack triggers only see events the integration receives, not every message in every workspace channel.
Linear triggers
React to issue events from your connected Linear workspace, including delegating matching Linear issues directly to an agent.
Monitoring and analytics triggers
Trigger automated triage or summaries from Sentry, PagerDuty, Alertmanager, and PostHog events to investigate new errors, summarize incidents, or check regressions when alerts fire.
Incoming webhooks
Generate a private webhook URL to trigger an automation from your own services, CI pipelines, or internal tools. Treat the webhook URL and secret like credentials—if exposed, rotate them and update the sender.
Filters and conditions
Narrow any event trigger with structured filter conditions (exact match, substring or pattern match, or list membership) so runs start only when an event matches your criteria.
Writing effective prompts
Write automation prompts the same way you brief a teammate on a recurring task:
- State the exact inputs to inspect and what to skip.
- Include clear decision rules for when to act, when to open a draft or PR, and when to do nothing.
- Define the output format and where results should stay (for example, keep a summary inside the workspace instead of posting externally).
Runs, pausing, and guardrails
flowchart LR
T["Schedule, event, or Run now"] --> P["Saved prompt runs"]
P --> H["Runs: outcome and linked session"]- Inspect runs: Open the Runs tab on any automation to check run status, timing, and open the linked session.
- Pause without deleting: Disable an automation to stop future triggers while keeping its prompt, triggers, and run history intact.
- Built-in guardrails: Automations enforce rate, concurrency, and queue limits so a burst of external events cannot run unchecked.
- Manual tests vs. event filters: Run now verifies your prompt end to end, but does not verify that a GitHub, Slack, or webhook payload matches your trigger filters.