Notify customers on agent unavailability when offline handling is enabled
Prerequisite: Enable offline handling settings as described here.
When Offline handling is enabled and you want to inform customers that agents are currently unavailable and their queries will be addressed once an agent is back online, follow the steps below by picking your closest use-case:
Notification for open and queued chats
Navigate to Automation > Flows, open the flow that includes the Raise ticket node.
Store the output of the Raise ticket node in a variable, as shown in the image.
Connect the error part of the Raise ticket node to a new node, which is responsible for displaying messages to the customer.
When offline handling is enabled, the chat is not immediately answered, and the flow continues to the next node until an agent responds.
In the new flow, retrieve the status of the ticket by accessing the status value stored in the variable
{{{variables.raiseTicketObj.status}}}
.Add a condition node to your flow to identify the ticket status.
Depending on the ticket status identified in the condition node, you can connect the conditions to a Text node to display a relevant message addressing the customer.
You can also fetch the ticket ID by using the variable:
{{{variables.activeTicketNumber}}}
Notification for open chats (recommended)
- Access the Automation section and navigate to Events.
- Open the Custom events and click +Add event.
- Provide the name
ticket-opened
and click Create event. - Ensure that the
ticket-open
event is Active. If not, make it Active by clicking on the three dots next to it. - Create a new flow in the Automation > Build.
- Within the flow, add a start trigger by clicking on the start node. Select event from the dropdown and set the value as
ticket-opened
. - Add a text node to display an acknowledgment to the customer, informing them to wait for a while.
Expected behaviour after creating a flow to notify customers
Assume all the agents are offline at the same time and a customer has requested to talk to an agent.
A live chat request is raised
The live chat appears in the "Open chats" section of the inbox
The customer waits on the chat screen
A message is displayed to the customer, stating the delay: "Your chat will be assigned as soon as we find an available agent. Please wait, and thank you for your patience"
When any agent in that group comes online and becomes available, the live chat is immediately assigned to them