Skip to main content

How to capture the ticket assigned event?

Use case: After creating a ticket and assigning to an agent, we need to invoke an API based on the response stored in the Raise a Ticket node.

Use ticket-assigned-bot event event for this. To activate this event:

  1. Store the response of the Raise Ticket node in a variable.

  2. Call the following API from your backend.

curl --location '' \
--header 'X-API-key: <token>' \
--header 'Content-Type: application/json' \
--data '{
"chatAssignedBot": true

This is a one-time process. After that, you'll start receiving ticket-assigned-bot events, which you can activate in the Custom Event section and use it in your flows. For steps to create a custom function, click here.