Discord

Post Discord Channel Message

Posts a message to a Discord channel as your bot.

Unverified

What the model is told

Post a short message to the team's Discord channel, for example to hand off a customer request. Write a clear summary. Do not include full card numbers, passwords or other sensitive details. Returns the created message object.

Request

POSThttps://discord.com/api/v10/channels/YOUR_DISCORD_CHANNEL_ID/messages

Headers

  • Content-Typeapplication/json
  • AuthorizationBot YOUR_DISCORD_BOT_TOKEN
  • User-AgentDiscordBot (https://example.com, 1.0)

Body

{
  "content": "{{message}}",
  "allowed_mentions": {
    "parse": []
  }
}

Parameters

  • message stringThe message text, up to 2000 characters.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "e07899bc-4d0a-436f-a955-b51db0c7a3e1",
    "type": "HTTP_REQUEST",
    "label": "Post Discord Channel Message",
    "name": "post_discord_channel_message",
    "customName": false,
    "description": "Post a short message to the team's Discord channel, for example to hand off a customer request. Write a clear summary. Do not include full card numbers, passwords or other sensitive details. Returns the created message object.",
    "parameters": [
      {
        "name": "message",
        "type": "string",
        "description": "The message text, up to 2000 characters."
      }
    ],
    "config": {
      "endpoint": {
        "method": "POST",
        "url": "https://discord.com/api/v10/channels/YOUR_DISCORD_CHANNEL_ID/messages"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        },
        {
          "name": "Authorization",
          "value": "Bot YOUR_DISCORD_BOT_TOKEN"
        },
        {
          "name": "User-Agent",
          "value": "DiscordBot (https://example.com, 1.0)"
        }
      ],
      "body": "{\n  \"content\": \"{{message}}\",\n  \"allowed_mentions\": {\n    \"parse\": []\n  }\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.