Skip to content

Post messages from your app to a Discord channel, such as an alert when something happens in your app. You need a webhook for a text channel in your Discord server.

Connect Discord

To connect Discord, first create a webhook in Discord: open Server Settings › Integrations › Webhooks › New Webhook, set the webhook to a text channel, and then click Copy Webhook URL.

Only a project owner can connect Discord. If you’re a project owner, connect Discord to your app:

  1. Open Project Settings › Connections.
  2. Turn on the switch for Discord. The Connect Discord dialog opens.
  3. Paste the URL into Webhook URL. To open Discord’s help on webhooks, click Find it beside the label.
  4. Click Connect.

Discord checks the webhook before FlutterFlow saves the connection. For more information, see Connect a service.

What to ask

To ask for a Discord feature, tell the agent what to post and what triggers the post:

Example request

When a signed-in person adds a transaction over 500, post the payee and the amount to my Discord channel.

Example request

When someone sends the feedback form, post their message to my Discord channel under the name Ledger feedback.

Where messages go

Your app posts every Discord message to the channel that your webhook is set to. Your app can’t choose another channel, and posting messages is the only thing it can do with Discord.

  • Another channel: create a webhook in that channel, and then connect it in place of the current one.
  • Forum channels: Discord refuses messages sent through a webhook on a forum channel. Use a webhook on a text channel.
  • Mentions: a mention in a message, such as @everyone, shows in the channel but doesn’t notify anyone.

Agent questions

If Discord isn’t connected, the agent asks you to connect it in a card above the message box, with a Connect Discord button. See Connect when the agent asks.

Review

After the agent finishes, read the turn’s Summary and review its Changes. Check the affected screens in Screens, and try the change in Preview. If the change uses records or sign-in, test it with the thread’s own data in Data.

After you push a backend change, check the result in Backend.

Calls from the preview are real, so testing the feature posts real messages to your channel. See How connections work.

Call limit

Your app and the agent share a limit of 30 calls a minute to Discord through your app’s connection. See Limits.

Push

After you test the feature, push the changes to your app.

Next steps

Troubleshooting

  • The dialog asks you to paste the whole webhook URL: in Discord, click Copy Webhook URL again, and paste all of it.
  • Discord refuses the webhook URL: see A service refuses your key.
  • Discord stops accepting messages: the webhook was deleted or its URL was reset. Create a new webhook in the channel, and connect Discord again with its URL.
  • Messages from a forum channel’s webhook fail: create the webhook on a text channel, and connect Discord with its URL.
  • Discord refuses the name that a message posts under: Discord doesn’t accept some names, such as any name that contains “discord”. Ask the agent for a different name.
  • Your app shows a message about the service: see Messages shown in your app.