How to use generative answers as a fallback?

In this article you’ll know:

  • how to properly configure a Question action,
  • how to use Generative answers action as a fallback to the Question action.

Hello! I’ve recently found out that quite a lot of people would like to configure a Question action with Generative answers as a fallback. The idea to do it is quite easy, although you need to perform some changes in the system topics. Want to know more? Let’s check it out!


1. Configure a Question action

First thing that you need to perform is to configure properly the Question action. By default it repeats the question 2 times, until it’ll receive an answer which’s available on the choices list. We need to disable it, so that it won’t repeat by choosing “Don’t repeat” option in the question behavior:


2. Configure the Escalate topic

Now when you try to input a different option than the ones that are defined, it should immediately redirect your chat to Escalate topic, which’s used when the chatbot is unable to answer the question. The idea here is quite simple: you can create a generative answers action here, in Escalate topic, and it’ll always use it, when someone would enter an unexpected input. Here I’ve configured it in my topic:

I’ve used following input in the action:

"Try to help the user based on the message from the user: " & System.LastMessage.Text

But you can try anything that’ll fulfill your needs.


Summary

In this short article, we’ve learned on how to use Generative answers action as a fallback for a question. I hope you liked it and it’ll help you create the best chatbot ever. 😉

Cheers!


Artur Stepniak