n8n + Discord
Post to Discord from n8n
Send Discord messages from n8n to BrokenPost. Your workflow builds the message, BrokenPost posts it to Discord at the time you set.
How to connect n8n to Discord
- 1
Connect Discord in BrokenPost. Add the BrokenPost bot to your Discord server, then pick a channel for each post.
- 2
In BrokenPost, open Plugins and copy your API key.
- 3
In n8n, install the BrokenPost community node (the Plugins page links to it).
- 4
Add your API key as a credential.
- 5
Add a BrokenPost step to any workflow to create posts.
Prefer another way? See every way to connect n8n.
Discord workflows to build in n8n
Each one ends with a step that sends the message to BrokenPost.
- “When a new row is added to a spreadsheet, schedule a Discord message with its text at the time in the row.”
- “When a new blog post shows up in your RSS feed, schedule a Discord message that links to it.”
- “When someone submits a form, save a Discord message as a draft for your team to approve.”
- “When a product is added to your store, post it to Discord the next morning.”
What happens next
- 1
Your n8n workflow starts from its trigger, like a new row, a form or an RSS item.
- 2
It sends the text, the date and the channel to the BrokenPost public API.
- 3
BrokenPost pulls in any media and saves the message on your calendar, as scheduled or as a draft.
- 4
At the set time BrokenPost publishes it to Discord. If Discord rejects it, the message shows as failed with the reason.
Discord limits to build for
Keep each message inside these limits. If Discord rejects one, it shows as failed on your calendar with the reason.
| Characters | 1,980 characters (a little under Discord's 2,000, to leave room for formatting) |
|---|---|
| Media | Pictures, videos and files as attachments |
| Formatting | Markdown |
| Channel | Pick one per post |
| Replies | Yes |
Discord settings you can send
Send them with the post in the Discord settings.
- Channel
If Discord rejects a message
The message shows as failed on your calendar with one of these messages.
| What you see | How to fix it |
|---|---|
| Bot lacks permission to send messages in this channel | Give the BrokenPost bot the Send Messages permission in that channel. |
| Channel no longer exists | Pick another channel in the Discord settings of the post. |
| Rate limited by Discord | Discord slowed the bot down. The post retries, or retry it from the calendar. |
Good to know
- Each message can have up to 1,980 characters.
- Pick the channel in the Discord settings of the post.
- Send the message as a draft when you want someone to check it in BrokenPost first.
Questions people ask
Can n8n post to Discord?
Yes, through BrokenPost. Connect Discord in BrokenPost, then send posts to the BrokenPost public API from n8n.
What are the Discord limits?
1,980 characters (a little under Discord's 2,000, to leave room for formatting). Pictures, videos and files as attachments. If Discord rejects a post, it shows as failed on your BrokenPost calendar with the reason.
Can n8n schedule Discord messages for later?
Yes. Send a date and time with the post and it goes out then, or send it as a draft to check it first.
Is it free?
The public API works on every plan. The Free plan includes 1 account on every app and 20 posts a month. Paid plans start at $19 a month with unlimited posts.
Can I post to different Discord channels?
Yes. Each post has its own channel setting, so one post goes to #announcements and another to #general.
More apps with n8n
Post to Discord with other AI
Write once. Post everywhere.
Start free with BrokenPost. Connect your apps and your AI in a few minutes.