![]() When processing is synchronous, it is possible to select a redirection sequence in case of an error in your Webhook : If the “synchronous processing” option is not checked, the Chatbot will not stop its execution, it will perform the request in parallel. This allows the order of the functions to be respected during the execution of the Chatbot. As soon as the Webhook delivers a response, the Chatbot moves on to the next function, namely B. The Webhook B function executes a query that will retrieve the total number of users from the database and insert it into a Botnation variable.įor the Chatbot to work properly, it is imperative that function A is fully executed before launching function B, otherwise we would get an incorrect number of users.īy using the “synchronous processing” option on function A, we ask the Chatbot to pause its execution for the time of the request.The Webhook A function executes a query that will add a user in a database.This is useful if one or more functions depend on a call to your Webhook.įor example, we have two Webhook functions one after the other: ![]() Synchronous processing allows you to put the Chatbot on hold while your Webhook delivers a response. If the url is correct, a message will confirm it, otherwise an error will appear: 3. If your url contains Botnation variables then you will have to simulate them by filling in values in the associated fields: The button “Test the Webhook” allows you to make a call to the url you have entered to check that it works properly. Your Webhook must always be located after the data collection, not before, otherwise it has nothing to send! 2. If you want to be sure that the variable contains information before it is sent you can, for testing, temporarily display a message just before the Webhook that displays the variable. The url will be called by Botnation AI in POST or GET. You can add parameters either by adding them directly in the URL or by using the + Add parameter option. To do this, enter the url of the service you want to call. We therefore recommend that you only connect external services with instantaneous response times via Webhook. Your webhooks are then placed in a queue dedicated to your chatbot. ![]() Avoid overloading your chatbot with Webhook calls, this can strongly slow down the performance of your chatbot as Botnation will be waiting for a service outside its infrastructure. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |