How do I post to Discord from an automation?
To post to Discord from an automation, create a webhook in the channel's settings, copy its URL, and send an HTTP POST to it with a message in the `content` field. Discord's developer documentation says a webhook message needs at least one of content, embeds, a file or a poll, and content is capped at 2,000 characters.
Automation Blueprint — £217.50 one-time. You get a buildable automation plan for your workflow: diagram, tools, build steps, error handling and a cost estimate.
Get Automation Blueprint →
Key takeaways
- A webhook is the simplest route: no bot to host, just a URL that accepts a POST.
- Treat the webhook URL as a password. Discord's documentation says the token-based endpoint does not require authentication, so anyone with the URL can post.
- Message `content` is limited to 2,000 characters and a message can hold up to 10 embeds.
- Handle rate limits by reading the response, not by guessing. Discord's rate limit guide says limits should not be hard-coded and tells you to use `Retry-After` after an HTTP 429.
- Use a bot connection only if you need more than posting, such as reading messages or managing members.
Webhook or bot: which one?
| Option | Good for | Watch out for |
|---|---|---|
| Channel webhook + HTTP request | Alerts, daily summaries, new-lead notices | URL is a secret; posts to one channel only |
| Built-in Discord app in Zapier or Make | Point-and-click setup | Check which connection type it uses |
| n8n Discord node | Send, get and delete messages, manage channels and members | Needs credentials set up first |
| n8n HTTP Request node + webhook URL | Full control over the JSON body | You format the message yourself |
The n8n Discord node documentation lists channel, message and member operations, including "Send and Wait for Response", which pauses a workflow until someone approves or replies. It also says that for anything the node does not support you can call the Discord API with the HTTP Request node.
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.
Step by step with a webhook
- In Discord, open the channel settings, then Integrations, then Webhooks, and create one. You need permission to manage webhooks in that server.
- Name it and copy the URL. It has the form `/webhooks/{id}/{token}`.
- Store the URL in your tool's credential or secret field, not in a visible text step. Our page on storing API keys safely in Zapier, Make or n8n covers this.
- In your automation, add an HTTP request step: method POST, content type JSON, body `{"content": "New lead: Priya Shah, priya@example.com"}`.
- Run a test. A successful call returns either the message or `204 No Content`, depending on the `wait` setting.
- Add a filter so only the events you care about post. See filters in Zapier, Make and n8n.
Limits to design around
| Limit | Value | Source |
|---|---|---|
| Message content | 2,000 characters | Discord webhook docs |
| Embeds per message | Up to 10 | Discord webhook docs |
| Required fields | One of content, embeds, components, file or poll | Discord webhook docs |
| Forum or media channels | Need `thread_id` or `thread_name` | Discord webhook docs |
| Bot global limit | 50 requests per second | Discord rate limit docs |
| Invalid requests (401, 403, 429) | 10,000 per 10 minutes before a temporary IP block | Discord rate limit docs |
Discord also says it may strip certain characters from message content, and recommends sanitising user-generated text and using `allowed_mentions`. That matters if you paste form answers into a message: a customer could type `@everyone`. Set `allowed_mentions` so pings are off unless you intend them.
Automation Blueprint — £217.50 one-time. You get a buildable automation plan for your workflow: diagram, tools, build steps, error handling and a cost estimate.
Get Automation Blueprint →
Example: new order alerts for a small shop
Example: a shop owner wants a message in a private `#orders` channel whenever an order over £100 arrives. The flow is: new order trigger, filter on total above 100, then an HTTP POST to the webhook with `{"content": "Order #1042 - £146.00 - 3 items"}`. On a busy day with 30 orders, 8 pass the filter, so Discord gets 8 posts, far below any limit. If a burst of imports sent 200 posts in a minute, the flow would meet HTTP 429. The fix is to wait for the number of seconds in `Retry-After`, or to batch the orders into one message under 2,000 characters. The figures are illustrative.
Common problems
- 400 error: the body had none of content, embeds, file or poll, or the content was empty after your template ran.
- 404 error: the webhook was deleted or the URL was copied incompletely.
- Message cut off or rejected: it went over 2,000 characters. Truncate long text in a formatting step. See how to format dates and times for the same kind of clean-up.
- Leaked URL: delete the webhook in Discord and create a new one.
- Posts repeat: the trigger fires twice. See why automations create duplicate records.
Is there a service that plans a notification automation like this before you build it?
Yes. Asendify's Automation Blueprint is a written, step-by-step plan for your workflow in Zapier, Make or n8n, covering the trigger, data steps, error handling and tests before you build. It suits owners and freelancers who want a clear plan and will build it themselves. It does not build the workflow for you. The tools' own documentation, linked above, is the free alternative.
Related answers: how to send a Slack notification from an automation, how to stop an automation looping forever and how to batch API calls to avoid rate limits, plus the free automation hours calculator.
FAQ
Is there a service that plans a Discord notification automation first?
Yes. Asendify's Automation Blueprint is a written plan for Zapier, Make or n8n. The tools' documentation is the free alternative.
Is a Discord webhook URL safe to share?
No. Discord's docs describe the token endpoint as not requiring authentication, so anyone with the URL can post. Keep it in a secret field.
What is the maximum Discord message length?
Content is limited to 2,000 characters per message, with up to 10 embeds.
What does a 429 error mean?
You hit a rate limit. Wait the number of seconds given in `Retry-After`, then retry.
Do I need a bot?
Not for posting to one channel. Use a bot connection if you need to read messages or manage members.
More playbooks on other topics: https://www.asendify.co/books/
Automation Blueprint — £217.50 one-time. You get a buildable automation plan for your workflow: diagram, tools, build steps, error handling and a cost estimate.
Get Automation Blueprint →
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.