You need on the webhook module on the flow save the variable that the webhook response send.
Thanks @Michaelvips for your answer, but I can't get the result back to the chat.... What am I doing wrong? 😕
Thanks @Michaelvips , I have managed to get the answer. 👍
Hello, a question. If I send the webhook to Botpress, instead of Make... What code should I insert in Botpress so that it returns a response?
I want something simple (but I'm having a hard time getting it).
From Typebot, I send a Webhook to Botpress and I want Botpress to send me back a response.
Let's imagine I send Botpress via Webhook a single parameter:
{"Query": "Query Text"}
I want Botpress to reply "Hi, I'm Botpress" to TypeBot.
Is this possible, any idea how to generate the code in Botpress to make it work correctly? Any help would be appreciated. Thank you.
When you send, the Botpress must replay with a response on the webhook module, you must save in a variable an use in the flow.
Hi @Michaelvips , thanks for reply... I've tried, in a thousand ways, but I can't get it to work....
Any example code for the script that saves the Webhoook variable and the script that sends the response back to the Webhook?
This should be something simple, but I can't figure out how to do it.
you are sending to Botpress with Webhook block ? A post ?
WebHook Block. I have tested using GET and POST
When you click on test the request what Botpress send back ?
there is no data, this is why you can´t use
I don´t think this is the right url
Yes, this is the URL that Botpress gives me to activate the WebHook.
webhook will send informations not get
When something happens, a notification will be sent to this webhook, you are not supposed to make a request to it
Yes, I send the data to the WebHook by POST with the body
{"Consulta":"{{Consulta_Cliente}}"}
This is what the WebHook receives from BotPress... this is where I'm lost from here. I can't seem to get the code to capture the variable and I don't know how to send the data back to TypeBot either.