Aerostack
Aerostack
support_agent

Customer Support Bot

Customer Support
Updated Mar 6, 2025
GitHub
terminal — aerostack cli
$npx aerostack add aerostack/customer-support-bot
smart_toy

Use with AI Assistants

MCP

Connect Claude, Cursor, or any MCP-compatible client — then call this function by slug

① Add MCP Server

Add this once — access all Aerostack functions from your AI tool.

claude_desktop_config.json
{
  "mcpServers": {
    "aerostack": {
      "url": "https://mcp.aerostack.dev",
      "type": "http"
    }
  }
}

② Call this function

Ask your AI to use the call_function tool with this slug:

call_function
call_function({
  slug: "customer-support-bot",
  args: {}
})

Customer Support Bot

Upload your KB articles and FAQs. The bot answers customer questions and signals when to escalate to a human agent.

Endpoints

MethodPathDescription
POST/ingestUpload KB article or FAQ
POST/chatAnswer + confidence + escalation signal
GET/docsList KB articles
DELETE/docs/:docIdRemove outdated article
GET/healthStatus check

Chat response shape

{
  "answer": "To cancel, go to Account → Billing → Cancel Plan...",
  "confidence": 0.82,
  "should_escalate": false,
  "sources": [{"filename": "billing-faq.md", "excerpt": "..."}]
}

When should_escalate is true (confidence < 0.5), route the customer to a human agent.

Metadata

upgradeVersion1.0.0
gavelLicenseMIT
languageLanguagejavascript
cloudProvidercloudflare-worker

Tags

deployed_code

Build and publish your own functions

Write a TypeScript function, deploy it to the edge, and share it with thousands of developers — in minutes.

Similar Functions

View all →