Skip to main content
Ticket triggers run actions on a ticket when it is created or updated and matches the conditions you set. Use them to set priority, route tickets to a team, push values to Zendesk, call a webhook, or hand a ticket to a background agent.

Create a trigger

  1. Go to Support > Settings > Advanced > Ticket Triggers.
  2. Click New Trigger.
  3. In General, choose Trigger on: Ticket created or Ticket updated.
  4. Pick the Ticketing system, give the trigger a Title, and optionally a Description.
  5. Set Condition matching: All conditions must match (AND) or Any condition must match (OR).
  6. In Conditions & actions, add conditions on the Conditions tab and actions on the Actions tab.
  7. Turn the trigger on with Status, then save.
  8. Create or change a ticket that matches your conditions and check that the action runs.
Tip: Start with a single condition and a single action, confirm it works, then add more.

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.
Changes made by a trigger’s own actions don’t fire Ticket updated triggers, so a trigger that updates a ticket can’t start a loop.

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.
The classifier runs once per ticket, so its category is available to every trigger. If classification is off or no category fits, the AI Category condition doesn’t match and your other triggers still run.

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.
  1. In Agents, open the agent you want to run and turn on Background Agent. Only background agents appear in the action.
  2. Create a trigger on Ticket created. Add conditions if you only want it on certain tickets.
  3. Add the Invoke AGO Agent action and pick your background agent.
  4. 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}}.
When the trigger fires, the ticket gets an internal note with a link to the agent’s run, where you can watch it work. A Completed outcome posts the agent’s answer as a second internal note, visible to staff only and never sent to the requester. Incomplete or failed runs stay in the linked conversation. See Background agent results. If the agent needs approval for a sensitive step, it pauses and the ticket gets a note linking to the approval. Approve it and the agent continues.

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.