Skip to main content

Notify customers on agent unavailability when offline handling is enabled

info

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

  1. Navigate to Studio > Build > Flows, open the flow that includes the Raise ticket node.

  2. Store the output of the Raise ticket node in a variable, as shown in the image.

    drawing
  3. 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.

    drawing
  4. In the new flow, retrieve the status of the ticket by accessing the status value stored in the variable {{{variables.raiseTicketObj.status}}}.

  5. Add a condition node to your flow to identify the ticket status.

    drawing
  6. 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}}}


  1. Access the Studio section and navigate to Events.
  2. Open the Custom events and click +Add event.
  3. Provide the name ticket-opened and click Create event.
  4. Ensure that the ticket-open event is Active. If not, make it Active by clicking on the three dots next to it.
  5. Create a new flow in the Studio > Build.
  6. 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.
  7. 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