Start an agent from events in another system
A trigger has two halves. A trigger connection links Bud to one external app, and holds the credentials needed to trust its webhooks. It is created once and can be shared. A trigger subscription belongs to one agent and says which events from that connection start a run.What happens when an event arrives
- The app sends a webhook to the connection’s Webhook URL.
- Bud verifies it against the provider’s signature scheme or token, using the credentials stored with the connection. A delivery that fails verification is rejected and no agent runs. Delivery to a connection is also rate limited.
- Duplicates of the same delivery are dropped, so a provider that retries does not start two runs.
- The event is normalised to a standard shape with an event type such as Issue opened.
- It is matched against agent subscriptions: the connection and the event types you chose.
- The agent is started with the event, as a run whose source is trigger. You will see it on the agent’s Runs tab and in the governance conditions
bud.trigger_originandbud.connection_id.
Create the trigger connection
Who: someone with access to the project; only an administrator can make a connection global Where: Connectors → Triggers → Add Trigger- Select a Provider: choose the app (GitHub, Jira, PagerDuty, Zendesk, Stripe, Linear, Asana and many more). The platform sets whether it is a trigger or a chat channel from the provider.
- Trigger details: enter a name. Administrators can switch on Global trigger.
- Select Projects: choose the projects that may use it. This step is skipped for a global trigger.
- Enter the provider’s Credentials (for most providers, a signing secret or token) and click Create.
- Copy the Webhook URL from the success screen with its copy button, click Done, and register that address as a webhook in the provider. Use the same signing secret there.
The Triggers list shows each connection’s name, provider, scope (Global or Project), connection ID and creation date. Delete is available to administrators.
Subscribe an agent to events
Who: Model manage permission. The agent must be saved first. Where: Agent builder → Tools → Triggers → + Add The Triggers tab lists Active Triggers (“Route provider events to this agent”). Each row has edit and delete icons. If the agent has not been saved, the tab asks you to save it first. In the setup screen, enter a name first, then answer the questions in order. A live preview on the right shows what the agent will receive.
Click Save trigger. To change it later, click the edit icon in Active Triggers; to stop it, click delete.
Trigger-started runs have no person in the conversation, so an Escalate rule is the way to put a person in the loop. Set Routes to to named project members rather than Invoker.