Build an AI powered phone agent ππ€ with Retell, Google Calendar and RAG
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Retrive Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (18)
- Filter
n8n-nodes-base.filter - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Webhook
n8n-nodes-base.webhook - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore - Respond to Webhook
n8n-nodes-base.respondToWebhook - Telegram
n8n-nodes-base.telegram - Google Calendar
n8n-nodes-base.googleCalendar - Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Google Drive
n8n-nodes-base.googleDrive - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Token Splitter
@n8n/n8n-nodes-langchain.textSplitterTokenSplitter - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - AI Agent
@n8n/n8n-nodes-langchain.agent
What it does
This Workflow simulates an AI-powered phone agent with RetellAI with two main functions: 1. π
Appointment Booking β It can schedule appointments directly into Google Calendar. 2. π§ RAG-based Information Retrieval β It provides answers using a Retrieval-Augmented Generation (RAG) system. For example, it can respond to questions such as store opening hours, return policies, or product details. The guide also explains how to purchase a dedicated phone number (with a +1 prefix) and link it to the AI agent. This setup is cost-effective, as it uses a FREE $10 credit to operate without additional charges in the beginning. ! --- β¨ Advantages - π 24/7 Availability β The AI agent can answer calls and assist customers at any time. - π€ Automation β It reduces the workload on human staff by handling repetitive tasks like appointment scheduling and FAQ responses. - π Easy Integration β Built with n8n, itβs flexible and customizable for various platforms and tools. - πΈ Low-cost Setup β Using the free credit, businesses can get started without an upfront investment. --- π¦ Use Cases - π E-commerce β Answer common product questions or order inquiries. - π¬ Retail Stores β Provide store hours, address info, and return policies. - π½ Restaurants β Take reservations or share menu information. - πΌ Service Providers β Book appointments or consultations. - π Any Local Business β Offer phone support without needing a live operator. --- How It Works This Workflow simulates an AI-powered phone agent with two primary functions: 1. Appointment Booking - The workflow captures call events (e.g., callended or callanalyzed) and extracts key details (transcript, caller info, duration, etc.). - Using OpenAI, it summarizes the conversation and parses structured data (e.g., names, contact info, dates). - For scheduling, it converts user-provided dates into Google Calendar-compatible formats and creates events automatically. 2. RAG-Based Information Retrieval - When a query is received (e.g., store hours, product details), the workflow retrieves relevant information from a Qdrant vector store. - An AI agent processes the query using the retrieved data and responds via a webhook, ensuring accurate, context-aware answers. --- Set Up Steps 1. Prepare Qdrant Vector Store - Create/refresh a Qdrant collection (via HTTP requests). - Upload and vectorize documents (e.g., from Google Drive) using OpenAI embeddings. 2. Configure RetellAI Agent - Sign up for RetellAI, create an agent, and set the webhook URLs (n8ncall for call events, n8nragfunction for RAG queries). - Purchase a Twilio phone number and link it to the agent. 3. n8n Workflow Setup - Connect OpenAI, Qdrant, Google Calendar, and Telegram nodes with credentials. - Customize prompts for summarization, date parsing, and RAG responses. - Test the workflow to ensure data flows from call events β processing β actions (e.g., calendar bookings, Telegram alerts). 4. Deploy - Trigger the workflow via RetellAI webhooks during calls. - Monitor outputs (e.g., call summaries in Telegram, calendar events). Note: Replace placeholders (e.g., QDRANTURL, COLLECTION, CHATID) with actual values. --- π Subscribe to my new YouTube channel. Here Iβll share videos and Shorts with practical tutorials and FREE templates for n8n. !image --- Need help customizing? Contact me(mailto:[email protected]) for consulting and support or add me on Linkedin.