πŸ’¬ Build an AI powered phone agent πŸ“žπŸ€– with Retell, Google Calendar and RAG

⚑ 28,111 views Β· πŸ’¬ Support Chatbots

πŸ’‘ Pro Tip β€” YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β€” no quota limits, just structured data.

View All Scrapers

Description

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


πŸ“¦ Use Cases


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., call_ended or call_analyzed) 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 (n8n_call for call events, n8n_rag_function 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, CHAT_ID) 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 for consulting and support or add me on Linkedin.

πŸ”— Nodes Used

HTTP Request, Webhook, Telegram, Google Drive, Google Calendar, Filter

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup