Build a support chatbot
End-to-end guide: ingest your help docs, build a retrieval-powered support experience, and improve over time.
Build a customer support experience that retrieves answers from your help center, policies, and past tickets. Use MemoryKit search to find the most relevant passages, then feed them into your own LLM for answer generation.
Prerequisites
- A MemoryKit API key (get one here)
- Node.js 18+ or Python 3.8+
- Your help center content (articles, FAQs, policy documents)
Step 1: Ingest your knowledge base
Upload your support content as memories. MemoryKit auto-chunks, embeds, and indexes everything.
Batch ingest accepts up to 100 items per call. For larger datasets, split into batches.
Step 2: Upload PDF policies
Got policy documents as PDFs? Upload them directly.
Step 3: Build the support endpoint
Create an endpoint that retrieves relevant knowledge and returns it. You can then feed these results into your own LLM for answer generation.
Step 4: Improve over time
Add resolved tickets as new memories so the bot learns from real interactions.
Step 5: Monitor with webhooks
Set up webhooks to track when memories finish processing (or fail).
Summary
| What | How |
|---|---|
| Ingest content | batchIngest() + upload() |
| Retrieve answers | search() with filters, then feed into your LLM |
| Cite sources | results[].content with article metadata |
| Improve over time | Add resolved tickets as memories |
| Monitor | Webhooks for memory.completed / memory.failed |
Key features used: Batch ingest, File upload, Search, Webhooks