Route conversations based on sentiment
Use this flow to route incoming messages to agents based on whether the tone of the message is ‘positive’, ‘negative’, or ‘neutral’!
Last updated
Use this flow to route incoming messages to agents based on whether the tone of the message is ‘positive’, ‘negative’, or ‘neutral’!
Last updated
Conversation created: The flow is triggered when an incoming message is received from a customer.
Predict sentiment: The flow passes the incoming message through an AI sentiment analysis action. This tool will analyze the content of the message and classify it as either positive, negative, or neutral based on the emotional tone conveyed.
Conditional: The flow splits into three separate branches, one for each sentiment category (positive, negative, or neutral).
Add tags to a conversation in Inbox: Within each of the three branches, the next flow action adds a tag. For example, if the message is classified as positive, it adds a "positive" tag to the conversation.
Assign to agent in Inbox: The next flow action routes the conversation to the agents who have also been assigned that sentiment to handle.
At least one installed channel
Three tags set up in Inbox (Positive, Negative, and Neutral)
Inbox agents with correlating tags
Trigger
Go to Flows > Template library and locate and select the ‘Routing Bot: Sentiment’ flow.
Click Save to my library in the top right-hand corner.
The trigger is automatically configured for WhatsApp, but you can change the trigger to a channel of your choice.
Predict sentiment
If you’ve changed the channel trigger, send a message to that channel, then run a test on the ‘Predict sentiment’ action to pull in the data from your message.
Click Save when you’re ready to move on.
Add tags to a conversation
Select one of the three sentiment branches.
Click the Add tags to a conversation in Inbox action.
In the Configuration > Tags field, type the name of the tag that you want to use. For example, if you are using the ‘Sentiment = Positive’ branch, search for the ‘Positive’ tag you’ve created for your agents.
Click Run test to check your tag configuration, then click Next.
Assign to Agent in Inbox
Click the Assign to Agent in Inbox action.
Click the Tags toggle to turn it on.
Click Next.
Repeat the ‘Add tags to a conversation’ and ‘Assign to Agent in Inbox’ steps for each of the remaining two sentiment branches.
For the ‘Else’ branch, choose a default language tag for unrecognized languages, and make sure the flow jumps to that action.
Click Publish flow to start routing conversations based on sentiment.