Post a message to a Discord channel with a webhook
How to post a message to a Discord channel with a webhook: install the Chrome extension, click Build from description, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.
Here is how the automation works. To post a message to a Discord channel, create a webhook in the channel's settings and send your message to its URL with the Trigger webhook step. The message appears in the channel a few seconds after the step runs. Posting from an automation keeps a server's channels up to date with content from a Google Sheet, a scrape, or AI.
Build the Discord post from a description
Describe it and click the button: the agent builds and tests the Discord post in your Chrome extension. It asks for the message and the webhook URL.
- Store the message I want to post
- Post it to my Discord channel by webhook
- Show it as sent by Axiom bot
You need a webhook for a channel in a Discord server, since webhooks are only available in channels inside servers: in Discord, click the cog beside the channel name, open Integrations, then Webhooks, click Create Webhook, open the new webhook and click Copy Webhook URL. If you cannot get the webhook URL, contact Discord support.
Build the Discord post step by step
The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.
- 1.0
Enter custom dataCustom data: your message
- 2.0
Trigger webhookEndpoint: the channel's webhook URLPayload: the JSON Discord expects, with[custom-data]ascontentand Axiom bot asusername
Common questions about posting to Discord
What does the Discord webhook payload look like?
JSON with the message in content, typed or inserted from an earlier step:
{
"content": "[custom-data]",
"username": "Axiom bot",
"avatar_url": "<URL>"
}
content is the message posted to the channel. username is optional, the name shown for the sender. avatar_url is optional, an image URL shown as the sender's avatar; leave the field out if you have none.
Why is my message not posted to the Discord channel?
Often it is Discord's webhook rate limits: too many messages in a short time are refused. Otherwise, check the errors in the Builder or in your run reports, and see common errors. When a run fails, hand it to the agent and it repairs the step.
Can I post to a Discord direct message with a webhook?
No. Webhooks are only available in channels inside Discord servers.
How do I post data from a Google Sheet or a scrape to Discord?
Insert that step's token in content in place of [custom-data]. See pass data between steps.
Can I post AI-written messages to Discord?
Yes. Generate the text with the Integrate AI step and insert its token in content.
Can I post to a Discord channel on a schedule?
Yes. Save the automation and set a schedule; each run posts the message through the same webhook, so a daily update from a sheet or a scrape lands in the channel at the same time each day.
Can I post to Discord without code?
Yes. The webhook payload is the only thing that looks like code, and it is three lines of JSON copied from the question above; the agent writes it for you.
Can I post to Slack the same way?
Yes, through a Slack workflow that starts from a webhook. See trigger a Slack workflow from an automation.
Where do I get help?
Get in touch with support, or ask in the axiom.ai community. This guide was tested on 26 November 2024; Discord may have changed since.
Related guides
Post scraped data to Make with a webhook
- Go to the listing page I give you
- Scrape the title and price of every item
- Post what was scraped to my Make webhook
Trigger a desktop run from Make and post the data back
- Go to the page I give you
- Scrape the values I want from it
- Post what was scraped to my Make webhook
Scrape any website with ChatGPT into a Google Sheet
- Open each link in the Links tab of my sheet
- Use ChatGPT to find the name, email and job title
- Add them to the Data tab
- Delete the link row once it is done