Discord messaging channel
Use this guide to deploy an agent to Discord.
Before you start
Make sure you have:
- A Discord application and bot
- A Discord server (guild) where you can install the bot
- A live agent with an AI model connected
- Access to Agents -> your agent -> Deployment
Configure Discord in Budibase
- Open your agent in Agents
- Go to Deployment
- In Messaging channels, click Manage for Discord
- Enter:
- Application ID
- Public key
- Bot token
- Guild ID
- Idle timeout (minutes) (optional)
- Click Enable channel
- Copy:
- Discord invite URL
- Webhook URL
Configure your Discord app
- Use the generated Discord invite URL to add the bot to your server
- In the Discord Developer Portal, set the interactions endpoint to the Budibase Webhook URL
- Save the interactions endpoint configuration
When channel enable runs successfully, Budibase syncs /ask, /new, and /link commands.
Enable and verify
- In Budibase Deployment, confirm Discord is Enabled
- In Discord, run:
/linkand complete the Budibase account linking flow/askwith a message/newto start a new conversation
- Confirm responses appear in Discord
If you try /ask before linking, Budibase prompts you to link your account first.
Troubleshooting
Not connectedin Budibase: confirm all four required values are saved.- Command sync fails: re-check Application ID, Bot token, and Guild ID.
- Interactions fail: verify the Discord interactions endpoint exactly matches the Budibase Webhook URL.
- Discord prompts to link before answering: run
/linkand complete the account link handoff. - Signature validation errors: confirm Public key matches the key in your Discord application.
- Webhook route errors: use the exact Budibase-generated endpoint URL from Deployment.
Related guides
Updated 6 days ago