- Follow the guide to install the Delayer app from the Zendesk marketplace if you have not done so previously.
-
Given that a new chat goes to a queue, we want to send an automated greeting message when an agent is assigned.
-
Create a trigger with the following Conditions. We want it to trigger when the user is assigned for the first time and only for the messaging channel
-
Create a trigger action. Notify by > Active Webhook and select Delayer Wehbook. to call Delayer webhook and save it.
with the following payload:
{ "add_tag": "ack", "delay": 0, "message": { "author": { "type": "business", "displayName":"Bot", "avatarUrl": "https://static.zdassets.com/web_widget/latest/default_avatar.png" }, "content": { "text": "Dear {{ticket.requester.first_name}}. Our support hero {{ticket.assignee.name}} will be helping you today.", "type": "text" } }, "ticket_id": "{{ticket.id}}" }where
add_tagthe tag to be added to the ticket.delayfor the message to be sent immediately.messagestructure is in Sunshine conversation formatdisplayNameis the the name of the senderavatarUrlis the URL to the avatar of the sendertextis the message text.
You can use Zendesk placeholders everywhere
https://support.zendesk.com/hc/en-us/articles/4408886858138-Placeholder-reference-for-business-rules
Comments
0 comments