Chatbot connector

The chatbot connector is connected to the Robot widget. With these two functions, user input can trigger a workflow in a chatbot. The output (for example, the user’s delivery status) can be directly played to the user. As such, it belongs to the passive connectors.

This is how you can set up a chatbot connector:


1️⃣ Create a new chatbot connector

Select the connector type Bildschirmfoto_2020-10-22_um_14.49.29.png when creating a connector. Afterwards, you have to define which parameters this workflow should receive from the chatbot:



2️⃣ Add incoming parameters

The parameters defined here have to be saved with the exact same variable name as in the story. This can be done with the user input widget. In the connector, it should look something like this:


And in the story, these parameters are recorded as follows:



3️⃣ Add outgoing parameters

Now, we must define the data that will be shown to the user in the story through the connector settings under «Data sent to chatbot».

In the «Expected values», you can insert a maximum of five optional outputs, which have to be separated by commas: 


If the workflow couldn't be executed successfully, another option will appear automatically inside the Robot widget.


4️⃣ Add the Robot widget to your story

The expected values will then stand for a «path». Depending on the output of the workflow, the conversation with the user can be created differently. This works exactly as it does in the decision widget.

To start the workflow in the chatbot, drag the Bildschirmfoto_2020-10-22_um_15.35.13.png-widget via drag & drop to the desired spot where the workflow should be executed, and then choose the correct workflow. Note that the parameters have to be recorded before the Robot widget:


Depending on what output will come back from the workflow, another message can be played for the user:


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