support_agent
Customer Support Bot
Customer Supportterminal — aerostack cli
$
npx aerostack add aerostack/customer-support-botsmart_toy
Use with AI Assistants
MCPConnect 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
| Method | Path | Description |
|---|---|---|
| POST | /ingest | Upload KB article or FAQ |
| POST | /chat | Answer + confidence + escalation signal |
| GET | /docs | List KB articles |
| DELETE | /docs/:docId | Remove outdated article |
| GET | /health | Status 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
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.