Share feedback, ideas and get community help

Updated 6 days ago

Passing a N8N variable trough Typebot API

At a glance

The community member is triggering a Typebot using an N8N workflow and needs to pass a phone number variable in the API request. They tried adding a prefilled variable in the POST request but received a 400 error. Another community member suggested that they need to add an object (the same as the one in the first screenshot) to the POST request's body. The original community member confirmed that they were able to pass the variable in the body of the request.

Useful resources
Hello,

I am triggering my Typebot using an N8N workflow that starts the bot with the following request:
https://viewer.pincloud.com.br/api/v1/typebots/waha-iurk3y9/startChat

I need to pass a phone number variable in the same way I do in this example:
https://viewer.pincloud.com.br/my-typebot-wcqeb1o?Telefone=555555555555

Is it possible to include this variable in the API request? If so, how can I do it?
Do you have any other suggestions on how to send this variable (which is already available in N8N) to the Typebot flow?

Thanks!
Marked as solution
I think you'd need to add an object (the same as the one on your first screenshot) to your POST request's body
View full solution
M
A
3 comments
I tried adding a prefilled variable in my Post but I got a 400 error.
Attachments
image.png
image.png
I think you'd need to add an object (the same as the one on your first screenshot) to your POST request's body
Hi, I actually managed to do it by passing it in the body, thanks!
Add a reply
Sign up and join the conversation on Discord