Skip to main content
The email channel allows your AI agent to receive and respond to emails. Customers can email your support address, and your agent responds using your knowledge base—just like the chat widget but over email.

How It Works

  1. Email arrives at your agent’s inbound address
  2. Agent processes the email using your knowledge base
  3. Response sent back to the customer
  4. Conversation tracked in your dashboard
All email conversations appear alongside widget chats, so you have a unified view of all customer interactions.

Getting Started

Prerequisites

  • A Ansa account (Starter plan or higher)
  • An agent with knowledge base content
  • Access to configure email forwarding (for custom domains)

Step 1: Enable Email Channel

  1. Go to ChannelsEmail
  2. Select an agent
  3. Toggle Enabled on
  4. Note your inbound address (e.g., agent-abc123@mail.ansa.so)

Step 2: Forward Emails

Set up email forwarding from your support address to your agent’s inbound address. Common providers:

Gmail

Settings → Forwarding → Add address

Outlook

Settings → Mail → Forwarding

Zendesk

Admin → Channels → Email → Forwarding

Other

Check your email provider’s forwarding docs

Step 3: Configure Settings

Customize how your agent handles emails:
  1. Go to ChannelsEmail
  2. Configure display name, signature, etc.
  3. Save settings

Configuration Options

Basic Settings

Email Content

Security & Filtering

Confidence-Based Routing

Route emails based on how confident your agent is in its response.

How It Works

  1. Agent receives email
  2. Searches knowledge base for relevant content
  3. Calculates confidence score
  4. Takes action based on threshold

Configuration

  1. Go to ChannelsEmail
  2. Set Confidence Threshold (e.g., 70%)
  3. Choose Low Confidence Action:
    • Forward — Send to a human for review
    • Draft — Save response but don’t send
    • Send Anyway — Send with disclaimer

Forward to Human

For low-confidence responses:
  1. Set Forward To Email (your support team)
  2. The agent forwards:
    • Original customer email
    • Drafted response
    • Confidence score
    • Conversation link
Your team reviews and sends manually if appropriate.

Custom Domain

Use your own domain instead of mail.ansa.so.

Setup

  1. Go to ChannelsEmailDomain
  2. Click Add Domain
  3. Enter your domain (e.g., support.yourcompany.com)
  4. Add the DNS records shown:
    • SPF record
    • DKIM record
    • MX record (optional)
  5. Click Verify

DNS Records Example

DNS changes can take up to 48 hours to propagate. You can still use the default inbound address while waiting.

Threading & Conversations

Emails are automatically threaded into conversations.

How Threading Works

  • Replies to existing threads continue the conversation
  • New subjects start new conversations
  • Thread ID tracked via email headers

Viewing Conversations

  1. Go to Conversations
  2. Filter by Email channel
  3. Click to view full thread
Each message shows:
  • Sender
  • Timestamp
  • Confidence score
  • Original email content

Auto-Learn

Improve your agent automatically from email interactions.

How It Works

When enabled:
  1. Agent analyzes incoming questions
  2. Identifies knowledge gaps
  3. Suggests additions to knowledge base
  4. You approve or reject suggestions

Configuration

  1. Go to ChannelsEmail
  2. Toggle Auto-Learn Enabled
  3. Review suggestions in Knowledge Base

Email Formatting

Outgoing Emails

Agent responses are formatted as clean HTML emails:
  • Markdown converted to HTML
  • Mobile-friendly styling
  • Plain text fallback included

Incoming Emails

The agent processes:
  • Plain text emails
  • HTML emails (converted to text)
  • Email threads (extracts latest message)

Best Practices

Start Conservative

Set high confidence threshold initially

Monitor Closely

Review email conversations daily at first

Build Knowledge

Add content based on common questions

Human Backup

Always have a forward address for edge cases

Gradual Rollout

  1. Week 1: Forward only, review all drafts
  2. Week 2: Auto-send high confidence (90%+)
  3. Week 3: Lower threshold to 80%
  4. Ongoing: Adjust based on feedback

Quality Checks

  • Review low-confidence forwards weekly
  • Check for patterns in forwarded emails
  • Update knowledge base with missing info
  • Monitor customer satisfaction

Troubleshooting

Emails Not Arriving

Check:
  • Forwarding is configured correctly
  • Inbound address is correct
  • Email isn’t in spam/junk
  • Sender isn’t in blocked list
Test: Send a test email to your inbound address.

Responses Not Sending

Check:
  • Email channel is enabled
  • Agent has content in knowledge base
  • Confidence threshold isn’t too high
  • Low confidence action is set correctly

Wrong Response Format

Check:
  • Signature is configured
  • Display name is set
  • Subject prefix is correct

Threading Issues

Check:
  • Email client preserves thread headers
  • Subject line isn’t modified
  • Reply is to the same thread

API Access

Get Email Settings

Update Email Settings

Verify Domain

Limits & Quotas

Next Steps

Confidence Scores

Understand response confidence

Knowledge Base

Improve agent responses