Aerostack
Aerostack
edit

Docs Q&A Bot

Content
Updated Mar 6, 2025
GitHub
terminal — aerostack cli
$npx aerostack add aerostack/docs-qa-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: "docs-qa-bot",
  args: {}
})

Docs Q&A Bot

Upload your documentation and let users ask questions. Powered by Aerostack RAG + Workers AI.

Endpoints

MethodPathDescription
POST/ingestUpload text or fetch from URL
POST/chatMulti-turn Q&A with citations
POST/searchSemantic search (no LLM)
GET/docsList indexed documents
DELETE/docs/:docIdRemove a document
GET/healthStatus check

Ingest text

curl -X POST {endpoint}/ingest \
  -H "Authorization: Bearer {key}" \
  -H "Content-Type: application/json" \
  -d '{"filename":"guide.txt","content":"Your documentation text here..."}'

Chat

curl -X POST {endpoint}/chat \
  -H "Authorization: Bearer {key}" \
  -H "Content-Type: application/json" \
  -d '{"message":"How do I reset my password?"}'

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 →