Back to Catalog
Konstantin

Konstantin

AI Automation Expert & Creator. Mastering n8n to build revenue-generating systems. From AI-powered photo bots to complex CRM ecosystems—I bridge the gap between "vibe-coding" and professional business automation 👇

Total Views493
Templates2

Templates by Konstantin

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 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. Add GigaChat credentials: Register for GigaChat API access and add your credentials to the GigaChat Model node. Add Sber credentials: Obtain Sber SmartSpeech API credentials and add them to Get Access Token and Get Response nodes (HTTP Header Auth). 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. 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. 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.

KonstantinBy Konstantin
326

Create an AI Telegram bot using Google Drive, Qdrant, and OpenAI GPT-4.1

How it works This workflow creates an intelligent Telegram bot with a knowledge base powered by Qdrant vector database. The bot automatically processes documents uploaded to Google Drive, stores them as embeddings, and uses this knowledge to answer questions in Telegram. It consists of two independent flows: document processing (Google Drive → Qdrant) and chat interaction (Telegram → AI Agent → Telegram). Step-by-step Document Processing Flow: New File Trigger: The workflow starts when the New File Trigger node detects a new file created in the specified Google Drive folder (polling every 15 minutes). Download File: The Download File (Google Drive) node downloads the detected file from Google Drive. Text Splitting: The Split Text into Chunks node splits the document text into chunks of 3000 characters with 300 character overlap for optimal embedding. Load Document Data: The Load Document Data node processes the binary file data and prepares it for vectorization. OpenAI Embeddings: The OpenAI Embeddings node generates vector embeddings for each text chunk. Insert into Qdrant: The Insert into Qdrant node stores the embeddings in the Qdrant vector database collection. Move to Processed Folder: After successful processing, the Move to Processed Folder (Google Drive) node moves the file to a "Qdrant Ready" folder to keep files organized. Telegram Chat Flow: Telegram Message Trigger: The Telegram Message Trigger node receives new messages from the Telegram bot. Filter Authorized User: The Filter Authorized User node checks if the message is from an authorized chat ID (26899549) to restrict bot access. AI Agent Processing: The AI Agent receives the user's message text and processes it using the fine-tuned GPT-4.1 model with access to the Qdrant knowledge base tool. Qdrant Knowledge Base: The Qdrant Knowledge Base node retrieves relevant information from the vector database to provide context for the AI agent's responses. Conversation Memory: The Conversation Memory node maintains conversation history per chat ID, allowing the bot to remember context. Send Response to Telegram: The Send Response to Telegram node sends the AI-generated response back to the user in Telegram. Set up steps Estimated set up time: 15 minutes Google Drive Setup: Add your Google Drive OAuth2 credentials to the New File Trigger, Download File, and Move to Processed Folder nodes. Create two folders in your Google Drive: one for incoming files and one for processed files. Copy the folder IDs from the URLs and update them in the New File Trigger (folderToWatch) and Move to Processed Folder (folderId) nodes. Qdrant Setup: Add your Qdrant API credentials to the Insert into Qdrant and Qdrant Knowledge Base nodes. Create a collection in your Qdrant instance (e.g., "Test-youtube-adept-ecom"). Update the collection name in both Qdrant nodes. OpenAI Setup: Add your OpenAI API credentials to the OpenAI Chat Model and OpenAI Embeddings nodes. (Optional) Replace the fine-tuned model ID in OpenAI Chat Model with your own model or use a standard model like gpt-4-turbo. Telegram Setup: Create a Telegram bot via @BotFather and obtain the bot token. Add your Telegram bot credentials to the Telegram Message Trigger and Send Response to Telegram nodes. Update the authorized chat ID in the Filter Authorized User node (replace 26899549 with your Telegram user ID). Customize System Prompt (Optional): Modify the system message in the AI Agent node to customize your bot's personality and behavior. The current prompt is configured for an n8n automation expert creating social media content. Activate the Workflow: Toggle "Active" in the top-right to enable both the Google Drive trigger and Telegram trigger. Upload a document to your Google Drive folder to test the document processing flow. Send a message to your Telegram bot to test the chat interaction flow.

KonstantinBy Konstantin
167
All templates loaded