Back to all tools
Needs API key

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

  1. In Discord, open channel settings → Integrations → Webhooks → New Webhook, and copy the webhook URL.
  2. Paste the full webhook URL into Endpoint URL (replace the YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN placeholders).
  3. 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

notify_discord_on_escalate

Description

Post a Discord webhook message when this conversation needs a human. Call this when escalating to a human, after collecting the customer name and email.

Endpoint URL

Paste into Endpoint URL (https:// is added automatically).

discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN

HTTP method

POST

Tool inputs (all)

1. message (string) Escalation summary including customer name, email, and why a human is needed

Tool input: message

Input name

message

Input type

string

Input description

Escalation summary including customer name, email, and why a human is needed

Reference value

Use this as the request query or body value and choose “Tool input” in the form.

{{message}}

Request body (all)

content: {{message}}

Field name

content

Field value

{{message}}

Headers (all)

Header values are encrypted when stored. Replace placeholders with your real secrets.

Content-Type: application/json

Header name

Content-Type

Header value

application/json