AI Phone Agent Automation with n8n and RetellAI

Learn how this unique n8n workflow builds an AI phone agent using RetellAI and OpenAI to transcribe calls, extract key customer info, schedule appointments in Google Calendar, and answer queries with a RAG system. This automation drastically cuts manual follow-ups and boosts customer support efficiency.
filter
lmChatOpenAi
webhook
+11
Workflow Identifier: 1140
NODES in Use: Filter, OpenAI Chat Model, Structured Output Parser, Webhook, VectorStoreQdrant, Embeddings OpenAI, Telegram, Google Calendar, HTTP Request, Google Drive, Set, ChainLlm, Manual Trigger, Sticky Note
Automate AI phone agent with n8n and OpenAI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow automates phone call handling using AI. It captures full call transcripts from RetellAI, extracts important customer details, schedules appointments in Google Calendar, and answers customer questions using company knowledge stored in a Qdrant vector database. Notifications with call summaries go to Telegram. This saves time and prevents lost sales caused by manual errors and delays.


Who Should Use This Workflow

Retail store owners or small teams dealing with many customer phone inquiries would benefit. It helps those who lose leads due to slow or error-prone manual call notes. Users wanting to reduce phone handling time and improve booking accuracy will find it useful.


Tools and Services Used

  • RetellAI: Captures phone calls and sends call events.
  • n8n: Orchestrates the automation workflow.
  • OpenAI GPT-4o-mini: Summarizes call transcripts and extracts structured data.
  • Qdrant Vector Search: Stores company documents as vectors and enables knowledge retrieval.
  • Google Drive & Google Calendar: Stores documents and manages appointment bookings.
  • Telegram Bot API: Sends call summary notifications.
  • Twilio (optional): Connects phone numbers to RetellAI agents.

Inputs, Processing Steps, and Outputs

Inputs

  • Phone call events from RetellAI including transcripts and call metadata.
  • Company documents stored in a Google Drive folder.

Processing Steps

  • Filter call events to only process ended calls.
  • Extract transcript and call data.
  • Use OpenAI model to summarize and extract customer info such as name, email, phone, and appointment date.
  • Vectorize company documents using OpenAI embeddings and upload to Qdrant.
  • Perform Retrieval-Augmented Generation (RAG) queries on Qdrant to answer customer questions.
  • Create appointment events in Google Calendar from extracted date.
  • Send summarized call info and customer details to a Telegram chat.

Outputs

  • Scheduled Google Calendar appointments.
  • Telegram messages with call summaries.
  • AI-generated answers referencing company knowledge accessible during calls.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. Inside the n8n editor, select “Import from File” and upload the downloaded workflow.

Step 2: Setup Credentials and Config

  1. Add RetellAI, OpenAI, Qdrant, Google Drive, Google Calendar, and Telegram API credentials in n8n credentials manager.
  2. Update folder IDs for Google Drive documents, Telegram chat ID, and any email or channel fields inside the nodes.
  3. Ensure webhook URLs in RetellAI agent settings match the Webhook node URLs in n8n.

Step 3: Test Workflow

  1. Trigger an example call event from RetellAI or send a sample webhook payload to the Webhook node to confirm data flows properly.
  2. Check that OpenAI summarization works and Telegram notifies the chat.

Step 4: Activate Workflow

  1. Once verified, enable workflow execution in n8n to run automatically on new calls.
  2. Optionally connect Twilio phone number to RetellAI for live call routing.

You can use the self-host n8n options if you want a private server setup.


Inputs and Outputs in Detail

Inputs

  • Call data from RetellAI webhook including transcript, caller info, call timing, and recording URLs.
  • Company knowledge documents from Google Drive folder.

Outputs


Handling Errors and Edge Cases

  • If the webhook does not trigger, check the URL in RetellAI and verify filter nodes allow “call_ended” or “call_analyzed” events.
  • If OpenAI response fails JSON parsing, match the AI prompt output with the expected schema exactly.
  • Google Calendar events fail if date format is wrong or OAuth credentials are missing.
  • Telegram messages will not send if the chat ID or bot token is invalid or missing admin rights.
  • Check each node’s error messages inside n8n execution logs for hints.

Customization Ideas

  • Switch OpenAI model in OpenAI Chat Model nodes to save cost or improve results.
  • Edit the prompt text in the summarization node to fit company style.
  • Add more documents to the Google Drive folder to enrich the Qdrant knowledge base.
  • Modify Google Calendar event details to include extra info like customer phone.
  • Change notification node from Telegram to Slack or email if preferred.

Summary

Automates phone call transcription and follow-up tasks.

✓ Extracts key customer info and schedules appointments.

✓ Answers customer questions using up-to-date company docs.

✓ Sends instant team notifications over Telegram.

→ Saves many hours of manual work each week.

→ Improves customer service quality and speed.

Automate AI phone agent with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow triggers from RetellAI webhook events sent at the end or analysis of phone calls.
It uses an OpenAI GPT-4o-mini model to summarize the call transcript and extract structured fields like name, email, phone, and date.
If the date is missing, the Google Calendar event will not be created because no valid appointment time is detected.
Yes, by replacing the Telegram node with Slack or email nodes and updating credentials and messages accordingly.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.