Library / RAG & Knowledge Bases
RAG & Knowledge Bases
Answer HR policy questions in Telegram with Groq, Gemini and Google Drive
Run manually to ingest an HR policy PDF from Google Drive into a vector store; then each Telegram message gets an answer from an AI agent grounded in the policy text.
What it does
## Answer HR policy questions in Telegram with RAG (Groq, Gemini embeddings, Google Drive) ### How it works This workflow builds a retrieval-augmented HR policy assistant for Telegram. A manual ingestion path downloads an HR policy PDF from Google Drive, parses it, creates Gemini embeddings, and inserts the content into an in-memory vector store. When a Telegram message arrives, an AI agent uses Groq, chat memory, and the policy vector store to answer the employee’s question, then sends the response back to Telegram. ### Setup steps - Configure Google Drive credentials and point the download node to the HR policy PDF file. - Configure Google Gemini credentials for both embedding nodes used during insert and retrieval. - Configure Groq credentials for the chat model used by the HR Policy Agent. - Configure Telegram bot credentials for the trigger and reply nodes, including the correct chat/message fields. - Run the manual knowledge-base loading path before answering questions so the in-memory vector store is populated. ### Customization Swap the Google Drive file for another policy document, adjust the agent prompt and Groq model, tune PDF loading/chunking behavior, or replace the in-memory vector store with a persistent vector database if the index must survive workflow restarts.
The steps
- When Manually Triggered
- Download PDF from Google Drive
- Store in Vector Database
- Generate Gemini Embeddings
- Load PDF Data
- When Message on Telegram
- HR Q&A Agent
- Send Reply on Telegram
- Groq Chatbot Model
- Memory Buffer for Chat
- HR Policy Vector Storage
- Retrieve Gemini Embeddings
Similar automations
RAG & Knowledge BasesAnswer HR Policy Questions from BambooHR with OpenAI39 stepsRAG & Knowledge BasesGenerate Privacy Policies with Claude RAG and Redis10 stepsRAG & Knowledge BasesTelegram Knowledge Hub Chatbot with Groq and Uploaded Files13 stepsRAG & Knowledge BasesBasic RAG Chat with Cohere Embeddings and Groq12 steps