Automate restaurant orders and customer support using this advanced n8n workflow. Integrates WhatsApp (Evolution API), LangChain Agents, RAG, and Supabase for ultimate delivery automation.
Download this n8n workflow template and start using it instantly.








































This comprehensive n8n workflow solves the common challenge of high-volume, repetitive customer service and order placement in the food delivery sector. By utilizing a sophisticated LangChain AI agent deployed as an n8n node, the system intelligently handles diverse customer interactions. The agent maintains conversational context using Postgres Chat Memory, accesses external documents via a Supabase Vector Store (RAG), and executes specific business logic using specialized 'Tool' workflows (such as placing an order or retrieving customer data).
This robust n8n automation ensures immediate responses, significantly reduces the need for manual agent intervention, and maintains all chat history and customer data within a structured Supabase database. Furthermore, it features a mechanism to update its knowledge base dynamically, ensuring the AI always has access to the latest menus or policy documents.
The entire process is orchestrated by several interconnected flows within this large n8n workflow, handling both real-time customer chats and background knowledge updates.
input evolution webhook acts as the primary n8n trigger, receiving messages instantly from the Evolution WhatsApp API.Redis nodes (Verifica Atendimento Humano, PARAR ISIS) to determine if the chat requires human handover or if the user is spamming. Customer and chat records are retrieved or created using dedicated Supabase n8n nodes (FindPhone, If3).Delivery AI n8n node (a LangChain Agent). This agent uses the OpenAI Chat Model, leveraging tools like buscacliente, enviacomanda, and the RAG tool buscadocumentos to analyze the query and formulate a decisive action or response.Switch3 n8n node analyzes the AI's output. Responses can be a standard text message (sent via Evolution API), a complex structured command (parsed by Parser Chain and sent via Evolution API2), or, uniquely, an audio response. ElevenLabsGenerateVoice (via HTTP Request n8n node) for Text-to-Speech, converts the resulting file using Code2, and sends the voice note via Evolution API3.CreateMessage-Supabase and UpdateChat-Supabase nodes.Schedule Trigger or Google Drive change triggers (File Created/File Updated).Download File), extracted (Extract Document Text, Extract PDF Text), and pre-processed. Character Text Splitter breaks down large documents into manageable chunks.Embeddings OpenAI2 node and then inserted into the Supabase Vector Store, making the new information immediately accessible to the buscadocumentos RAG tool used by the main AI agent. This ensures the n8n workflow operates with up-to-date knowledge.To deploy this expert n8n workflow, follow these steps:
input evolution Webhook URL and the Evolution API connections.OpenAI Chat Model, Embeddings OpenAI).File Created and Download File.Cria tabela Cliente, etc.).This n8n workflow relies on a mixture of core n8n node types, specialized AI nodes, and external integrations:
input evolution (Webhook n8n trigger): Listens for incoming WhatsApp messages from the Evolution API. Key Configuration: Webhook URL must be exposed publicly.
Delivery AI (LangChain Agent n8n node): The primary brain. Configured with Postgres Chat Memory for history and multiple Tool Workflow n8n templates (e.g., enviacomanda, buscacliente) to execute specific delivery actions.
OpenAI Chat Model (LangChain n8n node): Provides the LLM capabilities for the AI Agent and the Text Classifier.
Supabase Nodes (Multiple operations): Used extensively for data management (insert, update, find). Key Configuration: API Key and database URL are required for all Supabase operations, maintaining the history of the n8n workflow data.
Supabase Vector Store (LangChain n8n node): The storage backend for the RAG knowledge base. Key Configuration: Defines the table where embedded document chunks are stored.
Character Text Splitter (LangChain n8n node): Used in the RAG update flow to chunk large documents before embedding.
Redis Nodes: Used for quick, temporary state storage and conditional checks, essential for managing high-volume chat concurrency in this n8n automation.
Evolution API Nodes: Dedicated n8n node for sending structured WhatsApp responses and media back to the user.
Automate daily social media content for auto repair shops using this robust n8n workflow. Integrates GPT-4.1 for text and Dall-E/GPT-Image for visuals, posting to Telegram, LinkedIn, and Facebook.

Automate your restaurant's customer service across WhatsApp, Instagram, and Messenger using this robust n8n workflow. Integrates LangChain AI, OpenAI, Supabase, and handles RAG, payments, and lead management.

Build a powerful Retrieval-Augmented Generation (RAG) system using this advanced n8n workflow. Index Google Drive documents into Qdrant using OpenAI embeddings and Google Gemini for context-aware Q&A.

Use this powerful n8n workflow template to create an advanced Slackbot that validates requests, parses complex commands, executes modular sub-workflows, and manages communication via Slack threads.

Build and deploy a state-of-the-art AI Agent using this specialized n8n workflow. Leveraging Google Gemini, SerpAPI for RAG, and short-term memory, this n8n templates solution is perfect for complex analytical tasks. Learn how to configure every n8n node.








































