Typebot x N8N

Guys, I'm racking my brains to solve this issue. I created a flow in Typebot to integrate with n8n due to some integrations. The flow consists of the user asking a question and the assistant in the n8n flow responding. There's a variable called "value," which represents the user's question, and a variable called "response," which represents the value of the agent's response. My webhook block is configured as follows, as in the attached image. After this block, there's a text block to display the "response" variable. I see that the flow in n8n runs smoothly. The response arrives in the Typebot console as shown, but the response isn't displayed in the chat for the user. What could be wrong?
No description
No description
16 Replies
Eduardo Marques
Eduardo MarquesOP2mo ago
No description
jwalsh
jwalsh2mo ago
did you test the rewuest from the HTTP and select the data in the response?
Eduardo Marques
Eduardo MarquesOP2mo ago
I performed a test on the request and it worked, but it doesn't work in the chat.
No description
jwalsh
jwalsh2mo ago
Can u see if the request was received by n8n from the chat? Did you select the data to use from within http request node?
Eduardo Marques
Eduardo MarquesOP2mo ago
If I understand your question correctly, I see the flow running in n8n without any issues, so much so that the response arrives in the Typebot console, but it's not displayed in the chat. Regarding the http name, I just added the address and a variable to save the response. This would be my flow in n8n.
No description
jwalsh
jwalsh2mo ago
Did you assign the data to the variable, as shown here:
No description
Eduardo Marques
Eduardo MarquesOP2mo ago
No, it's configured this way. In the data field, would it be a new variable or the same one that receives the response value from the n8n flow?
No description
Moustaash
Moustaash2mo ago
The "Data" fields should have something like "data.response"
Eduardo Marques
Eduardo MarquesOP2mo ago
I performed the test by creating the variable data.response, and with data.response, I put data.response without creating a variable, just the text and it still doesn't work.
No description
Moustaash
Moustaash2mo ago
data.response in data (or in this message I reply to, it's data.output Resposta in set variable Then in the bubble {{Resposta}}
Eduardo Marques
Eduardo MarquesOP2mo ago
I put data.response in data, and it still doesn't work, I put it as plain text and I put it as a variable and it doesn't work.
No description
jwalsh
jwalsh2mo ago
can you post what the response JSON from n8n looks like?
Eduardo Marques
Eduardo MarquesOP2mo ago
No description
Eduardo Marques
Eduardo MarquesOP2mo ago
Json
No description
!Enzo
!Enzo2mo ago
Try replacing data.response with data[0].output. Always use Test Request to identify how to access the data. If you need any information from the flow, fill in the Variable values for test field.
jwalsh
jwalsh2mo ago
Can you use something like HTTPIE or Postman to call the n8n endpoint and show what that returns instead of showing it in n8n?

Did you find this page helpful?