Direct a conversation flow with logic

Chatbot conversations feel more natural when the chatbot can respond as if it remembers what has been discussed so far. If a user has been talking about their personal account and then asks about credit card applications, they don't want to be asked if they mean a business account.  But sometimes choosing the most appropriate response relies on information that the user gave much earlier in the conversation.

We could create a flow of branching triage passages, or questions in a tree of conversation contexts, but that's a lot of maintenance and potential duplication. We want the chatbot to be able to remember and use information the user has given it without having to re-ask it, and without us creating a lot of duplicate content.

To achieve this, we use:

  • A placeholder called a variable, which is designed to hold values specific to a user.
  • A passage type called Logic, which can direct the flow of a conversation based on conditions you define.

In this guide, we'll direct the conversation to two different credit card application passages, depending on whether the user's account type is business or personal. We're going to:

  1. Create the variable we'll use to store our user's account type.
  2. Create the passage where we ask their account type.
  3. Store the user's account type to our variable.
  4. Create some passages to respond to the business and personal applications.
  5. Create a Logic to direct the conversation to the correct application passage based on the account type variable.
  6. Add some Incoming questions to the Logic so that general credit card application questions will be directed appropriately by the Logic.
  7. Add a triage passage that directs the conversation to the correct application in case the variable was not set.

Make sure you've selected the team and chat bot you want to work with, and let's create our variable.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.