Skip to main content

Voice & text control for Home Assistant using Telegram, Whisper & Gemini

Workflow preview

Workflow preview
100%
Voice & text control for Home Assistant using Telegram, Whisper & Gemini preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Workflow Description This workflow creates a conversational bridge between Telegram / n8n Chat and Home Assistant. It allows users to control smart home devices or request information using natu...

Best for

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

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.telegram, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.respondtowebhook, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.openai, @n8n/n8n-nodes-langchain.memorybufferwindow

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Voice & text control for Home Assistant using Telegram, Whisper & Gemini
Workflow name
Voice & text control for Home Assistant using Telegram, Whisper & Gemini

📝 Workflow Description

This workflow creates a conversational bridge between Telegram / n8n Chat and Home Assistant. It allows users to control smart home devices or request information using natural language (text or voice).

⸻

🔑 Key Features

  • Multi-channel input: Works with both Telegram and n8n’s chat interface.
  • Voice support: Telegram voice messages are transcribed to text using OpenAI Whisper.
  • AI-driven assistant: Google Gemini processes queries in natural language.
  • Home Assistant integration: Uses MCP client tools to execute actions like turning devices on/off, adjusting lights, or broadcasting messages.
  • Memory management: Short-term memory keeps context within conversations.
  • Smart reply routing: Responses are automatically sent back to the correct channel (Telegram or chat).
  • Message formatting: Telegram replies are beautified (bold, bullet points, inline code, links).

⸻

📌 Node Overview

  • Telegram Trigger: Captures incoming Telegram messages (text or voice).
  • Bot Is Typing: Sends a “typing…” action to indicate the bot is working.
  • Voice or Text: Separates voice and text inputs.
  • Get Voice File → Speech to Text → Transcription to ChatInput: Handles Telegram voice notes by downloading the file, transcribing it, and preparing it for the chat pipeline.
  • When Chat Message Received: Captures messages from n8n’s built-in chat interface.
  • Process Messages: Normalizes incoming data (input text, source, session ID, voice flag).
  • Home Agent: Main AI agent that processes queries.
  • Google Gemini Chat Model: Language model for intent understanding and conversation.
  • Simple Memory & Simple Memory1: Buffer memories to preserve conversation context.
  • Home Assistant Connector: MCP client node that executes smart home actions (turn on/off devices, adjust lights, etc.).
  • Reply Router: Routes the assistant’s response either to Telegram or to the n8n chat webhook.
  • Telegram Message Beautifier → Telegram Send: Formats and sends responses back to Telegram.
  • Respond to Webhook: Sends responses to n8n chat.

⸻

🚀 Example Use Cases

  • Send “Turn on the living room lights” via Telegram → Bot triggers Home Assistant action.
  • Ask “What’s the temperature in the bedroom?” → Response comes back formatted in Telegram.
  • Record a voice note “Goodnight mode” → Automatically transcribed and executed by Home Assistant.
  • Use n8n chat to quickly trigger automations or check device statuses.

⸻

⚡️ Benefits

  • Unified chat & voice control for Home Assistant.
  • AI-powered natural language understanding.
  • Works seamlessly across platforms (Telegram & n8n chat).
  • Extensible: new tools or intents can be added easily.

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 - Telegram Trigger

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

Block 2 - Telegram Send

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

Block 3 - Reply Router

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

Block 4 - Telegram Message Beautifier

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

Block 5 - Respond to Webhook

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

Block 6 - Transcription to ChatInput

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

Block 7 - Get Voice File

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

Block 8 - Voice or Text

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

Block 9 - Speech to Text

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

Block 10 - If

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

Block 11 - Process messages

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

Block 12 - Bot Is typing

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

Block 13 - Simple Memory1

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

Block 14 - Home assistant Connector

Type / Role
@n8n/n8n-nodes-langchain.mcpClientTool - mcpClientTool
Config choices
Version 1.1

Block 15 - Home Agent

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

Block 16 - Simple Memory

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

Block 17 - Google Gemini Chat Model

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

Block 18 - When chat message received

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

Block 19 - Sticky Note

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

Block 20 - Sticky Note1

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

Block 21 - Sticky Note2

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

Block 22 - Sticky Note3

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

Block 23 - Sticky Note4

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

Block 24 - Sticky Note5

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

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

3. Summary Table

Workflow Voice & text control for Home Assistant using Telegram, Whisper & Gemini
Complexity advanced
Nodes 30
Categories Support Chatbot, AI Chatbot
Author Arkadiusz
Published 09 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8411/8411.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 Voice & text control for Home Assistant using Telegram, Whisper & Gemini do?

Workflow Description This workflow creates a conversational bridge between Telegram / n8n Chat and Home Assistant. It allows users to control smart home devices or request information using natu...

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.