~/hassan
← back to projects

"case_study": "ai-crm-chat"

Teaching a CRM to answer from its own data

A retrieval-augmented chat assistant that answers questions from a business's actual documents and email — not from a language model's imagination.

"role"

Full-stack development — Express + LangChain RAG server and Next.js chat frontend

"stack": [8]

  • Node.js
  • Express.js
  • LangChain
  • FAISS
  • Ollama
  • Prisma
  • Next.js
  • Vercel AI SDK

The problem

CRM knowledge lives in PDFs, email threads, and notes — places a keyword search barely reaches and a plain LLM can't see at all. Ask a generic chatbot about your own customers and it will confidently invent answers.

Retrieval-augmented generation fixes the trust problem: the model only answers from documents actually retrieved from your data, so the answer is grounded in something that exists.

The pipeline

Why it matters

RAG is the pattern that makes LLMs safe to point at business data, and this project covers the full span of it — ingestion, vector search, orchestration, and a production chat UI. The frontend is public, with a live demo.