Is there a way to automatically/programatically reassign tickets if the chatbot transfers the chat?
One way I've thought of is to subscribe to MEMBER_JOIN events and tag the chat with an agent's name after it's assigned, and then add a trigger for each agent tag to reassign tickets.
For example, if I transfer from Bob (Chatbot) to Alice, I would tag the chat "Alice" and make a trigger that detects that tag and assigns the ticket to Alice.
The problem is that this is a bit messy, and would require manually updating triggers for every support agent.
The Support API seems like a good choice, but without a trigger/event subscription, I'd have to poll periodically for tickets.
EDIT: Just found out that Chat has a setting to assign tickets to the last agent to join the chat. It only seems to update once the chat has ended however, so the ticket will be assigned to the first agent until the chat ends. Is there a way to update that earlier?
Also, https://support.zendesk.com/hc/en-us/community/posts/360029389874-Ticket-assignment-Last-agent seems to indicate that there are problems with reassigning tickets within the same chat session?
Please sign in to leave a comment.