Setup & Instructions — fluidX: Create Session, Analyze & Notify Goal: This workflow demonstrates the full fluidX THE EYE integration — starting a live session, inviting both the customer (via SMS) and the service agent (via email), and the…
Download this n8n workflow template and start using it instantly.
Goal:
This workflow demonstrates the full fluidX THE EYE integration — starting a live session, inviting both the customer (via SMS) and the service agent (via email), and then accessing the media (photos and videos) created during the session.
Captured images are automatically analyzed with AI, uploaded to an external storage (such as Google Drive), and a media summary for the session is generated at the end.
Below is an example screenshot from the customer’s phone:
1 fluidX API key (HTTP Header Auth)
• Credential name in n8n: fluidx API key
• Header name: x-api-key
• Header value: YOUR_API_KEY
2 SMTP account (for outbound email)
• Credential name in n8n: SMTP account
• Configure host, port, username, and password according to your provider
• Enable TLS/SSL as required
3 Google Drive account
• Used to store photos, videos, and automatically update the session summary files.
4 OpenAI API (for AI analysis & summary) •Used in the Analyze Images (AI) and Generate Summary parts of the workflow. • Credential type: OpenAI • Credential name (suggested): OpenAI account • API Key: your OpenAI API key • Model: e.g. gpt-4.1, gpt-4o, or similar (choose in the OpenAI node settings)
BASE_URL: https://live.fluidx.digitalcompany / project / billingcode / sku: adjust as neededemailAgent: set before running (empty in template)phoneNumberUser: set before running (empty in template)Form Trigger → Create Session → Set Session Vars → Send SMS (User) → Send Email (Agent) → Monitor Media → Analyze Images (AI) → Upload Files to Google Drive → Generate Summary → Update Summary File
The workflow starts automatically when a Form submission is received.
Users enter the customer’s phone number and agent’s email, and the system creates a new fluidX THE EYE session.
As media is uploaded during the session, the workflow automatically retrieves, stores, analyzes, and summarizes it — providing a complete end-to-end automation example for remote inspection, support, or field-service use cases.
On form submission (Form Trigger): Starts the workflow from a public form submission, capturing the submitted fields.
Set Config (Set): Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
Set Session Vars (Set): Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
Create Session Folder (Google Drive): Uploads, downloads, or manages files in Google Drive.
Send email to Agent (Email Send): Handles the Email Send step in this workflow.
If Phone Set? (If): Branches the workflow based on a true/false condition.
If User Email Set? (If): Branches the workflow based on a true/false condition.
Send email to User (Email Send): Handles the Email Send step in this workflow.
Split photoRefs (Item Lists) (Item Lists): Manipulates lists of items — sorting, limiting, or removing duplicates.
fluidX API - Media Info HTTP Request GET (HTTP Request): Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
Upload file (Google Drive): Uploads, downloads, or manages files in Google Drive.
Wait (Wait): Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
Wait1 (Wait): Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
Analyze image (Open AI): Calls the OpenAI API for chat, image, or audio generation.
Merge Analyze + URL (Merge): Combines data from multiple branches back into a single stream.
Build MediaInfo (Set): Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
fluidX API - Create Session (HTTP Request): Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
fluidX API - Send SMS User (HTTP Request): Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
fluidX API - Get Session Info (HTTP Request): Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
fluidX API - Download Photo THEEYE Session (HTTP Request): Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
fluidX API - Media Info HTTP Request POST (HTTP Request): Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
If new Image (If): Branches the workflow based on a true/false condition.
If Media Id (If): Branches the workflow based on a true/false condition.
If Session Active (If): Branches the workflow based on a true/false condition.
The End (No Op): A pass-through step that does nothing — used to organize the flow.
Generate Photo Summary (Code): Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
Upload Photo Summary (Google Drive): Uploads, downloads, or manages files in Google Drive.
Convert Text to Binary (Code): Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
fluidX API - Media Summary (HTTP Request): Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
Carry URL and Id (Set): Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
If photos (If): Branches the workflow based on a true/false condition.
Extract Media Refs photos (Set): Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
Check Already Uploaded (Code): Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
Merge photoRefs (Merge): Combines data from multiple branches back into a single stream.
Clear Uploaded Photo Store (Code): Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
Merge (Merge): Combines data from multiple branches back into a single stream.
Convert Summary Text to Binary (Code): Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
Upload Session Summary (Google Drive): Uploads, downloads, or manages files in Google Drive.
Remember Session Summary File (Code): Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
Who is this for? This template is designed for internal support teams, product specialists, and knowledge managers in technology companies who want to automate ingestion of product documentation and enable AI-driven, retrieval-augmented question answering via WhatsApp. What problem is this workflow solving? Support agents often spend too much time manually searching through lengthy documentation, leading to inconsistent or delayed answers. This solution automates importing, chunking, and indexing product manuals, then uses retrieval-augmented generation (RAG) to answer user queries accurately and quickly with AI via WhatsApp messaging. What these workflows do Workflow 1: Document Ingestion & Indexing Manually triggered to import product documentation from Google Docs. Automatically splits large documents into chunks for efficient searching. Generates vector embeddings for each chunk using OpenAI embeddings. Inserts the embedded chunks and metadata into a MongoDB Atlas vector store, enabling fast semantic search. Workflow 2: AI-Powered Query & Response via WhatsApp Listens for incoming WhatsApp user messages, supporting various types: Text messages: Plain text queries from users. Audio messages: Voice notes transcribed into text for processing. Image messages: Photos or screenshots analyzed to provide contextual answers. Document messages: PDFs, spreadsheets, or other files parsed for relevant content. Converts incoming queries to vector embeddings and performs similarity search on the MongoDB vector store. Uses OpenAI’s GPT-4o-mini model with retrieval-augmented generation to produce concise, context-aware answers. Maintains conversation context across multiple turns using a memory buffer node. Routes different message types to appropriate processing nodes to maximize answer quality. Setup Setting up vector embeddings 1. Authenticate Google Docs and connect your Google Docs URL containing the product documentation you want to index. 2. Authenticate MongoDB Atlas and connect the collection where you want to store the vector embeddings. Create a search index on this collection to support vector similarity queries. 3. Ensure the index name matches the one configured in n8n (data_index). 4. See the example MongoDB search index template below for reference. Setting up chat 1. Authenticate the WhatsApp node with your Meta account credentials to enable message receiving and sending. 2. Connect the MongoDB collection containing embedded product documentation to the MongoDB Vector Search node used for similarity queries. 3. Set up the system prompt in the Knowledge Base Agent node to reflect your company’s tone, answering style, and any business rules, ensuring it references the connected MongoDB collection for context retrieval. Make sure Both MongoDB nodes (in ingestion and chat workflows) are connected to the same collection with: An embedding field storing vector data, Relevant metadata fields (e.g., document ID, source), and The same vector index name configured (e.g., data_index). Search Index Example: { "mappings": { "dynamic": false, "fields": { "_id": { "type": "string" }, "text": { "type": "string" }, "embedding": { "type": "knnVector", "dimensions": 1536, "similarity": "cosine" }, "source": { "type": "string" }, "doc_id": { "type": "string" } } } }
Document-Aware WhatsApp AI Bot for Customer Support Google Docs-Powered WhatsApp Support Agent 24/7 WhatsApp AI Assistant with Live Knowledge from Google Docs Description Template Smart WhatsApp AI Assistant Using Google Docs Help customers instantly on WhatsApp using a smart AI assistant that reads your company’s internal knowledge from a Google Doc in real time. Built for clubs, restaurants, agencies, or any business where clients ask questions based on a policy, FAQ, or services document. How it works Users send free-form questions to your WhatsApp Business number (e.g. “What are the gym rules?” or “Are you open today?”) The bot automatically reads your company’s internal Google Doc (policy, schedule, etc.) It merges the document content with today’s date and the user’s question to craft a custom AI prompt The AI (Gemini or ChatGPT) then replies back on WhatsApp using natural, helpful language All conversations are logged to Google Sheets for reporting or audit > Bonus: The AI even understands dates inside the document and compares them to today’s date — e.g. if your document says “Closed May 25 for 30 days,” it will say “We're currently closed until June 24. Set up steps 1. Connect your WhatsApp Cloud API account (Meta) 2. Add your Google account and grant access to the Doc containing your company info 3. Choose your AI model (ChatGPT/OpenAI or Gemini) 4. Paste your document ID into the Google Docs node 5. Connect your WhatsApp webhook to Meta (only takes 5 minutes) 6. Done — start receiving and answering customer questions! > Works best with free-tier OpenAI/Gemini, Google Docs, and Meta's Cloud API (no phone required). Everything is modular, extensible, and low-code. Customization Tips Change the Google Doc anytime to update answers — no retraining needed Add your logo and business name in the AI agent’s “System Prompt” Add fallback routes like “Escalate to human” if the bot can't help Clone for multiple brands by duplicating the workflow and swapping in new docs Need Help Setting It Up? If you'd like help connecting your WhatsApp Business API, setting up Google Docs access, or customizing this AI assistant for your business or clients… I offer setup, branding, and customization services: WhatsApp Cloud API setup & verification Google OAuth & Doc structure guidance AI model configuration (OpenAI / Gemini) Branding & prompt tone customization Logging, reporting, and escalation logic Just send a message via: Email: tharwat.elsayed2000@gmail.com WhatsApp: +20 106 180 3236
Want to check out all my flows, follow me on: https://maxmitcham.substack.com/ https://www.linkedin.com/in/max-mitcham/ Email Manager - Intelligent Gmail Classification This automation flow is designed to automatically monitor incoming Gmail messages, analyze their content and context using AI, and intelligently classify them with appropriate labels for better email organization and prioritization. How It Works (Step-by-Step): 1. Gmail Monitoring (Trigger) Continuously monitors your Gmail inbox: `` Polls for new emails every minute Captures all incoming messages automatically Triggers workflow for each new email received ` 2. Email Content Extraction Retrieves complete email details: ` Full email body and headers Sender information and recipient lists Subject line and metadata Existing Gmail labels and categories Email threading information (replies/forwards) ` 3. Email History Analysis AI agent checks relationship context: ` Searches for previous emails from the same sender Checks sent folder for prior outbound correspondence Determines if this is a first-time contact (cold email) Analyzes conversation thread history ` 4. Intelligent Classification Agent Advanced AI categorization using: ` Claude Sonnet 4 for sophisticated email analysis Context-aware classification based on email history Content analysis for intent and urgency detection Header analysis for automated vs. human-sent emails ` 5. Smart Label Assignment Automatically applies appropriate Gmail labels: ` To Respond: Requires direct action/reply FYI: For awareness, no action needed Notification: Service updates, policy changes Marketing: Promotional content and sales pitches Meeting Update: Calendar-related communications Comment: Document/task feedback ` 6. Structured Processing Ensures consistent labeling: ` Uses structured output parsing for reliability Returns specific Label ID for Gmail integration Applies label automatically to the email Maintains classification accuracy ` Tools Used: ` n8n: Workflow automation platform Gmail API: Email monitoring and label management Anthropic Claude: Advanced email content analysis Gmail Tools: Email history checking and search Structured Output Parser: Consistent AI responses ` Key Features: ` Real-time email monitoring and classification Context-aware analysis using email history Intelligent cold vs. warm email detection Multiple classification categories for organization Automatic Gmail label application Header analysis for automated email detection Thread-aware conversation tracking ` Ideal Use Cases: ` Busy executives managing high email volumes Sales professionals prioritizing prospect communications Support teams organizing customer inquiries Marketing teams filtering promotional content Anyone wanting automated email organization Teams needing consistent email prioritization ``
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. This workflow automatically monitors keyword rankings across search engines to track SEO performance and identify optimization opportunities. It saves you time by eliminating the need to manually check keyword positions and provides comprehensive ranking data for strategic SEO decision making. Overview This workflow automatically scrapes search engine results pages (SERPs) to track keyword rankings, competitor positions, and search features. It uses Bright Data to access search results without restrictions and AI to intelligently parse ranking data, track changes, and identify SEO opportunities. Tools Used n8n: The automation platform that orchestrates the workflow Bright Data: For scraping search engine results without being blocked OpenAI: AI agent for intelligent ranking analysis and SEO insights Google Sheets: For storing keyword ranking data and tracking changes How to Install 1. Import the Workflow: Download the .json file and import it into your n8n instance 2. Configure Bright Data: Add your Bright Data credentials to the MCP Client node 3. Set Up OpenAI: Configure your OpenAI API credentials 4. Configure Google Sheets: Connect your Google Sheets account and set up your ranking tracking spreadsheet 5. Customize: Define target keywords and ranking monitoring parameters Use Cases SEO Teams: Track keyword performance and identify ranking improvements Content Marketing: Monitor content ranking success and optimization needs Competitive Analysis: Track competitor keyword rankings and strategies Digital Marketing: Measure organic search performance and ROI Connect with Me Website: https://www.nofluff.online YouTube: https://www.youtube.com/@YaronBeen/videos LinkedIn: https://www.linkedin.com/in/yaronbeen/ Get Bright Data: https://get.brightdata.com/1tndi4600b25 (Using this link supports my free workflows with a small commission) #n8n #automation #keywordrankings #seo #searchrankings #brightdata #webscraping #seotools #n8nworkflow #workflow #nocode #ranktracking #keywordmonitoring #seoautomation #searchmarketing #organicseo #seoresearch #rankinganalysis #keywordanalysis #searchengines #seomonitoring #digitalmarketing #serp #keywordtracking #seoanalytics #searchoptimization #rankingreports #keywordresearch #seoinsights #searchperformance