I’m extremely new to all of this, so please excuse me if this is a stupid question. I’d also appreciate guidance.
So, I’ve been trying to set up n8n with webhooks to use with Chatwoot, but (so far) only managed to make it work on my localhost. I thought I’d at least try out the tunnel service to see if the webhooks worked, so I used this as my docker compose file:
version: '3'
services:
n8n:
image: docker.n8n.io/n8nio/n8n
ports:
- 5678:5678
environment:
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- TZ=${GENERIC_TIMEZONE}
command: "start --tunnel"
(using Portainer, if that makes a difference).
Then I accessed n8n, created a webhook node (I tried both POST and GET, no authentication) and used the generated webhook link on Chatwoot like normal (I selected for it to trigger with every possible event).
Alas, it didn’t work. Even when sending and receiving messages on Chatwoot, nothing appears on the n8n node.
I tried to “Listen for the event test” and accessed the webhook link on my browser (I saw a youtube guide do that) and it also didn’t work. I got a small 404 on the top left of my screen.
The webhook link was different from when I didn’t use the “–tunnel” command, so I know it at least changed something.
I also tried to use other environment commands on the docker compose file like n8n_host, port, protocol, node_env and webhook_url, but nothing worked.
I’m sure I’m doing something wrong, I just don’t know what.
Information on your n8n setup
- n8n version: 1.41.1
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker on Portainer
- Operating system: Ubuntu 20.04