Use a Chat trigger for messaging to notify visitors if a department or group is offline. The below trigger recipe offers a way to send a message to visitors requesting a new messaging conversation when all agents in a specified group are offline.
The workflow includes the steps below.
Step 1: Create the trigger
To create this workflow
- Open Chat, and create a Chat trigger.
- Give the trigger a name, such as "Notify for offline department" and a description
- For the option Channel, select Messaging
- For the option Run trigger, select When a visitor requests a chat
- Under Check conditions, select Check all of the following conditions
-
Department | Equals | Support Group
<group_id>
- This condition requires manually typing "Support Group", followed by the group ID. You can find the group ID using the List Groups API endpoint. Enter the URL
https://yoursubdomain.zendesk.com/api/v2/groups
and copy the ID number from your intended group to use in your Chat trigger. After you enter the first condition, select the + button to add another condition
- This condition requires manually typing "Support Group", followed by the group ID. You can find the group ID using the List Groups API endpoint. Enter the URL
-
Department status | Department Name | Offline
- In Agent Workspace, departments and groups are merged. When a Chat trigger references a specific department it refers to the group by the same name
- In Agent Workspace, departments and groups are merged. When a Chat trigger references a specific department it refers to the group by the same name
-
Department | Equals | Support Group
- Under Perform the following actions, add:
- Send message to visitor | Customer Support Team | Our team is offline at the moment. We will respond as soon as we are able, during our working hours of M-F 8am - 5pm EST
- Customize the message using own business hours and preferred language
Tip: Messaging trigger access for Zendesk accounts is being moved from the Chat Dashboard to Admin Center in phases. If your messaging triggers do not appear in the Chat dashboard as described in this article, see About messaging triggers in Admin Center. For more information on the move, see the announcement: Announcing improved messaging backend for messaging customers (updated).
Step 2: Test the trigger
Test the trigger to ensure that it functions correctly to inform visitors that the department is offline.
To test the trigger
- Set all agents in your intended messaging department to Offline. You need to have at least one agent in a separate messaging or chat department set to Online in order for the chat function to appear and the trigger to fire.
- Open a new private browser window and open the messaging widget on your help center or website
- Open a new messaging conversation to confirm that the trigger fires.
3 comments
Gary Shand
Hi Erik,
This chat trigger works nicely in business hours but is conflicting with my setup for Flow (Bot) Builder for out of hours messages.
I have the flow set up to clarify to the customer that it is out of hours etc, so the bot takes care of this. However, once this is done and the customer message is sent to our inbox this chat trigger fires and essentially repeats some of the communication from the bot.
Is there any way to ensure this chat trigger only fires when it is inside business hours, because we don't need it to fire outside of these hours?
0
David
Hi Gary
To get this trigger to only fire during business hours, you should be able to select Account Status equals Online Under Meet All Conditions.
You also have the option to select the hour of day equals or does not equal. You could put the hours of operation in there. Keep in mind that it's UTC so if you go that route ensure you adjust accordingly.
1
Glenn DeRosett
I have a trigger set up to assign a message to open and assign to an agent. How to I set a trigger to move to the next agent if that agent assigned doesnt respond in some period of time.. like 30 seconds
0