Back to Catalog

Templates by Lakindu Siriwardana

Chat with internal documents using Ollama, Supabase Vector DB & Google Drive

πŸ“š Chat with Internal Documents (RAG AI Agent) βœ… Features Answers should given only within provided text. Chat interface powered by LLM (Ollama) Retrieval-Augmented Generation (RAG) using Supabase Vector DB Multi-format file support (PDF, Excel, Google Docs, text files) Automated file ingestion from Google Drive Real-time document update handling Embedding generation via Ollama for semantic search Memory-enabled agent using PostgreSQL Custom tools for document lookup with context-aware chat βš™οΈ How It Works πŸ“₯ Document Ingestion & Vectorization Watches a Google Drive folder for new or updated files. Deletes old vector entries for the file. Uses conditional logic to extract content from PDFs, Excel, Docs, or text Summarizes and preprocesses content. (if needed) Splits and embeds the text via Ollama. Stores embeddings in Supabase Vector DB πŸ’¬ RAG Chat Agent Chat is initiated via Webhook or built-in chat interface. User input is passed to the RAG Agent. Agent queries the User_documents tool (Supabase vector store) using the Ollama model to fetch relevant content. If context is found, it answers directly. Otherwise, it can call tools or request clarification. Responses are returned to the user, with memory stored in PostgreSQL for continuity. πŸ›  Supabase Database Configuration Create a Supabase project at https://supabase.com and go to the SQL editor. Create a documents table with the following schema: id - int8 content - text metadata - jsonb embedding - vector Generate an API Key

Lakindu SiriwardanaBy Lakindu Siriwardana
1846

AI-powered CV filtering with Llama3.1 LLM, Google Drive & Sheets

This visual workflow represents an AI-powered automated CV filtering system created using tools like n8n, Google Drive, Google Sheets, and Ollama (LLM) βš™οΈ Key Features πŸ“‚ Google Drive Integration – Automatically searches and downloads CVs (PDF/DOCX/PPTX) from a shared folder. πŸ“‹ Criteria Matching – Reads and applies filtering rules from a Google Sheet. 🧠 LLM-Based Analysis – Uses a Large Language Model (Ollama) to assess and interpret CV content. πŸ§ͺ Smart Parsing – Includes structured and auto-fixing output parsers to ensure data accuracy. πŸ“Š Automated Results Output – Writes matching candidates and analysis to a Google Sheet. πŸ” Loop and Aggregate Logic – Handles multiple CVs with iterative processing and aggregation. πŸš€ No-Code Automation with n8n – Fully visual, modifiable without programming. πŸ› οΈ How It Works Trigger: Workflow is initiated via a Webhook (from a UI β€œStart Workflow” button). CV Search: Searches for CV files in a designated Google Drive folder. Loop Over Files: Each file is downloaded. Text is extracted (from PDFs or other formats). Criteria Input: Matching rules are fetched from a predefined Google Sheet. Merge & Aggregate: Combines file text and criteria for unified processing. LLM Processing: Text + criteria are sent to the Basic LLM Chain. Utilizes Ollama Model for advanced language understanding. Structured or auto-fixing output parsers enhance reliability. Custom Code Execution: Optionally enriches or reformats the data. Output: Results are appended to a shared Google Sheet (the output sheet).

Lakindu SiriwardanaBy Lakindu Siriwardana
677

Generate AI-powered lease renewal offers with Ollama LLM, Supabase and Gmail

πŸ“„ Automated Lease Renewal Offer by Email βœ… Features Automated Lease Offer Generation using AI (Ollama model). Duplicate File Check to avoid reprocessing the same customer. Personalized Offer Letter creation based on customer details from Supabase. PDF/Text File Conversion for formatted output. Automatic Google Drive Management for storing and retrieving files. Email Sending with generated offer letter attached. Seamless Integration with Supabase, Google Drive, Gmail, and AI LLM. βš™οΈ How It Works Trigger: Workflow starts on form submission with customer details. Customer Lookup: Searches Supabase for customer data. Updates customer information if needed. File Search & Duplication Check: Looks for existing lease offer files in Google Drive. If duplicate found, deletes old file before proceeding. AI Lease Offer Creation: Uses the LLM Chain (offerLetter) to generate a customized lease renewal letter. File Conversion: Converts AI-generated text into a downloadable file format. Upload to Drive: Saves the new lease offer in Google Drive. Email Preparation: Uses Basic LLM Chain-email to draft the email body. Downloads the offer file from Drive and attaches it. Email Sending: Sends the renewal offer email via Gmail to the customer. πŸ›  Setup Steps Supabase Connection: Add Supabase credentials in n8n. Ensure a customers table exists with relevant columns. πŸ”œFuture Steps Add specific letter template (organization template). PDF offer letter

Lakindu SiriwardanaBy Lakindu Siriwardana
316
All templates loaded