The Discord webhook URL for Course 1 send in mail doesn’t work

Hi everyone

I’m currently following the Level 1 n8n course (chapter 5.6) and I’m stuck at the step where we send a message to a Discord channel using the Discord Webhook node.

  • My workflow runs fine until the Discord node.

  • Instead of sending the message, I get the error:

“Your message is incorrectly formatted.”

I also tested with curl directly :

[curl -H “Content-Type: application/json”
-d ‘{“content”: “ping depuis curl”}’
https://internal.users.n8n.cloud/webhook/course-level-1”\], and I get the same response.

I realize now that my URL is pointing to an n8n webhook (internal.users.n8n.cloud/…) instead of a Discord webhook(discord.com/api/webhooks/…).

So, I tried running the workflow using the webhook from one of my personal Discord servers. With that webhook, the workflow worked perfectly.
This confirmed that the Discord webhook URL provided in the n8n course email is not the correct one.

Could you please provide me with the correct webhook URL for the Course 1 Discord channel, so I can complete the training?

You’re Correct,

the URL provided in the course email is actually an n8n webhook, not a Discord webhook. That’s why you’re seeing the formatting error.

For Discord, you need a proper Discord webhook URL from your server/channel. It should look like:

https://discord.com/api/webhooks/{webhook.id}/{webhook.token}

Since the course email URL won’t work for Discord, the easiest way to continue the exercise is to create your own Discord server and channel, generate a webhook for that channel, and use it in your workflow.

1 Like

The correct webhook URL is https://internal.users.n8n.cloud/webhook/course-level-1

I tested it just now. If yours is the same, it means that your formatting is wrong (it’s very strictly checked). This is my syntax, copy it exactly if you need to:

This week we've {{$json["totalBooked"]}} booked orders with a total value of {{$json["bookedSum"]}}. My Unique ID: {{ $('HTTP Request').params["headerParameters"]["parameters"][0]["value"] }}

Mark this as Solution if it helped :slight_smile:

2 Likes

Thank you for your reply.

I already tried replacing the webhook URL with one from my own Discord server, and it worked — the message arrives correctly in my server. However, in order to complete the training, I need to send the message to the course-1 channel of the n8n server…

1 Like

Thank you for your reply.

I was able to identify the problem thanks to your message. It was an issue with the text formatting — missing a space before the expression showing my unique ID.

bad syntax :
This week we’ve {{$json[“totalBooked”]}} booked orders with a total value of {{$json[“bookedSum”]}}. My Unique ID:{{ $(‘ABCorp’s data warehouse Request’).params[“headerParameters”][“parameters”][0][“value”] }}

Good syntax :
This week we’ve {{$json[“totalBooked”]}} booked orders with a total value of {{$json[“bookedSum”]}}. My Unique ID: {{ $(‘ABCorp’s data warehouse Request’).params[“headerParameters”][“parameters”][0][“value”] }}