Connecting 2chat to n8n using HTTP and webhook

Im trying to connect 2chat with my n8n workflow, i set the right configuration in the trigger, but im having troubles with the webhook response. :face_holding_back_tears: Any recommendation?


It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

What is the error?

It doesn’t return the response to 2chat. : /

Can you share the full workflow? Is the webhook set up correctly? Have you tried building a simple test workflow by just sending some sample data to the workflow? Like “hello” with the edit field node?

Sure! Here is my workflow, my last configuration with the result and my worflow in 2chat. (I deleted the url to upload the pic)



Seems like the n8n json is not correct. I think the best is to check out basic n8n tutorials. To understand the issue that is happening :slight_smile: your response body is refering to json value which does not exists.

Im going to upload with the right body response, because even in that way, it doesn’t work.

Here is the pic.

Can you share the workflow JSON so we can check the settings of the nodes?

Two ideas so far:

  1. Did you set the webhook to ‘respond using respond to webhook node’?

  1. As you can see in your screenshot, you’re not selecting the right field in the response - it should be {{$json["message"]["content"]["response"]}}

Thank for the reply. :smiley:

The whole road map is:

Whatsapp (Input) - 2chat - Open Ai - 2chat - Whatsapp (Output)

2CHAT POST HTTP REQUEST

N8N WORKFLOW

N8N WEBHOOK

N8N RESPOND TO WEBHOOK

2CHAT OUTCOME

The problem is that i don´t recibe any respond. I don´t know if is a configuration problem or mabye there is another way to return the output to 2chat. Thanks for everything.

Please share the JSON, not screenshots. This doesn’t help, sorry.

You can copy your workflow and paste it here with the </> button above.

Sorry, im new in n8n. :upside_down_face:

Thanks! This all looks in order to me, and it seems like we’re properly responding to the POST request. I’m not familiar with how 2CHAT works though - perhaps you can ask them if you did the configuration correctly?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.