AI & Integrations

AI Copilot

The AI Copilot is a chat interface built into the Cleanmails dashboard. It has full context of your workspace and can answer questions, provide analytics, and execute actions.

Setup

  1. Go to Settings → AI Settings
  2. Enter your Gemini API Key (get from Google AI Studio)
  3. Select a model (default: gemini-2.5-flash)
  4. Save

Available Models

ModelBest For
gemini-2.5-flashFast responses, good for most queries (default)
gemini-2.5-proMore detailed analysis, complex questions
gemini-2.5-flash-liteFastest, lowest cost, simple queries

What It Knows

The copilot automatically has context about your current workspace:

  • All campaigns (names, status, stats)
  • All lead lists (names, counts, validation status)
  • All senders (emails, health scores, daily limits, warmup status)
  • Recent performance (7-day sends, replies)

Example Questions

  • "What's my reply rate this week?"
  • "Which campaign is performing best?"
  • "Are any senders unhealthy?"
  • "How many leads do I have total?"
  • "Suggest improvements for my Q2 campaign"
  • "What's my open rate compared to industry average?"

Function Execution

The copilot can detect intent and execute platform functions automatically:

  • "List my campaigns" → fetches and displays campaign data
  • "Show sender health" → retrieves sender status
  • "Overall stats" → calculates and shows performance metrics
  • "Daily report" → generates a performance summary
Conversation history

The copilot maintains the last 40 messages per workspace. History is included in each request for context continuity. You can clear history from the chat interface.

Knowledge Base & Auto-Reply

You can configure a knowledge base that the AI uses to automatically draft replies to incoming emails. This is useful for handling common questions from leads without manual intervention.