Skip to main content

Build a chatbot, voice and phone agent with Voiceflow, Google Calendar and RAG

Workflow preview

Workflow preview
100%
Build a chatbot, voice and phone agent with Voiceflow, 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

Voiceflow is a no code platform that allows you to design, prototype, and deploy conversational assistants across multiple channels—such as chat , voice , and phone —with advanced logic and natural...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.googlecalendar, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.vectorstoreqdrant, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.toolvectorstore, @n8n/n8n-nodes-langchain.agent

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 a chatbot, voice and phone agent with Voiceflow, Google Calendar and RAG
Workflow name
Build a chatbot, voice and phone agent with Voiceflow, Google Calendar and RAG

Voiceflow is a no-code platform that allows you to design, prototype, and deploy conversational assistants across multiple channels—such as chat, voice, and phone—with advanced logic and natural language understanding. It supports integration with APIs, webhooks, and even tools like Twilio for phone agents. It's perfect for building customer support agents, voice bots, or intelligent assistants.

This workflow connects n8n and Voiceflow with tools like Google Calendar, Qdrant (vector database), OpenAI, and an order tracking API to power a smart, multi-channel conversational agent.

There are 3 main webhook endpoints in n8n that Voiceflow interacts with:

  1. n8n_order – receives user input related to order tracking, queries an API, and responds with tracking status.
  2. n8n_appointment – processes appointment booking, reformats date input using OpenAI, and creates a Google Calendar event.
  3. n8n_rag – handles general product/service questions using a RAG (Retrieval-Augmented Generation) system backed by:
    • Google Drive document ingestion,
    • Qdrant vector store for search,
    • and OpenAI models for context-based answers.

Each webhook is connected to a corresponding "Capture" block inside Voiceflow, which sends data to n8n and waits for the response.


How It Works

This n8n workflow integrates Voiceflow for chatbot/voice interactions, Google Calendar for appointment scheduling, and RAG (Retrieval-Augmented Generation) for knowledge-based responses. Here’s the flow:

  • Trigger:

    • Three webhooks (n8n_order, n8n_appointment, n8n_rag) receive inputs from Voiceflow (chat, voice, or phone calls).
    • Each webhook routes requests to specific functions:
      • Order Tracking: Fetches order status via an external API.
      • Appointment Scheduling: Uses OpenAI to parse dates, creates Google Calendar events, and confirms via WhatsApp.
      • RAG System: Queries a Qdrant vector store (populated with Google Drive documents) to answer customer questions using GPT-4.
  • AI Processing:

    • OpenAI Chains: Convert natural language dates to Google Calendar formats and generate responses.
    • RAG Pipeline: Embeds documents (via OpenAI), stores them in Qdrant, and retrieves context-aware answers.
    • Voiceflow Integration: Routes responses back to Voiceflow for multi-channel delivery (chat, voice, or phone).
  • Outputs:

    • Confirmation messages (e.g., "Event created successfully").
    • Dynamic responses for orders, appointments, or product support.

Setup Steps

Prerequisites:
  • APIs:
    • Google Calendar & Drive OAuth credentials.
    • Qdrant vector database (hosted or cloud).
    • OpenAI API key (for GPT-4 and embeddings).
Configuration:
  1. Qdrant Setup:

    • Run the "Create collection" and "Refresh collection" nodes to initialize the vector store.
    • Populate it with documents using the Google Drive → Qdrant pipeline (embeddings generated via OpenAI).
  2. Voiceflow Webhooks:

    • Link Voiceflow’s "Captures" to n8n’s webhook URLs (n8n_order, n8n_appointment, n8n_rag).
  3. Google Calendar:

    • Authenticate the Google Calendar node and set event templates (e.g., summary, description).
  4. RAG System:

    • Configure the Qdrant vector store and OpenAI embeddings nodes.
    • Adjust the Retrieve Agent’s system prompt for domain-specific queries (e.g., electronics store support).
Optional:
  • Add Twilio for phone-agent capabilities.
  • Customize OpenAI prompts for tone/accuracy.

PS. You can import a Twilio number to assign it to your agent for becoming a Phone Agent


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 - n8n_order

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

Block 2 - Google Calendar

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

Block 3 - OpenAI Chat Model3

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

Block 4 - Concert start date

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.6

Block 5 - n8n_appointment

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

Block 6 - Retrive Qdrant Vector Store

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

Block 7 - Embeddings OpenAI2

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

Block 8 - RAG

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

Block 9 - OpenAI Chat Model2

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

Block 10 - OpenAI Chat Model1

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

Block 11 - Retrive Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 12 - n8n_rag

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

Block 13 - Tracking response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Calendar response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Webhook tracking response

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

Block 16 - API URL Tracking

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

Block 17 - Webhook calendar response

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

Block 18 - Structured Output Parser

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

Block 19 - Webhook RAG response

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

Block 20 - Sticky Note

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

Block 21 - When clicking ‘Test workflow’

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

Block 22 - Qdrant Vector Store

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

Block 23 - Create collection

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

Block 24 - Refresh collection

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

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

3. Summary Table

Workflow Build a chatbot, voice and phone agent with Voiceflow, Google Calendar and RAG
Complexity advanced
Nodes 34
Categories Support Chatbot, AI Chatbot
Author Davide
Published 22 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3657/3657.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 a chatbot, voice and phone agent with Voiceflow, Google Calendar and RAG do?

Voiceflow is a no code platform that allows you to design, prototype, and deploy conversational assistants across multiple channels—such as chat , voice , and phone —with advanced logic and natural...

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.