During a conversation with a chatbot, you may well give customers the opportunity to speak with a live agent. After dealing with the customer's query, the agent may want to send the customer back to the chatbot. You may create an outcome that sends the customer back to the chatbot, using flows.
You will need access to Advanced Flows to use this technique, available from the LeadApp Store.
Create the flow
In your Admin account:
- Go to the Inbound page.
- Go to the Flows subpage.
- Click the Create message flow button.
- Type a Flow Name for the flow and click OK.
- Drag the LeadML applet from the Message Applets to the Drop applet here box in the Message Received section.
- In the body of the applet, type:
<RewriteBody>rejoin</RewriteBody>
- Drag the Chatbot applet from the Message Applets to the Drop applet here box in the New contact section.
- In the Chatbot applet, click the Select a chatbot drop-down list and select the chatbot you want to return the customer to.
- Click the Save button in the top left of the screen.
Create the outcome
Now you can create an outcome which will use this flow. Note that this must be a project specific outcome, not a global one.
In your Admin account:
- Go to the Projects page.
- Go to the Project List subpage.
- If necessary search for the project you want to add this outcome to.
- Click the name of the project to edit it.
- Scroll down to the Results section of the project.
- Click the New reason button.
- Type a name for this call ending reason in the first, unlabelled, field. This is the name agents will see when they are selecting a call ending reason, it is important that the name you use makes the purpose clear.
- In the Extra settings section of the call result, click the Redirect messages to flow drop-down list and select the flow you created above.
- Make any other changes to the project you want to make.
- Click the Save button in the top right.
It is important to note that this outcome will be visible whenever the agents need to choose an outcome in this project, not just for chat messages. Agents will be able to select this outcome for calls, but the redirection is only available for message. It will not send calls to a chatbot.