Skip to main content
A trigger tells an AI coworker to run a prompt every time a specific event arrives. Examples are a new message in a Slack channel, a new LinkedIn or WhatsApp message, a new email, form response, or payment in a connected app, or a request from one of your own systems to a webhook. The coworker reacts on its own, without anyone asking.

Trigger sources

Add a trigger

1

Open the coworker's triggers

In the sidebar, open Workspace → Automations and pick the Triggers tab. Select the coworker in the perspective bar, then click Add trigger. From the All coworkers view, Manage trigger on any trigger takes you to its coworker’s tab.
2

Choose a source

In Choose a trigger source, pick Slack, LinkedIn, WhatsApp, Integration, or Webhook, then set it up as described below.
3

Tell the coworker what to do

Fill in the final step:
  • Name (optional, up to 100 characters). If you leave it empty, the trigger uses the event name, such as “New message in #support”.
  • Prompt (required, up to 10,000 characters). What the coworker should do each time. For example: “Summarize the new file and send a Slack message to #updates”.
  • Only run when… (optional, up to 2,000 characters). A plain-language condition, an exact field rule, or both. See Only run when….
4

Check the expected actions

Duet Agents reads your prompt and shows chips for the actions each run should take, such as sending a Slack message. Remove any that don’t apply, or add missing ones. Runs that skip an expected action show a Verification warning.
5

Create it, then turn it on

Click Create Trigger. New triggers start off. Turn on the switch on the trigger card to start listening.
You can also ask the coworker to set up a trigger in chat. It creates the trigger and switches it on for you.
Whenever someone posts in #support, check whether it’s a bug report. If it is, open a Linear issue and reply in the thread with the link.

Slack

The New Slack message trigger runs “on every new human message, including thread replies” in one channel.
  1. In Slack channel, choose a channel. The list shows channels the coworker can use.
  2. Write the prompt and create the trigger.
Turning the trigger on joins the coworker to the channel if it’s public. This only works when the coworker’s Slack capability is set to Full access; otherwise, invite the coworker to the channel first. For a private channel, always invite the coworker in Slack first. Messages from bots, including other coworkers, don’t fire the trigger. If no channels are listed, you’ll see “No channels available. Install the agent in Slack or invite it to a channel, then retry.” See Slack to add the coworker to Slack and to channels.
To reply or post in the channel, the coworker needs Read and write access to it. A channel the coworker joins when you turn on the trigger starts at Read.

LinkedIn and WhatsApp

These triggers are in Beta. They use your own connected account. See LinkedIn and WhatsApp.
  1. Choose the account. If you haven’t connected one yet, click the connect button to connect it now.
  2. Choose the Event. A short description under the list explains when it fires.
  3. If the coworker doesn’t have enough access to the account yet, approve access when asked.
  4. Write the prompt and create the trigger.
Some LinkedIn events only work with certain LinkedIn products. New connections and new followers are for LinkedIn Classic only and can arrive up to six hours late.
New LinkedIn message and New WhatsApp message fire for messages you receive and messages you send. To react only to incoming messages, add a condition such as “Only run when the message was sent to me by someone else.”

Integration

Integration triggers work with connected apps that publish events. See Integrations to connect an app. The setup is a short wizard:
  1. Choose an integration. Search for the app.
  2. Account. Pick the connected account to listen on, or connect a new one.
  3. Integration access. If the coworker can’t use that account yet, you’re asked to “Give your agent access to the account before continuing.” Approve access to continue.
  4. Triggers. “Select the event that should trigger your agent.”
  5. Configure. Some events have settings, such as which folder or calendar to watch.
  6. Prompt. Write what the coworker should do, then click Create Trigger.

Webhook

Use a webhook when one of your own systems, or a tool Duet Agents has no integration for, should start the coworker. Create the webhook first (see Webhooks), then:
  1. In Choose a webhook, pick it. Disabled webhooks are greyed out. If there are none yet, use Manage webhooks to create one.
  2. If the coworker can’t use the webhook yet, a Grant access to webhook name card appears. Click Approve to continue. You can also give access ahead of time: on Connections → Advanced, select the coworker in the perspective bar and turn the webhook on under name’s access.
  3. Write what the coworker should do when the webhook fires, then click Create Trigger.
A coworker can’t create a webhook itself. If you ask it for a webhook URL, it points you to Connections → Advanced → Webhooks, then sets up the trigger once the webhook exists.

Webhooks

A webhook is a URL that Duet Agents creates for your organization. Another system sends events to it, and coworkers react to them with triggers. Webhooks live in the sidebar under Workspace → Connections → Advanced → Webhooks. Owners, Admins, and Editors can add, edit, and delete webhooks.

