Skip to main content

Manage Google Calendar events with Zalo Bot, OpenAI and Gemini

Workflow preview

Workflow preview
100%
Manage Google Calendar events with Zalo Bot, OpenAI and Gemini preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow lets users manage Google Calendar by sending text or voice messages to a Zalo Official Account bot, transcribing voice notes with Google Gemini and using an OpenAI powe...

Best for

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

Tools used

n8n-nodes-zalo-bot-official.zalobottrigger, n8n-nodes-zalo-bot-official.zalobot, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googlecalendartool, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.if, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.googlegemini

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Nguyễn Thiệu Toàn (Jay Nguyen).

Original n8n.io source

1.1 Workflow description

Title
Manage Google Calendar events with Zalo Bot, OpenAI and Gemini
Workflow name
Manage Google Calendar events with Zalo Bot, OpenAI and Gemini

Quick Overview

This workflow lets users manage Google Calendar by sending text or voice messages to a Zalo Official Account bot, transcribing voice notes with Google Gemini and using an OpenAI-powered agent to create, update, list, or delete events, then replying in Zalo with the result.

How it works

  1. Receives an incoming text or voice message through a Zalo Bot trigger.
  2. Sends a typing indicator back to the Zalo chat and normalizes key message fields (chat ID, type, text, and voice URL).
  3. If the message is a voice note, sends the audio URL to Google Gemini to transcribe it into text.
  4. Sends the combined text/transcription to an OpenAI chat model agent that interprets the request in Vietnamese and decides whether to list, create, update, or delete a Google Calendar event.
  5. Uses Google Calendar tools to get events and then create, update, or delete the targeted event based on the agent’s extracted parameters.
  6. Sends the agent’s Markdown-formatted response back to the user in Zalo, and posts an error message to Zalo if the agent run fails.

Setup

  1. Install the community node package n8n-nodes-zalo-bot-official and restart n8n if required.
  2. Connect your Zalo Bot API credentials and configure the Zalo webhook URL in your Zalo Official Account so incoming messages reach this workflow.
  3. Add a Google Calendar OAuth2 credential and set the target calendar account (currently configured as [email protected]) for all calendar operations.
  4. Add a Google Gemini (PaLM) API credential for audio transcription and ensure voice messages include a reachable voice_url.
  5. Add an OpenAI API credential, select the chat model you want to use (currently gpt-5-mini), and adjust the system prompt/tone if needed.

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

Type / Role
n8n-nodes-zalo-bot-official.zaloBotTrigger - zaloBotTrigger
Config choices
Version 1

Block 2 - Send Typing Indicator

Type / Role
n8n-nodes-zalo-bot-official.zaloBot - zaloBot
Config choices
Version 1

Block 3 - Calendar Manage!

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

Block 4 - Delete event

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

Block 5 - Get events

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

Block 6 - Create Event

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

Block 7 - Update Event

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

Block 8 - Send AI Response

Type / Role
n8n-nodes-zalo-bot-official.zaloBot - zaloBot
Config choices
Version 1

Block 9 - Send Error Noti

Type / Role
n8n-nodes-zalo-bot-official.zaloBot - zaloBot
Config choices
Version 1

Block 10 - OpenAI Chat Model

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

Block 11 - If Message is Voice

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 12 - Context

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

Block 13 - Transcribe a recording

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

Block 14 - Main Overview

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

Block 15 - Zalo Bot Installation Guide

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

Block 16 - Section 1

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

Block 17 - Section 2

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

Block 18 - Section 3

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

Block 19 - Section 4

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

Block 20 - Author Message

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

3. Summary Table

Workflow Manage Google Calendar events with Zalo Bot, OpenAI and Gemini
Complexity advanced
Nodes 20
Categories Personal Productivity, AI Chatbot
Author Nguyễn Thiệu Toàn (Jay Nguyen)
Published 16 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16440/16440.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 Manage Google Calendar events with Zalo Bot, OpenAI and Gemini do?

Quick Overview This workflow lets users manage Google Calendar by sending text or voice messages to a Zalo Official Account bot, transcribing voice notes with Google Gemini and using an OpenAI powe...

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 Personal Productivity, AI Chatbot use case.