Перейти к основному содержимому

Gmail

Connect your Gmail account to AI SmartTalk to handle email conversations with AI assistance. Incoming emails create conversation threads, and you can respond, create drafts, and automate email workflows.


Overview

The Gmail channel enables you to:

  • Receive emails as conversation threads in AI SmartTalk
  • Auto-respond using your AI assistant
  • Create drafts for human review before sending
  • Automate email workflows with SmartFlow

Prerequisites

Before you begin, ensure you have:

  • An active AI SmartTalk account
  • A Gmail or Google Workspace account
  • Permission to grant email access via OAuth

Step-by-Step Setup

Step 1: Access Gmail Channel

  1. Log into your AI SmartTalk account
  2. Navigate to SettingsCanaux (Channels)
  3. Find Gmail and click Connect

Step 2: Authorize with Google

  1. Google OAuth window opens
  2. Select your Google account
  3. Review the permissions requested:
    • Read email messages
    • Send email on your behalf
    • Manage drafts
  4. Click Allow

Security Note: AI SmartTalk uses secure OAuth 2.0. We never see or store your Google password.

Step 3: Configure Email Settings

After authorization, configure how emails are handled:

SettingDescription
Auto-replyAI responds automatically to incoming emails
Create draft onlyAI creates drafts for human review
Labels/FoldersWhich emails to process (Inbox, specific labels)
Response delayWait time before AI responds (optional)

Step 4: Verify Connection

  1. Status shows Connected with your email address
  2. Send a test email to your connected address
  3. Check Chat — conversation should appear with ✉️ icon
  4. AI responds (or creates draft) based on your settings

How Gmail Channel Works

Email → Conversation

Incoming Email                    AI SmartTalk Chat
┌─────────────────┐ ┌─────────────────┐
│ From: customer │ ────▶ │ ✉️ customer@... │
│ Subject: Help │ │ "I need help..." │
│ Body: I need... │ │ │
└─────────────────┘ │ 🤖 AI Response │
└─────────────────┘

Thread Continuity

  • Email replies stay in the same conversation thread
  • AI has full context of the email chain
  • Thread history visible in Chat view

SmartFlow Integration

Creating Custom Email Flows

Use the Chat Service trigger to customize Gmail handling:

Trigger: Chat Service
Channel: Gmail

Actions:
1. Check Sender:
- If VIP customer → Route to human
- If support request → Continue with AI
2. AI Request:
Analyze email and generate response
3. Gmail - Create Draft:
Draft response for human review
4. Notification:
Alert team about new email

Available Gmail Actions

ActionDescriptionUse Case
Send ReplySend email response directlyAuto-reply to simple queries
Create DraftCreate draft in GmailHuman review before sending
Add LabelApply Gmail labelCategorize processed emails
ForwardForward to another addressRoute to specialist

Example: Support Email Workflow

Trigger: Chat Service (Gmail)
Condition: Subject contains "urgent" OR "help"

Actions:
1. Gmail - Add Label:
Label: "Support/AI-Processed"

2. AI Request:
System: "You are a helpful support agent.
Analyze this email and draft a helpful response."
Input: {{email_content}}

3. Gmail - Create Draft:
To: {{sender_email}}
Subject: Re: {{email_subject}}
Body: {{ai_response}}

4. Slack Notification:
Channel: #support
Message: "New support email from {{sender_email}} - draft ready for review"

Use Cases

Customer Support

Handle inbound support emails:

  • AI analyzes the issue
  • Drafts appropriate response
  • Team reviews and sends

Sales Inquiries

Respond to sales questions:

  • AI answers product questions from knowledge base
  • Creates personalized draft with pricing info
  • Sales team reviews before sending

FAQ Handling

Auto-respond to common questions:

  • AI recognizes frequent questions
  • Sends immediate response
  • Frees team for complex issues

Out-of-Office

Smart away responses:

  • AI handles routine emails
  • Escalates urgent matters to backup
  • Provides relevant information even when away

Email Processing Options

Auto-Reply Mode

AI responds directly to emails:

ProsCons
Instant responsesLess human oversight
24/7 availabilityRisk of inappropriate replies
Reduced workloadCustomers may prefer human contact

Best for: High-volume, routine inquiries

Draft Mode

AI creates drafts for review:

ProsCons
Human quality controlSlower response time
Learning opportunityRequires manual sending
Safer for sensitive topicsMore work for team

Best for: Complex topics, new implementations, sensitive communications

Hybrid Mode

Use SmartFlow to decide per-email:

If: Email is simple FAQ → Auto-reply
If: Email is sales inquiry → Create draft
If: Email is complaint → Route to human immediately

Troubleshooting

Connection Issues

IssueSolution
"Authorization failed"Re-authorize through Google OAuth
"Access revoked"Check Google Account → Security → Connected apps
"Token expired"Click Reconnect in AI SmartTalk

Email Not Appearing

IssueSolution
No conversations in ChatCheck email is in configured labels/folders
Delayed appearanceMay take 1-2 minutes for sync
Only some emailsVerify filter settings aren't excluding them

Response Issues

IssueSolution
AI not respondingCheck Auto-reply is enabled
Wrong toneAdjust AI personality settings
Missing informationUpdate knowledge base
Draft not createdCheck SmartFlow configuration

Managing Gmail Channel

ActionHow
Pause channelToggle Enabled → Off
Change settingsEdit configuration in channel settings
Switch accountsDisconnect, then connect with different account
DisconnectSettings → Canaux → Gmail → Disconnect

Privacy & Security

What We Access

AccessPurpose
Read emailsProcess incoming messages
Send emailsRespond on your behalf
Manage draftsCreate response drafts
Apply labelsOrganize processed emails

What We DON'T Do

  • ❌ Store email content permanently
  • ❌ Access emails outside configured filters
  • ❌ Share email content with third parties
  • ❌ Access other Google services (Calendar, Drive, etc.)

Revoking Access

To disconnect AI SmartTalk from Gmail:

  1. In AI SmartTalk: Settings → Canaux → Gmail → Disconnect
  2. In Google: Account → Security → Third-party apps → Remove AI SmartTalk

Best Practices

  1. Start with Draft Mode: Review AI responses before enabling auto-reply
  2. Configure filters: Only process relevant emails (not newsletters, etc.)
  3. Set expectations: Let customers know they may receive AI-assisted responses
  4. Monitor quality: Regularly review AI responses for accuracy
  5. Use labels: Organize AI-processed emails for easy tracking
  6. Train your AI: Update knowledge base with common email topics

Comparison with Other Channels

FeatureGmailMessengerWhatsApp
Async communication✅ ExpectedPossiblePossible
Formal tone✅ Typical❌ Casual❌ Casual
Long-form content✅ Supported❌ Best short❌ Best short
Attachments✅ Full supportLimitedLimited
Threading✅ Native❌ Flat❌ Flat

Ready to elevate your
user experience?

Deploy AI assistants that delight customers and scale with your business.

GDPR Compliant