Chatbot Flow: Get information about any formality

Official Content

As mentioned before, this chatbot system will allow the user to get information about two different topics:

  • Social Events and
  • Any bureaucratic formalities (administrative process)

So, we define a Flow with the corresponding Trigger Messages. Note that this Flow hasn't a Conversational object defined.

image_2018228132252_1_png
Note Response message text defined; it will be triggered to ask the user to be specific on the type of information he needs.

image_2018228132158_1_png

Here, the User Input has conditions which are based on some Entities of the model. The input of the user must match any of those entities, so the dialog continues through another thread of flow.

image_2018228132826_1_png

image_2018228133233_1_png

We have to define the Flows used in each of the Redirect to flow properties (Cultural Activities news and Get administrative process Information).

In this case, a Data Provider is used as a Conversation Object. Upon executing the trigger message, the data provider is executed.

image_2018228133741_1_png
Previously, the user is asked to enter the Type of Social event he is interested in. The user's input can be validated against an entity defined in the AI workspace. 

image_2018228133855_1_png

image_2018228133935_1_png

Note that the On Error messages property uses a reference to &GXUserinput, which allows displaying the last input of the user.

 

The data provider returns an SDT collection, which is displayed in a web form automatically generated by the ChatBotGenerator. The Flow output is configurable and, in this case, it is shown in a form embedded in the dialog.
This is configured under the Message node, using the Show Response as property. The Web Component property indicates the object that is going to be displayed. It can be autogenerated, or generated by the user.

image_2018228134457_1_png

The conversation looks as follows:

image_2017112916139_1_png

So, the user tells which his topic of interest is, and the system provides the information to him.

Using the same principles, you can define the behavior of the chatbot for the information about administrative formalities.

In this case, note that the condition includes an entity + an Entity value; that is, the user input should match this specific value of the Enity (in the example, the entity is AdmProcessInformationType)

image_2018228134821_1_png

image_201822813500_1_png

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.