Add a webhook

  1. Click Add webhook.
  2. Enter a Name and, if you like, a Description.
  3. Under Signature verification, pick the Scheme your sender uses:
    • Timestamped HMAC-SHA256: name the Signature header and Timestamp header the sender signs with.
    • Standard Webhooks: for senders that follow the Standard Webhooks spec, including those built on Svix. Pick the Header names they use.
  4. Paste the sender’s Signing secret. If the sender generates the secret for you, leave it blank for now: the webhook stays disabled until you add one.
  5. Optional: under Duplicate detection, say where the sender puts its unique event ID (Header or Body field), so a redelivered event isn’t processed twice.
  6. Optional: under Event type filter, name the Body field carrying the event type and list the Event types to deliver. Other types are still recorded, just not delivered. Leave both blank to deliver every event.
  7. Click Create webhook.
Copy the URL from the webhooks table and paste it into the sending system. Every request must be signed with the shared secret. Setup guide next to Add webhook explains how to sign requests, what Duet Agents accepts, and how to rotate the secret.

Manage webhooks

The webhooks table shows each webhook’s URL (with a copy button), how many Subscribers (triggers) use it, when it was Last received, and an Enabled switch. A disabled webhook rejects incoming requests. Use the actions to Edit or Delete a webhook. Deleting it can’t be undone, and the sender can no longer reach it. Click a webhook’s name to see the events it received, each marked Received, Filtered, or Failed, with the reason. When you edit a webhook, leaving Signing secret blank keeps the current secret. A new value rotates it. The previous secret keeps working for 24 hours unless you choose to stop accepting it immediately.

Turn a trigger on or off

Each trigger card has an on/off switch. It reacts as soon as you click; if the change can’t be saved, it flips back and shows an error. When you switch on an integration, LinkedIn, or WhatsApp trigger, Duet Agents checks that the coworker can still use the account. If it can’t, a dialog asks you to “Give your agent access to the account before enabling this trigger.” A webhook trigger can’t be switched on while its webhook is disabled. Events that arrive while a trigger is off aren’t replayed when you turn it back on.

End date

A trigger can have an end date. After that date, it stops firing. Set it in the trigger’s edit card. If you set an end date that has already passed, the trigger goes quiet right away.

Only run when…

Only run when… is an optional filter. It can hold exact field rules, plain-language conditions, or both.

Exact field rules

An exact field rule checks a field of the event, such as the sender or the subject:
The sender ends with @acmecorp.com
The subject contains “invoice”
Duet Agents checks exact field rules itself, before the coworker sees the event. An event that fails a rule is recorded in Event history without starting a run. Matching a rule doesn’t call an AI model, so it uses no credits. The trigger card shows the rule.

Plain-language conditions

A plain-language condition describes what matters in your own words. “Describe what matters to you. Uncertain events get an agent check before any action.”
The email asks for my reply or decision, gives me a deadline, or reports blocked work. Ignore newsletters and promotions.
The coworker checks each event against the condition before it acts. Events that don’t match are skipped, and the trigger’s Event history shows them as Skipped by the agent, with the reason. Events still reach the coworker for this check, so a plain-language condition doesn’t save credits on its own. To filter out events without spending credits, use an exact field rule.

Test the condition

Once you’ve written a condition, open Test filter without running actions:
  1. Paste a Sample event, such as an email or event payload. When you edit an existing trigger, you can instead pick one of its 30 most recent events under Sample source.
  2. Click Test filter.
The result says Would run, Would filter, or Needs agent check, sometimes with an estimated match probability. Exact field rules always give Would run or Would filter. No actions are run during the test.

Trigger cards

Each trigger shows:
  • The account it listens on (for LinkedIn, WhatsApp, and integration triggers) and its name. An Error badge appears when the last run failed or was blocked.
  • A model picker and the on/off switch.
  • “Only run when:” followed by the condition or exact field rule, if set.
  • Event history, every event the trigger received.
  • The expected actions.
  • The latest result, and a count of recent runs with a failed count. Expand it to see each run’s Input, Response, and tool calls.
  • Instructions: the prompt.
The Trigger actions (…) menu has:
Test trigger is a real run. The coworker follows your prompt on a test event (for Slack, the message “Test Slack message”) and can take real actions: post in Slack, send email, or update your tools. Write your prompt so a test can’t cause harm, or test where the side effects are safe.
To see every trigger run in one list, click View activity above the coworker’s triggers. It opens Activity & Usage → Activity filtered to trigger runs.

Event history

Event history on each card lists “All received events, including skipped events and their reasons.” It shows 30 events per page, with Previous and Next. Each row shows when the event arrived and its outcome, such as “done”, “failed”, Skipped, or Skipped by the agent. Expand a row to see the condition check and a View agent activity link when a run started.

Why an event was skipped

How events become runs

  • Close events are batched. When several events for the same trigger arrive in quick succession, Duet Agents groups them into a single run, so the coworker handles a burst together. An event that arrives after a quiet period runs right away.
  • Runs don’t overlap. A trigger never starts a new run while its previous run is still going. New events wait for the next run.
  • Every run uses credits. See Automations overview.