Typebot not getting n8n reply
Hi, I'm getting a bit frustrated after 6-8 hours of trying to debug a simple typebot+n8n workflow. The n8n side looks fine and the output shows exactly what I want to appear in typebot chat as the reply to my user message but it's just not coming through despite the type bot 'success' message. I've been using ChatGPT to talk me through the workflow build (it was ChatGPT that recommended Typebot) and we're just going round in circles. This will eventually be my website FAQ/Support chatbot but at this stage it is really basic: n8n - Webhook - Set (Edit Fields) - Respond to Webhook + Typebot Text Bubble - Input Text - HTTP Request - Text Bubble. I got fed up with ChatGPT so I got a secdond opinion from Copilot with the same results. All I want is a reply which says "you said 'user_message'" but nothing appears. Has anybody actually done this and can point me in the right direction? I really feel like it is something basic that I'm missing but I can't figure out what. I want to use Typebot for this and future projects but if I can't get something basic like this working I'm going to have to try a different solution. Please help if you can.


8 Replies
It seems that you didn't have assigned the variable
bot_reply
with your HTTP Request
node response.Where would I do that? in Custom Body?
Into the node
HTTP Request
, where you have put your n8n workflow URL, there is an option to save data on Typebot variables. This is what you need to do.
I mapped the variable but still nothing. When I put a plain text string in the text bubble that the HTTP request connects to the text appears in the chat but the variable doesn't contain anything. See screenshots, maybe you can spot what I have mapped incorrectly.


Yes, it's better, but you are not fetching the data coming from n8n properly.
You have to check the response structure by using the "test the request" button, to see how you receive the data, and so how to fetch it.
At the end, I think you will have to replace
{{bot_reply}}
by data.bot_reply
.
See example in my screenshot.
Indeed, first click on Test the request button, it will display the response body, then in the
Data
you will be able to select the right data from the response, Here putting {{bot_reply}} does not make senseTake a few minutes to watch this: https://docs.typebot.io/editor/blocks/integrations/http-request#example-with-a-dummy-api%3A-create-and-get
Typebot Docs
HTTP Request - Typebot Docs
Thank you, I just changed Data: to data.bot_reply and it worked immediately. Marking this as solved now. I appreciate all your help.👍