Chat Bots · Workflow Blueprint

Discord Interaction Endpoints with AgentDomains

Give Discord HTTP Interactions (Ed25519-verified slash commands) a fast, trusted HTTPS endpoint with zero manual certificate renewal.

Example Host disc-bot.makes.fyi
MCP Flow 4 Tool Steps
HTTPS Mode Edge Proxy
Teardown GitHub Action

Discord pings your Interactions Endpoint over HTTPS on save. It rejects any invalid TLS chain.

1. 3-Stage Sequence Diagram

1. AI Agent / CI MCP Client or CLI 2. AgentDomains Edge disc-bot.makes.fyi 3. Your Origin disc-bot.fly.dev 1. check_availability → free 2. claim_domain → claimed 3. set_proxy (HTTPS Edge) Forward HTTPS / DNS traffic 4. HTTP/2 200 OK · Valid TLS

3-stage sequence: AI agent claims disc-bot.makes.fyi, maps it to disc-bot.fly.dev, and verifies HTTPS 200 OK.

2. 4-Step MCP Tool-Call Transcript

Your agent sends these exact calls to https://mcp.agentdomains.co or local stdio.

STEP 1check_availability
REQ → check_availability("disc-bot") RES ← available: true
MCP Call → check_availability
{
  "tool": "check_availability",
  "arguments": {
    "label": "disc-bot",
    "domain": "makes.fyi"
  }
}
// Response:
{
  "fqdn": "disc-bot.makes.fyi",
  "available": true,
  "reason": "available"
}
STEP 2claim_domain
REQ → claim_domain("disc-bot") RES ← status: "claimed"
MCP Call → claim_domain
{
  "tool": "claim_domain",
  "arguments": {
    "label": "disc-bot",
    "domain": "makes.fyi",
    "email": "ops@example.com"
  }
}
// Response:
{
  "fqdn": "disc-bot.makes.fyi",
  "status": "claimed",
  "confirm_within_days": 30
}
STEP 3set_proxy
REQ → set_proxy("disc-bot.fly.dev") RES ← ok: true
MCP Call → set_proxy
{
  "tool": "set_proxy",
  "arguments": {
    "label": "disc-bot",
    "domain": "makes.fyi",
    "origin": "disc-bot.fly.dev"
  }
}
// Response:
{
  "ok": true,
  "fqdn": "disc-bot.makes.fyi",
  "origin": "disc-bot.fly.dev",
  "https": "https://disc-bot.makes.fyi"
}
STEP 4Verify Live HTTPS (200 OK)
REQ → HEAD https://disc-bot.makes.fyi RES ← HTTP/2 200 OK
Verify live HTTPS response
curl -fsSI https://disc-bot.makes.fyi
# HTTP/2 200
# content-type: application/json
# strict-transport-security: max-age=31536000

3. Clean Teardown (GitHub Action & CLI)

Keep the subdomain active on Pro so production Discord bots never lose their verified Interactions URL. Delete the DNS mapping before you destroy your cloud server to block dangling takeovers.

.github/workflows/teardown-domain.yml
name: Teardown disc-bot
on:
  workflow_dispatch:
  pull_request:
    types: [closed]
jobs:
  cleanup:
    runs-on: ubuntu-latest
    steps:
      - name: Delete AgentDomains hostname before destroying compute
        env:
          AGENTDOMAINS_API_KEY: ${{ secrets.AGENTDOMAINS_API_KEY }}
        run: |
          curl -fsSL -X DELETE \
            -H "Authorization: Bearer $AGENTDOMAINS_API_KEY" \
            "https://api.agentdomains.co/v1/subdomains/disc-bot"
      # Or with the Go CLI:
      # agentdomains delete disc-bot
Configure Your MCP Client → Check Live DNS & ACME

More Workflow Blueprints

Chat Bots

Telegram Bot Webhook HTTPS

Call Telegram’s setWebhook API with https://tg-helper.makes.fyi/bot backed by trusted Cloudflare edge TLS on port 443.

Chat Bots

Slack App Events & Slash Commands

Configure Slack Event Subscriptions, Interactivity, and Slash Command request URLs on a stable HTTPS hostname.

Messaging

WhatsApp Cloud API Webhooks

Verify Meta’s WhatsApp Business Cloud API webhook challenge over trusted HTTPS without wrestling with Nginx cert chains.

CI / CD

CI/CD Branch Preview Domains

Provision deterministic per-branch URLs (feat-auth.makes.fyi) directly from GitHub Actions or GitLab CI using the AgentDomains Go CLI.

30 Days Free · No Card Required

Claim your agent domain now

Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.