Skip to content
FlowHubFluxonLab
A
AI Automationfree

Handle LinkedIn inbox RAG replies with Unipile, Claude, Pinecone, and Airtable

by Salman Mehboobadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentAirtableAirtableCCodeDDefault Data LoaderEmbeddings Google GeminiEmbeddings Google GeminiGoogle DriveGoogle DriveHTTP RequestHTTP RequestOpenRouter Chat ModelOpenRouter Chat ModelPinecone Vector StorePinecone Vector StoreSSimple MemoryStructured Output ParserStructured Output ParserToken SplitterToken Splitter
Share Post Share
GDWatch KB FolderDownload FileVSPinecone InsertDDDefault Data LoaderDefault Data Lo…TSToken SplitterLog to KB LogEGEmbeddings Google GeminiEmbeddings Goog…WeAirtable Approved WebhookAirtable Approv…SeExtract PayloadIfValid Approved Payload?Valid Approved …HRSend Approved Reply via UnipileSend Approved R…Update Draft Status SentUpdate Draft St…Mark Send FailedLog Send ErrorLog Invalid PayloadLog Invalid Pay…WeUnipile Inbox WebhookUnipile Inbox W…SeConfigSeExtract & Normalize FieldsExtract & Norma…IfValid Inbound Message?Valid Inbound M…HRFetch Thread HistoryFetch Thread Hi…CoFormat Thread ContextFormat Thread C…Claude via OpenRouterClaude via Open…MBConversation MemoryConversation Me…OPClassification SchemaClassification …IfIs Spam?Log SpamAgGenerate RAG ReplyGenerate RAG Re…VSKnowledge BaseEGQuery Embeddings (Gemini)Query Embedding…Save Draft to AirtableSave Draft to A…IfAuto-Send Enabled?Auto-Send Enabl…HRSend Reply via UnipileSend Reply via …Log Fetch ErrorAgClassify MessageUpdate Draft Status Sent1Update Draft St…Log Send Error1123456
1/5
FLOWS
STEPS · 6
Starts on a Google Drive event

Quick overview Automatically ingest your knowledge base, monitor your LinkedIn company page inbox, and reply to leads and customers with AI-drafted, source-grounded answers. Classifies every message, checks for spam, drafts replies using Claude and Pinecone RAG, and lets you auto-send or review each reply in Airtable. How it works A Google Drive trigger watches a folder for new or updated documents, downloading each file automatically as it's added. Each document is split into chunks, embedded, and upserted into a Pinecone vector index, building a searchable company knowledge base. A webhook receives every new LinkedIn message sent to your company page via Unipile, filtering out messages you sent yourself. The last few messages in the conversation are fetched and formatted into a chronological transcript for context. An AI agent classifies the message's intent (lead, support, partnership, recruiting, spam, or other) using shared conversation memory. A second AI agent drafts a reply, searching the Pinecone knowledge base for relevant facts before answering, and saves the draft to Airtable.

Tags

n8nreference-onlyagentairtabledocument-default-data-loaderembeddings-google-geminigoogle-drivelm-chat-open-routermemory-buffer-windowoutput-parser-structuredtext-splitter-token-splittervector-store-pinecone
Connects
AAI AgentairtableAirtableCCodeDDefault Data LoaderembeddingsgooglegeminiEmbeddings Google GeminigoogledriveGoogle Drive
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes36
AddedJul 10, 2026

Related workflows

See all AI Automation
ACW
free

Run a multimodal WhatsApp AI assistant with OpenAI for text, voice and images

Quick overview This workflow turns WhatsApp into a multimodal assistant that answers text, voice notes, images, and PDF documents using OpenAI, and can generate images with DALL·E on demand, replying back in WhatsApp with either text, audio, or an image. How it works Triggers when a new WhatsApp message is received. Detects whether the incoming message is text, a voice note, an image, a PDF document, or an unsupported type. For text messages, generates an image with OpenAI DALL·E when the message starts with the configured /image command, and sends the generated image back to the sender. For voice notes, fetches the WhatsApp media URL, downloads the audio, transcribes it with OpenAI, and forwards the transcript to the assistant. For images, fetches the WhatsApp media URL, downloads the image, describes it with OpenAI vision using the configured analysis prompt, and forwards the description (plus any caption) to the assistant. For PDF documents, downloads the file from WhatsApp, extracts the PDF text, and forwards the extracted content (plus any caption) to the assistant, while non-PDF files receive an error message. Uses an OpenAI chat model with per-contact short-term memory to ge

by Dr. Firas
Dgoogledriveopenaichatmodelsummarizationchain
free

Load and summarize Google Drive files with AI

This workflow includes advanced features like text summarization and tokenization, it's ideal for automating document processing tasks that require parsing and summarizing text data from Google Drive. To use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
Agmailsheetsopenaichatmodel
free

Answer customer questions on WhatsApp with OpenAI, Gmail, and Google Sheets

Quick overview This workflow answers incoming WhatsApp customer questions using an OpenAI-powered agent that reads your live website via HTTP requests, escalates unclear or sensitive cases to your support team via Gmail, and logs each conversation to Google Sheets. How it works Triggers when a new WhatsApp message is received. Loads configuration values (company name, website root URL, AI model, language rules, escalation email, and WhatsApp phone number ID) and extracts the customer phone number and message text. Ignores non-text WhatsApp updates (such as images, audio, and status messages). Uses OpenAI with conversation memory to navigate your website by listing links and fetching relevant pages, then generates a structured result containing an answer, escalation flag, sentiment, topic, and source URLs. If the agent marks the request as needing a human, sends an escalation email via Gmail to your support address with the customer details and the drafted reply. Sends the final plain-text reply back to the customer on WhatsApp. Appends the conversation details to a Google Sheets log. Setup Connect credentials for WhatsApp Trigger/WhatsApp Cloud API, OpenAI, Gmail, and Google Sheets

by Dr. Firas