← Back to portfolio
Legal Consultation Bot — @FaroMigranteBot
Python, Telegram Bot API, RAG (LangChain), OpenAI API, Vector DB, Telegram Stars

A Spanish law firm specializing in document legalization needed to automate first-line client consultations. Incoming queries were repetitive, consumed lawyer time, and required accurate answers grounded in the firm's own documents — not generic AI output.
What was done
- Telegram bot with a RAG pipeline built over the firm's internal document base
- All answers sourced strictly from uploaded firm documents — no hallucinated legal advice
- Dialogue logging to a private Telegram group for audit and quality control
- Monetization via Telegram Stars: free tier for standard queries, paid tier for extended sessions
- Multi-language support (Spanish / Russian) matching the firm's client base
The bot handles routine client questions 24/7, freeing lawyers for substantive work. The logging system gives the firm full visibility into every conversation. The monetization layer creates a self-sustaining model for high-volume usage.