Create a trigger
- Go to Support > Settings > Advanced > Ticket Triggers.
- Click New Trigger.
- In General, choose Trigger on: Ticket created or Ticket updated.
- Pick the Ticketing system, give the trigger a Title, and optionally a Description.
- Set Condition matching: All conditions must match (AND) or Any condition must match (OR).
- In Conditions & actions, add conditions on the Conditions tab and actions on the Actions tab.
- Turn the trigger on with Status, then save.
- Create or change a ticket that matches your conditions and check that the action runs.
When a trigger runs
- Ticket created runs once, when a new ticket comes in.
- Ticket updated runs when an AGO-managed ticket changes: its status changes, it’s assigned to a team member, or a staff member adds a reply. Tickets synced from an external system (such as Zendesk) don’t fire “updated” triggers, since their changes come from that system.
Conditions
For permission, organization, agent access, and AI category, you pick the value from a list.
Operators
Actions
Actions run in the order they appear in the trigger.
Trigger order
Triggers run in order of their Position value, lowest first. Order matters when one trigger changes a field that another trigger checks.Routing tickets to a team or a user
Combine the requester conditions (permission, organization, agent access) and the AI Category condition with the Assign to User or Assign to Team actions to send each new ticket to the right place. Example: route VIP billing questions- Trigger on: Ticket created
- Conditions (all must match): Requester Permission is “vip”, AI Category is “billing”
- Action: Assign to Team “Billing”
AI routing categories
The AI Category condition uses an AI classifier that reads each new ticket and assigns it one category from a list you define. Configure it in Support > Settings > Advanced > AI Routing:- Enable AI classification: turns the classifier on or off.
- Classification instructions: how to pick a category, what each one means, and edge cases to watch for.
- Categories: the categories the classifier can choose from, each with a name and a description.
Running an agent on new tickets
The Invoke AGO Agent action hands a new ticket to a background agent so it can read the ticket and draft a first pass before a person picks it up.- In Agents, open the agent you want to run and turn on Background Agent. Only background agents appear in the action.
- Create a trigger on Ticket created. Add conditions if you only want it on certain tickets.
- Add the Invoke AGO Agent action and pick your background agent.
- Optionally fill in Objective to tell the agent what to do. Leave it empty to use a default. It accepts the placeholders listed below, such as
{{ticket.subject}}and{{ticket.body}}.
Webhooks
The Execute Webhook action sends ticket data to a URL you choose.
Without a body template, AGO sends a default body that includes these ticket fields:
external_id is the ticket’s ID in your external ticketing system, when there is one. Your endpoint must respond with a 2xx status within 10 seconds, or the run is marked as failed.
Placeholders
Use placeholders in webhook body templates, field values, and agent objectives:
When the ticket came from a conversation, you can also use:
Example: webhook body template
Execution logs
On the Ticket Triggers page, open a trigger’s menu and choose View Logs to see each run and whether it succeeded or failed.Tips
- Prefer several simple triggers over one trigger with many conditions.
- Use Position to control which trigger runs first when two triggers touch the same field.
- Turn a trigger off with Status instead of deleting it while you investigate a problem.
Related
- Thread Triggers: call a webhook when a conversation’s admin status changes
- Ticketing: ticketing overview
