Discord on escalate
Discord webhooks are a simple HTTPS POST with a JSON content field — ideal for custom tools.
What this tool does
Communities and small teams often run on Discord. This tool posts an alert to a Discord channel through a webhook when your agent escalates a conversation, with the customer’s name, channel and a short summary. Discord webhooks only need an HTTPS POST with a content field, so setup takes a minute: create the webhook in your channel settings and paste the URL. Pair it with escalate_to_human so nobody misses a handoff.
Example conversation
Customer
My membership was not renewed and I cannot get into the class booking page.
Tool callnotify_discord_on_escalate
message: Membership not renewed, cannot book class
AI agent
Sorry about that. I have alerted our team, and someone will sort out your access shortly.
Customer
Thanks.
AI agent
You are welcome. They have your account details, so they can fix it without asking you again.
Example only. Tool calls are shown so you can see when the agent uses this template. Your agent’s wording depends on your prompt and business information.
Who uses it
- Online communities and course creators who support members on Discord.
- Gaming, esports and creator businesses with Discord-based teams.
- Small teams that prefer Discord to Slack for internal chat.
Setup
- In Discord, open channel settings → Integrations → Webhooks → New Webhook, and copy the webhook URL.
- Paste the full webhook URL into Endpoint URL (replace the YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN placeholders).
- Add the prompt tip below so the agent notifies Discord whenever it escalates.
Prompt tip
In your agent prompt, add: When you call escalate_to_human, also call notify_discord_on_escalate with a short summary including the customer name, email, and reason.
Copy into custom tool form
Copy each value into the matching field when you add a custom tool on the create or edit agent page. Replace any YOUR_… placeholders with your real credentials.
Tool name
Description
Endpoint URL
Paste into Endpoint URL (https:// is added automatically).
HTTP method
Tool inputs (all)
Tool input: message
Input name
Input type
Input description
Reference value
Use this as the request query or body value and choose “Tool input” in the form.
Request body (all)
Field name
Field value
Headers (all)
Header values are encrypted when stored. Replace placeholders with your real secrets.
Header name
Header value
