Add a trigger
To add a trigger:Edit your agent
Open your agent in the Agent Builder inbox.
Next to the agent name, click the Edit Agent icon.
Add a Gmail trigger
The Gmail trigger activates your agent when new emails arrive in your inbox. To add a Gmail trigger:- In the Triggers section, click + Add.
- Select the Gmail section and click Connect Gmail Account.
- Enter the email address you want to monitor.
- Click Confirm.
- Authenticate with your Google account.
- After completing authentication, click I’ve completed authentication.
Add a Slack trigger
The Slack trigger activates your agent when messages are posted in a specific Slack channel. For full setup instructions including OAuth authorization, bot invitation, and tool configuration, see Integrate Slack with an agent.Add a cron trigger
Cron triggers run your agent on a recurring time-based schedule, such as daily reports or weekly summaries. To add a cron trigger:- In the Triggers section, click + Add.
- Select the Schedule section and click + Create new schedule.
-
Choose when to run your agent.
Cron schedules are in UTC. Convert your desired execution time to UTC when configuring the schedule.
- Click Confirm.
Pause and resume triggers
You can pause and resume triggers without removing them. To pause all triggers:- In the Agent Builder inbox, open your agent.
- Next to the agent name, click the Edit Agent icon.
- In the Triggers section, click Pause triggers button to pause all triggers.
Thread behavior
How threads are marked depends on whether the agent uses triggers:- Chat agents (no trigger): Responses mark the thread as unread. Viewing the thread marks it as read.
- Trigger-based agents: Responses keep the thread as read by default.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.