Currently, we are adding a new type of Bot response to the Tree Diagram called Branch to direct the condition to be matched is the API response. At this point, Bot response will only be matched with API response. So, make sure you have created a connection in the API connection menu. Here are the steps.
- Log in to your Qontak Omnichannel account, then select the "Chatbot" menu.
- Click tab “Conversation”.
- Next, click on one of the Conversations that have been created.
- In the Tree Diagram, users click (+) below the Start point and select "Branch".
- Then you will be directed to create a new Branch.
- Fill in the Branch name or Bot response name.
- Then in API Integration, select the Connection type. The dropdown menu will show all connections that have been created in the API Connection menu.
- Then determine the API method, API path, API header, API body, and you can check the API entity to save the response into a variable.
- Next, set the Conditions by clicking "Add condition".
- Fill in the response key and response value.
- Conditions are determined based on the comparison between user input and the value in the API. You can add criteria to the Conditions. After that, set the value condition, which is determined based on the response that does not match the condition (a kind of fallback).
- In this case, you can create up to 10 Conditions by clicking "Add criteria". - Then determine the Response type.
- After that, the user must set the Else condition, which means defining it based on the response that does not match the Condition (a kind of fallback).
- Then click "Save".
- Then the Bot response branch will be formed in the tree diagram based on the conditions set.