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. 1

    Connect Discord in BrokenPost. Add the BrokenPost bot to your Discord server, then pick a channel for each post.

  2. 2

    In BrokenPost, open Plugins and copy your API key.

  3. 3

    In n8n, install the BrokenPost community node (the Plugins page links to it).

  4. 4

    Add your API key as a credential.

  5. 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.

What happens next

  1. 1

    Your n8n workflow starts from its trigger, like a new row, a form or an RSS item.

  2. 2

    It sends the text, the date and the channel to the BrokenPost public API.

  3. 3

    BrokenPost pulls in any media and saves the message on your calendar, as scheduled or as a draft.

  4. 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.

Characters1,980 characters (a little under Discord's 2,000, to leave room for formatting)
MediaPictures, videos and files as attachments
FormattingMarkdown
ChannelPick one per post
RepliesYes

Discord settings you can send

Send them with the post in the Discord settings.

If Discord rejects a message

The message shows as failed on your calendar with one of these messages.

What you seeHow to fix it
Bot lacks permission to send messages in this channelGive the BrokenPost bot the Send Messages permission in that channel.
Channel no longer existsPick another channel in the Discord settings of the post.
Rate limited by DiscordDiscord slowed the bot down. The post retries, or retry it from the calendar.

Good to know

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

All about scheduling Discord messages

Write once. Post everywhere.

Start free with BrokenPost. Connect your apps and your AI in a few minutes.