🧠 AI & AgentsIntermediate● Active🧠 AI-powered🧬 RAG

02 – Inbound → Label → Reply

A 29-step ai & agents automation, triggered by gmail, chat, connecting OpenAI Embeddings, Gmail, Supabase Vector, OpenRouter (LLM), HTTP / REST API, Airtable, with built-in AI reasoning.

⬇ Download workflow JSON
💡

What this does for your business

In plain terms: this is an AI assistant that works the moment a new message arrives. It uses AI to understand and generate content, so it handles judgement-style work, not just moving data. It connects to OpenAI Embeddings, Gmail, Supabase Vector, OpenRouter (LLM) and completes multi-step tasks for you automatically — the kind of work you'd otherwise hand to a virtual assistant.

29
Nodes
6
Integrations
37
Connections
Gmail, Chat
Trigger

🚀 Deploy this workflow

Deploy this automation in minutes

Log in and we'll walk you through every key step by step, then deploy it for you.

Get started free Log in

🏗️ Architecture diagram

The real node graph exported from n8n — triggers (green), AI nodes (violet), services and logic — laid out as they run.

Switch1switchclean textcode🧬Embeddings OpenAIembeddingsOpenAiLABELset📧Get a messagegmail📧wholesalesgmail📧shipping detailsgmail📧Trackinggmail🧬retrieve CONTEXTvectorStoreSupabase🧠Chat MemorymemoryPostgresChat📧Quote requestgmail🧠Kateagent🧠Output ParseroutputParserStructu…🧠LLMlmChatOpenRouter📧Refund requestgmail📧call requestgmail📧NO LABELgmail📧Order not_foundgmail📧invoice requestsgmail📧email/phonegmail📧damagedgmail📧custom clearancegmail📧incoming_emailgmailTriggerRAW MIME for draft (t…code🌐Gmail API create draf…httpRequest🗃️DRAFTairtable🧠Email LabelerchainLlm🧠AIlmChatOpenRouterWhen chat message rec…chatTrigger

⚙️ How it works

  1. Embeddings OpenAI · embeddingsOpenAi
  2. Chat Memory · memoryPostgresChat
  3. Output Parser · outputParserStructured
  4. LLM · lmChatOpenRouter
  5. incoming_email · gmailTrigger
  6. AI · lmChatOpenRouter
  7. When chat message received · chatTrigger
  8. retrieve CONTEXT · vectorStoreSupabase
  9. Kate · agent
  10. Get a message · gmail
  11. Email Labeler · chainLlm
  12. RAW MIME for draft (threaded) · code
  13. clean text · code
  14. LABEL · set

💼 Business analysis

🎯

Business use case

Deploys an autonomous AI agent that can reason over instructions, call tools, and take multi-step actions on behalf of a team — replacing repetitive knowledge work. It orchestrates OpenAI Embeddings, Gmail, Supabase Vector, OpenRouter (LLM), HTTP / REST API, Airtable so a single natural-language request becomes a completed task.

📈

Market need

Businesses are racing to put AI agents to work but lack the engineering to wire models to their real tools and data. This delivers that wiring as a ready-to-run asset.

💰

Market value

Custom AI-agent builds are quoted at $3,000–$15,000+ by agencies, with managed retainers on top. As a productised template it commands premium one-time or subscription pricing.

🧩 Integrations & stack

🧬OpenAI Embeddings📧Gmail🧬Supabase Vector🧠OpenRouter (LLM)🌐HTTP / REST API🗃️Airtable
Node typesswitch, code, embeddingsOpenAi, set, gmail, vectorStoreSupabase, memoryPostgresChat, agent, outputParserStructured, lmChatOpenRouter, gmailTrigger, httpRequest, airtable, chainLlm, chatTriggerWorkflow IDdhnQhbWIdk95oyd0
⬇ Download workflow JSON ← Back to library