đź’¬ Automate multi-channel customer support with Gmail, Telegram, and GPT AI

⚡ 4,868 views · 💬 Support Chatbots

Description

Smart Customer Support AI Agent with Gmail and Telegram

Who is this for?

This workflow is perfect for:

What problem is this workflow solving?

Customer support is essential but resource-intensive. Common challenges include:

This workflow eliminates these pain points by providing instant, consistent, and intelligent responses 24/7.

What this workflow does

Core Functionality

  1. Multi-Channel Monitoring: Simultaneously watches Gmail and Telegram for customer inquiries
  2. Intelligent Processing: Uses AI to understand customer intent and context
  3. Knowledge Base Integration: Accesses your company’s FAQ and support information
  4. Contextual Responses: Provides personalized, helpful replies maintaining conversation history
  5. Smart Escalation: Automatically escalates complex issues to human agents
  6. Comprehensive Logging: Tracks all interactions for analytics and improvement

AI Agent Capabilities

Automation Features

Setup

Prerequisites

Step 1: Credential Setup

Gmail OAuth2 Configuration

  1. Go to Google Cloud Console
  2. Create new project or select existing one
  3. Enable Gmail API
  4. Create OAuth 2.0 credentials
  5. Add authorized redirect URIs for n8n
  6. In n8n: Settings → Credentials → Add Gmail OAuth2
  7. Enter Client ID and Client Secret
  8. Complete OAuth flow

Telegram Bot Setup

  1. Message @BotFather on Telegram
  2. Create new bot with /newbot command
  3. Choose bot name and username
  4. Copy the bot token
  5. In n8n: Settings → Credentials → Add Telegram
  6. Enter bot token
  7. Set webhook URL in bot settings

OpenAI API Configuration

  1. Sign up at OpenAI Platform
  2. Generate API key in API Keys section
  3. In n8n: Settings → Credentials → Add OpenAI
  4. Enter API key
  5. Choose appropriate model (gpt-4o-mini recommended)

Google Sheets Setup

  1. Use existing Google account from Gmail setup
  2. In n8n: Settings → Credentials → Add Google Sheets OAuth2
  3. Complete authorization flow

Step 2: Google Sheets Preparation

Create three Google Sheets in your Google Drive:

Knowledge Base Sheet

Escalation Tracker Sheet

Interaction Log Sheet

Step 3: Workflow Configuration

Import Template

  1. Copy the workflow JSON from the template
  2. In n8n: Import workflow from JSON
  3. Replace placeholder Sheet IDs with your actual Google Sheet IDs

Update Sheet References

  1. Open each Google Sheets node
  2. Select your created sheets from the dropdown
  3. Verify column mappings match your sheet structure

Customize AI Prompts

  1. Edit the “Customer Support AI Agent” node
  2. Update system message with:
    • Your company name and description
    • Brand voice and tone guidelines
    • Specific policies and procedures
    • Escalation criteria

Configure Error Notifications (Optional)

  1. Set up Slack webhook or email notifications
  2. Update error notification node with your webhook URL
  3. Customize error message format

Step 4: Testing

Test Gmail Integration

  1. Send test email to your support Gmail account
  2. Check workflow execution in n8n
  3. Verify response is sent and email marked as read
  4. Check interaction logging in Google Sheets

Test Telegram Integration

  1. Send message to your Telegram bot
  2. Verify bot responds appropriately
  3. Test conversation memory with follow-up messages
  4. Check escalation functionality with complex request

Test Knowledge Base

  1. Ask questions covered in your knowledge base
  2. Verify AI retrieves and uses correct information
  3. Test with variations of the same question
  4. Ensure responses are consistent and helpful

How to customize this workflow to your needs

Brand Voice Customization

Update the AI system prompt to include:
- Your company's tone (formal, casual, friendly)
- Key phrases and terminology you use
- Brand personality traits
- Communication style preferences

Knowledge Base Expansion

Escalation Rules

Customize when to escalate by modifying the AI agent instructions:

Additional Channels

Extend the workflow to support:

Analytics Enhancement

Integration Opportunities

Advanced Features

Workflow Maintenance

Daily Tasks

Weekly Reviews

Monthly Optimization

Key Metrics to Track

Troubleshooting

Common Issues

Performance Optimization

This workflow provides a solid foundation for automated customer support that can be extensively customized to match your specific business needs and grow with your company.

đź”— Nodes Used

Google Sheets, HTTP Request, Telegram, Telegram Trigger, Gmail, Gmail Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup