Automated Customer Support & FAQ System Powered by AI
This AI agent scrapes your website, understands its content using embeddings, and provides instant, accurate responses to customer queries—just like a human support expert.
✅ 24/7 Automated Support – Answers customer questions instantly
✅ Semantic Understanding – Finds relevant answers even with vague queries
✅ Easy Setup – Just add your website URLs and let the AI learn
✅ Self-Improving – Continuously updates with new website content
✅ Low Latency – Fast responses using ChromaDB vector search
| Component | Technology |
|---|---|
| Web Scraping | Cheerio + Axios |
| Embeddings | OpenAI (text-embedding-3-small) or Any LLM |
| Vector DB | ChromaDB (local/self-hosted) or Any vector DB |
| Query Handling | Semantic Search + Similarity Matching |
- Node.js (v18+)
- Docker (for ChromaDB)
- OpenAI API key
git clone
cd ai-support-agent
npm install
echo "OPENAI_API_KEY=your_api_key_here" > .envdocker-compose up -d --buildEdit index.js to add your support/FAQ pages:
const urls = [
// add your web urls here
];node index.js- Add more URLs – Include documentation, blogs, or tutorials for better coverage
- Adjust chunk size – Modify
textChunks()inindex.jsfor optimal text splitting - Fine-tune queries – Change
nResultsinchat()to retrieve more answers
- Slack/Discord Bot – Connect via webhooks
- Live Chat Widget – Embed in your website
- API Endpoint – Deploy as a REST service
- Scrapes website content (FAQs, docs, support pages)
- Converts text into AI embeddings (vector representations)
- Stores embeddings in ChromaDB for fast search
- Matches user queries with relevant content using semantic similarity
- Returns the most accurate answer in natural language
| Issue | Solution |
|---|---|
| ChromaDB not running | Run docker ps to check container status |
| Empty responses | Ensure website content is scraped properly |
| Low accuracy | Add more URLs or adjust chunk size |
Let AI handle your customer support! 🚀