Share feedback, ideas and get community help

Updated 4 weeks ago

Webhook Block Pauses but Doesn't Capture Response Body

At a glance

The community member is using the Webhook block in their bot flow, but they are unable to capture or use the response body from the webhook. They provide an example of the webhook response body, which includes the "orderId" field, and they want to know how to extract this value to send it to the user.

In the comments, another community member provides a solution, explaining that the user should "Test your Webhook request......which allows you to access the returned body that lies in data......to then save the keys of your choice within data as Typebot variables." This is the answer to the original question.

Hi,

I’m using the Webhook block. The bot correctly pauses until the request to the webhook is sent and resumes the conversation afterward. However, I’m unable to capture or use the response body from the webhook in my bot flow.

For example, my webhook response body looks like this:
{ "name": "John Doe", "email": "john.doe@example.com", "orderId": 12345 }
How can I extract the orderId from the response for example so I can send it to the user?

Thanks for your help!
Marked as solution
In other words:
  1. Test your Webhook request...
  2. ...which allows you to access the returned body that lies in data...
  3. ...to then save the keys of your choice within data as Typebot variables.
Hope this helps!

PS. I used n8n as the automation tool in localhost to make the test POST request, if you're wondering
View full solution
A
y
4 comments
Hi yousef,
Here's a video demo I made that answers your question:
In other words:
  1. Test your Webhook request...
  2. ...which allows you to access the returned body that lies in data...
  3. ...to then save the keys of your choice within data as Typebot variables.
Hope this helps!

PS. I used n8n as the automation tool in localhost to make the test POST request, if you're wondering
My pleasure bud 😀
Add a reply
Sign up and join the conversation on Discord