So far, we've created a variable for the user's account type, and a passage in our Welcome conversation that asks the user their account type and stores their response in the variable.
Before we can use this variable to direct the conversation flow, we need some passages to direct the conversation to. We'll create a passage to handle personal credit card applications, and another to handle business credit card applications.
In each passage, we'll add an Inbound Question with training phrases that specifically mention the account type, so that if our user mentions the account type in their question, the chatbot will match the correct application passage without needing to check the user's account type.
In your chatbot's conversations:
- Open the Card Application conversation.
- Click the Passage icon to create a new passage in the conversation.
- Rename the passage to Personal card application.
- Add a text message to the chatbot content: I can help you apply for a personal credit card!
- Click Inbound Questions.
- Add a new Global question: How do I apply for a personal credit card?
- Add at least five training phrases for personal credit card applications.
Make sure all the training phrases are specific to personal accounts. - Click Save.
Now we'll create the passage for the business card applications:
- Click the Passage icon to create another new passage in the conversation.
- Rename the passage to Business card application.
- Add a text message to the chatbot content: I can help you apply for a business credit card!
- Click Inbound Questions.
- Add a new Global question: How do I apply for a business credit card?
- Add at least five training phrases for business credit card applications.
Make sure all the training phrases are specific to business accounts. - Click Save.
Now that we have our variable and our passages, we can add Logic to direct the conversation to the correct passage depending on the user's account type.
Comments
Article is closed for comments.