Handle Telegram support, payments, and logo orders with Mistral and Gemini

Go to Workflow
0 views
Built by SpaGreen Creative SpaGreen Creative
Created on June 05, 2026

Description

Who it's for
This n8n workflow is designed for Telegram bot administrators and customer service managers who want to automate customer support and payment verification processes. The workflow creates an intelligent Telegram bot assistant that can handle various message types, process payments, and manage customer interactions through natural language commands.

Features
Intelligent AI Assistant**: Powered by Mistral AI with specialized system prompts for customer support operations
Telegram Integration: Complete webhook-based implementation for seamless **Telegram Bot API operations
Multi-format Message Handling**: Processes text, voice, image, document, and video messages automatically
Payment Verification**: Automated payment slip analysis using Google Gemini AI to extract transaction details
Customer Management**: Logs new users, tracks payment information, and maintains conversation history
Order Processing**: Identifies and confirms service orders (Logo Design, Stage Design, Banner Design)
Context-Aware Automation**: Uses conversation history and Google Sheets data to provide personalized responses

Requirements
Telegram Bot API Token: For accessing your **Telegram bot and receiving messages
Mistral AI API Credentials**: For powering the AI assistant
Google Sheets API**: For storing customer data and payment information
Google Gemini API**: For analyzing payment receipt images
Configure Credentials
Telegram Bot API**: Configure with proper webhook URL and token from BotFather
Mistral AI**: Set up with appropriate model access
Google Sheets**: Configure with appropriate permissions for reading/writing data
Google Gemini**: Set up with image analysis capabilities

Important Notes
Webhook Setup: The workflow includes a **Telegram Trigger that must be properly configured for production use
Message Routing**: The bot automatically routes different message types to appropriate processing paths
Payment Verification**: Image analysis extracts transaction ID, amount, date, and time from payment receipts
Order Confirmation**: The system identifies service orders and sends confirmation messages
Admin Notifications**: Special handling for admin/moderator requests with notification forwarding
Rate Limiting: The workflow includes appropriate delays to prevent **Telegram API rate limiting
Data Storage**: All customer interactions and payment information are stored in Google Sheets

Support & Help
WhatsApp**: Chat on WhatsApp
Discord**: SpaGreen Community
Facebook Group**: SpaGreen Support
Website**: spagreen.net
Developer Portfolio**: Codecanyon SpaGreen

Nodes Used (9)

AI Agent
@n8n/n8n-nodes-langchain.agent
AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool
Code
n8n-nodes-base.code
Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
Google Sheets
n8n-nodes-base.googleSheets
Mistral Cloud Chat Model
@n8n/n8n-nodes-langchain.lmChatMistralCloud
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Telegram
n8n-nodes-base.telegram
Think Tool
@n8n/n8n-nodes-langchain.toolThink