Chat with your email history in Telegram or inside n8n. The assistant searches both a database of email text and your structured email tables, then replies with clear answers. Great for operations and team managers who need fast answers from past emails.
New messages enter through two triggers, a Telegram bot and the n8n chat panel. An AI agent with short term memory and a chat model understands the question. It uses two tools to find facts. A PGVector search in PostgreSQL finds similar email content, and a linked helper workflow turns the question into SQL for exact lookups. Results are cleaned, split into safe size chunks, escaped for Telegram Markdown, and sent back in order.
Set up a PostgreSQL database with PGVector and load your email content into the emails_embeddings table. Connect your own SQL helper workflow that receives a natural language question and returns SQL results from your email tables. Expect faster responses, fewer manual searches, and a simple chat experience for everyday email intelligence.