Skip to main content

AI chatbot for Max Messenger with voice recognition (GigaChat +SaluteSpeech)

Workflow preview

Workflow preview
100%
AI chatbot for Max Messenger with voice recognition (GigaChat +SaluteSpeech) preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Name: AI Chatbot for Max Messenger with Voice Recognition (GigaChat + Sber) Description: How it works This workflow powers an intelligent, conversational AI bot for Max messenger that can understan...

Best for

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

Tools used

n8n-nodes-max.max, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.switch, n8n-nodes-base.set, n8n-nodes-base.merge, n8n-nodes-max.maxtrigger, @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 Konstantin.

Original n8n.io source

1.1 Workflow description

Title
AI chatbot for Max Messenger with voice recognition (GigaChat +SaluteSpeech)
Workflow name
AI chatbot for Max Messenger with voice recognition (GigaChat +SaluteSpeech)

Name: AI Chatbot for Max Messenger with Voice Recognition (GigaChat + Sber)

Description:

How it works

This workflow powers an intelligent, conversational AI bot for Max messenger that can understand and respond to both text and voice messages. The bot uses GigaChat AI with built-in memory, allowing it to remember the conversation history for each unique user and answer follow-up questions. Voice messages are transcribed using Sber SmartSpeech. It's a complete solution for creating an engaging, automated assistant within your Max bot, using Russian AI services.

Step-by-step

  • Max Trigger: The workflow starts when the Max Trigger node receives a new message sent to your Max bot.
  • Access Control: The Check User node verifies the sender's user ID against an allowed list. This prevents unauthorized users from accessing your bot.
  • Access Denied Response: If the user is not authorized, the Access Denied node sends a polite rejection message.
  • Message Type Routing: The Text/Attachment (Switch) node checks if the message contains plain text or has attachments (voice, photo, file).
  • Attachment Processing: If an attachment is detected, the Download Attachment (HTTP Request) node retrieves it, and the Attachment Router (Switch) node determines its type (voice, photo, or file).
  • Voice Transcription: For voice messages, the workflow gets a Sber access token via Get Access Token (HTTP Request), merges it with the audio file, and sends it to Get Response (HTTP Request) which uses Sber SmartSpeech API to transcribe the audio to text.
  • Input Unification: The Voice to Prompt node converts transcribed text into a prompt, while Text to Prompt does the same for plain text messages. Both paths merge at the Combine node.
  • AI Agent Processing: The unified prompt is passed to the AI Agent, powered by GigaChat Model and using Simple Memory to retain the last 10 messages per user (using Max user_id as the session key).
  • Response Delivery: The AI-generated response is sent back to the user via the Send Message node.

Set up steps

Estimated set up time: 15 minutes

  1. Get Max bot credentials: Visit https://business.max.ru/ to create a bot and obtain API credentials. Add these credentials to Max Trigger, Send Message, and Access Denied nodes.
  2. Add GigaChat credentials: Register for GigaChat API access and add your credentials to the GigaChat Model node.
  3. Add Sber credentials: Obtain Sber SmartSpeech API credentials and add them to Get Access Token and Get Response nodes (HTTP Header Auth).
  4. Configure access control: Open the Check User node and change the user_id value (currently 50488534) to your own Max user ID. This ensures only you can use the bot during testing.
  5. Customize bot personality: Open the AI Agent node and edit the system message to change the bot's name, behavior, and add your own contact information or links.
  6. Test the bot: Activate the workflow and send a text or voice message to your Max bot to verify it responds correctly.

Notes

This workflow is specifically designed for Russian-speaking users and uses Russian AI services (GigaChat and Sber SmartSpeech) as alternatives to OpenAI. Make sure you have valid API access to both services before setting up this workflow.

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 - Access Denied

Type / Role
n8n-nodes-max.max - max
Config choices
Version 1

Block 2 - Check User

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

Block 3 - Get Access Token

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

Block 4 - Get Response

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

Block 5 - Send Message

Type / Role
n8n-nodes-max.max - max
Config choices
Version 1

Block 6 - Text/Attachment

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 7 - Attachment Router

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 8 - Download Attachment

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

Block 9 - Voice to Prompt

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

Block 10 - Text to Prompt

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

Block 11 - Combine

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

Block 12 - Max Trigger1

Type / Role
n8n-nodes-max.maxTrigger - maxTrigger
Config choices
Version 1

Block 13 - Simple Memory1

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

Block 14 - Merge1

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

Block 15 - AI Agent1

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

Block 16 - GigaChat Model1

Type / Role
n8n-nodes-gigachat.lmGigaChat - lmGigaChat
Config choices
Version 1

Block 17 - Sticky Note1

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

Block 18 - Sticky Note2

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

Block 19 - Sticky Note3

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

Block 20 - Sticky Note4

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

Block 21 - Sticky Note5

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

Block 22 - Sticky Note6

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

Block 23 - Sticky Note14

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

3. Summary Table

Workflow AI chatbot for Max Messenger with voice recognition (GigaChat +SaluteSpeech)
Complexity advanced
Nodes 23
Categories Support Chatbot, AI Chatbot
Author Konstantin
Published 22 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12022/12022.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 AI chatbot for Max Messenger with voice recognition (GigaChat +SaluteSpeech) do?

Name: AI Chatbot for Max Messenger with Voice Recognition (GigaChat + Sber) Description: How it works This workflow powers an intelligent, conversational AI bot for Max messenger that can understan...

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.