Skip to main content

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

Workflow preview

Workflow preview
100%
Build an AI powered phone agent πŸ“žπŸ€– with Retell, Google Calendar and RAG preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This Workflow simulates an AI powered phone agent with RetellAI with two main functions: 1. Appointment Booking – It can schedule appointments direc...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.filter, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.vectorstoreqdrant, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.toolvectorstore, n8n-nodes-base.respondtowebhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide.

Original n8n.io source

1.1 Workflow description

Title
Build an AI powered phone agent πŸ“žπŸ€– with Retell, Google Calendar and RAG
Workflow name
Build an AI powered phone agent πŸ“žπŸ€– with Retell, Google Calendar and RAG

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., 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.


Need help customizing?

Contact me for consulting and support or add me on Linkedin.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 4 - n8n_rag_function

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 5 - Retrive Qdrant Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1

Block 6 - Embeddings OpenAI2

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 7 - RAG

Type / Role
@n8n/n8n-nodes-langchain.toolVectorStore - toolVectorStore
Config choices
Version 1

Block 8 - OpenAI Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 9 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 10 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 11 - Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - Google Calendar

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 13 - OpenAI Chat Model3

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 14 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 15 - n8n_call

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 16 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - n8n_check_available

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 19 - When clicking β€˜Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 20 - Qdrant Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1

Block 21 - Create collection

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 22 - Refresh collection

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 23 - Get folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 24 - Download Files

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Showing the first 24 of 36 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Build an AI powered phone agent πŸ“žπŸ€– with Retell, Google Calendar and RAG
Complexity advanced
Nodes 36
Categories Support Chatbot, AI Chatbot
Author Davide
Published 15 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3563/3563.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build an AI powered phone agent πŸ“žπŸ€– with Retell, Google Calendar and RAG do?

This Workflow simulates an AI powered phone agent with RetellAI with two main functions: 1. Appointment Booking – It can schedule appointments direc...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.