Automate work
Have your AI teammates work without you prompting them: on a schedule, later in the same conversation, or when something happens in another app.
Your AI teammates don't have to wait for a message. They can run every morning, pick a conversation back up tomorrow, or start work when an email arrives. You set all of it up the same way: tell the agent what you want, in plain words, and it sets up the automation for you.
Everything an agent sets up to run on its own appears under Triggers on its Agent Home, where you can see, pause or delete it.
Pick the right kind
Which one do I want?
What should start the agent?
Scheduled task
For work that should happen at a set time, once or on repeat. Each run is a new session that gets the instructions you agreed on, not the conversation that created it.
- You:
Every weekday at 9, summarize my inbox
- Agent:
Done. Every weekday at 9:00 AM I’ll summarize your inbox. You can change or pause it under Triggers on my home page.
Weekday inbox summaryScheduled- Schedule
- Weekdays at 9:00 AM
- Next run
- Tomorrow, 9:00 AM
See Scheduled tasks.
Pause and resume this conversation
For a follow-up that needs this conversation's context: waiting on a reply, a review, a deployment or a long job. The agent pauses the conversation and picks it back up at the time you agree on, with everything it already knew and a note to itself about what to check.
- You:
I emailed the supplier. Check tomorrow at 10 whether they replied, and if not, nudge them.
- Agent:
Will do. I’ll pick this up tomorrow at 10:00 AM and check for their reply.
While it's paused, a banner above the composer shows what the agent will do and when it Auto-resumes. Click Run now to resume straight away, or Cancel to call it off.
- Each conversation has one pending resume. Asking for a new time replaces it.
- A resume happens once. If the thing it's waiting for still hasn't happened, the agent can set another.
- Only the main conversation can pause itself, not a subagent working inside it.
Trigger from a connected app
For work that should start when something happens in a service you've connected, such as a new email in Gmail or a new issue in GitHub. The agent finds the events your connected account offers and subscribes to the one you describe. Each event starts a new session with the event's details.
- You:
Whenever a customer emails about a refund, draft a reply and flag it for me
- Agent:
Set up. When a new email arrives in your Gmail, I’ll check whether it’s about a refund and, if so, draft a reply and flag it for you.
See Webhook triggers.
Custom webhook
For your own systems, or any service that can send a webhook. The agent creates a webhook URL for you to paste into the other system. It can check signatures and ignore events you don't care about; just tell it what the sender is and what matters.
- You:
Give me a webhook for Stripe. When a payment fails, post the customer and amount in #billing.
- Agent:
Here’s your webhook URL. Add it in Stripe as an endpoint, then send me the signing secret so I only accept events that really come from Stripe.
See Webhook triggers.
Hooks
Hooks are checks and steps that run automatically at points in every session: before or after the agent uses a tool, when a message arrives, or when the agent finishes a turn. Use them for guardrails ("never push to main"), or for steps that should always happen ("format any file you edit"). They run in all of the agent's sessions, including scheduled and triggered runs.
- You:
Add a hook that stops you from running any command that deletes files outside /workspace/tmp
- Agent:
Added. Before any shell command runs, a check now blocks deletes outside /workspace/tmp.
An agent with hooks shows a Hooks section on its Agent Home. Click Remove Hook on one to delete it.
What runs where
Automations run where the agent runs.
Cloud agents run around the clock. Scheduled tasks, resumes, triggers and webhooks all fire whether or not you have Gamut open.
Local agents run on your computer, so their automations only fire while the desktop app is running. A scheduled task that came due while the app was closed runs once when you reopen it, then carries on with its schedule. Webhook triggers need the app connected to the Gamut platform; events that arrive while you're offline are held and delivered when you're back.
To have automations run around the clock, use a Cloud agent. See Run Gamut.
Agents run as long as your server does. Triggers from connected apps and custom webhooks need a webhook relay; if your deployment has none, the trigger's page says "This deployment has no webhook relay, so webhook triggers cannot receive events."
A few limits apply in every mode:
- Frequent schedules: anything more often than every 15 minutes gets a warning, because runs can pile up and costs add up. A new run is skipped while the previous one is still going.
- Many schedules: the agent is warned when it has more than four active schedules, and more strongly above six, to catch duplicates or a task that keeps scheduling more tasks.
- Same permissions: an automated run can do only what the agent could do in a chat. Actions that need your approval still ask for it. See Permissions.
You can get a notification when a scheduled task starts. See Notifications.