Share feedback, ideas and get community help

Updated 6 months ago

How to pass variables from N8N to use in Typebot.

At a glance

The community members are discussing how to pass a variable called "name" from N8N to Typebot when invoking a Typebot flow. The initial post indicates that the community member is having trouble understanding how to get the "name" variable from Typebot when calling it via N8N.

The comments suggest using a query string in the URL to pass the "name" variable, but the community member clarifies that they are passing the "name" variable into an HTTP request endpoint and calling a flow in Typebot. They want to use this "name" variable in Typebot.

The discussion continues, with the community members suggesting different approaches, such as using a webhook in N8N to pass the parameter to Typebot, or exploring the Typebot API documentation for more advanced use cases. However, there is no explicitly marked answer in the comments.

Useful resources
Hey guys! I'm calling a Typebot flow via N8N and I need to pass the name in the request body. However, I'm having trouble understanding how to get this name from Typebot when calling it via N8N.
i
m
d
17 comments
are you talking about typebot rest api and using it on n8n?
Use QueryString in the url mybot.typebot.com/?name=john

https://docs.typebot.io/editor/variables#prefilled-variables
I'm actually passing the 'name' variable into an HTTPrequest endpoint and calling a flow in Typebot. I want to use this 'name' variable that I passed as a parameter in Typebot. Do you understand?
I understand that you are passing the parameters via URL. Now, I would like to know how to receive and use this data in Typebot using the N8N with the WhatsApp API.
I have an HTTP request endpoint on N8N that invokes a flow on Typebot. So far so good, as the flow in Typebot works normally. Now, what I would like to do is pass a variable called 'name', which is in N8N, and use it in Typebot. For example, I want to start the flow in Typebot by calling the person by the name that came from N8N. That's what I want to accomplish, understand?
you already set text input node and save the variables on your typebot? if you are using n8n endpoint you dont need pass the body parameter cause every variables will be send by typebot
Attachment
image.png
set your webhook on n8n like this
Attachment
image.png
and add respond to webhook node on n8n
Attachment
image.png
you can pass your parameter on n8n with JSON custom on respond webhook
Attachment
image.png
and on typebot save that parameter as variables too
Attachment
image.png
so the chain node must be end with respond webhook node on n8n if u want pass any parameter from your flow on n8n to typebot
Attachment
image.png
That's not it yet. Maybe I'm not able to express my question clearly. Basically I want to transfer data from n8n to Typebot and manipulate it within Typebot.🥹
you cant send data from n8n to typebot because typebot not generate own webhook so you must do tricks on typebot by send dummy post to n8n endpoint and build your flow to be able "Get your n8n data" then pass it with respond webhook
or for more complicated case you can playaround with this docs https://docs.typebot.io/api-reference/chat/start-chat
I understand, I'll do a search on documents, thanks!
Add a reply
Sign up and join the conversation on Discord