Email Integration
Connect email to let your AI agent handle email conversations via Gmail or forwarding
Email Integration#
Let your AI agent handle email conversations automatically. AlonChat supports Gmail via direct OAuth connection and email forwarding for other providers like Outlook, Yahoo, and any SMTP-compatible service.
How It Works#
| Method | Providers | Capabilities |
|---|---|---|
| Gmail OAuth | Gmail, Google Workspace | Read, reply, and send emails directly |
| Email Forwarding | Outlook, Yahoo, any provider | Receive forwarded emails and auto-reply |
Both methods give your agent the ability to:
- Automatically reply to incoming emails
- Maintain email thread context
- Hand off to a human when needed
- Track email conversations in your dashboard
Setting Up Gmail (OAuth)#
Step 1: Enable Email#
- Go to your agent dashboard
- Navigate to Deploy > Email
- Click Enable Email
- Click Connect Gmail
Step 2: Authorize Gmail#
- Sign in with your Google account
- Grant AlonChat permission to read and send emails
- Your Gmail account will appear as connected
Step 3: Configure Settings#
- Auto-Reply: Toggle automatic email responses on/off
- Display Name: Name shown in outgoing emails
- Email Signature: Custom signature (supports multiple lines)
- Include Original: Toggle to include the original message in replies
Step 4: Test#
Click the Test Email button to send a test email and verify everything works.
Setting Up Email Forwarding#
For Outlook, Yahoo, and other providers, use email forwarding to route messages to your agent.
Step 1: Get Your Forwarding Address#
- Go to your agent dashboard
- Navigate to Deploy > Email
- Click Enable Email
- A unique forwarding address is generated for your agent (e.g.,
agent-abc123@mail.alonchat.com)
Step 2: Configure Forwarding in Your Email Provider#
Gmail#
- Open Gmail Settings > Forwarding and POP/IMAP
- Click "Add a forwarding address"
- Paste your AlonChat forwarding address
- Gmail sends a verification code -- AlonChat detects it automatically (polls every 3 seconds)
- Forwarding is verified and enabled
Outlook#
- Go to Outlook Settings > Mail > Forwarding
- Enable forwarding to your AlonChat address
- Return to AlonChat and check the "I've set up forwarding" confirmation checkbox
Yahoo#
- Go to Yahoo Mail Settings > Filters
- Create a filter to forward messages to your AlonChat address
- Note: Yahoo Mail Plus may be required for forwarding on free accounts
- Return to AlonChat and check the "I've set up forwarding" confirmation checkbox
Other Providers#
- Follow your email provider's forwarding instructions
- Forward to your AlonChat forwarding address
- Return to AlonChat and check the "I've set up forwarding" confirmation checkbox
Step 3: Configure Response Settings#
- Auto-Reply: Toggle automatic email responses on/off
- Display Name: Name shown in outgoing emails
- Email Signature: Custom signature (supports multiple lines)
- Include Original: Toggle to include the original message in replies
- Test Email: Send a test email to verify everything works
Auto-Reply Options#
| Option | Description |
|---|---|
| All emails | Reply to every incoming email automatically |
| First contact only | Only reply to the first email in a thread |
| Off | Disable auto-reply (emails are still logged and visible in your dashboard) |
Thread Handling#
AlonChat maintains full email thread context:
- Thread continuity -- The agent reads the full thread history before replying, so it understands the context of ongoing conversations
- Subject line preservation -- Replies maintain the original subject line with "Re:" prefix
- Conversation grouping -- All emails in a thread are grouped together in your AlonChat dashboard
- Human handoff -- If the agent cannot answer, it can notify your team to take over the thread
AI Email Actions#
During chat conversations on any channel, your agent can also perform email actions:
| Action | Description |
|---|---|
| Send Email | Send a new email on behalf of the business |
| Reply to Email | Reply within an existing email thread |
| Read Email | Retrieve and summarize recent email content |
These actions require a connected Gmail account (OAuth). They allow your agent to send emails as part of a Messenger, WhatsApp, or widget conversation -- for example, emailing a quote to a customer who requested it via chat.
Managing Email Conversations#
View Email Threads#
- Go to Activity in the sidebar
- See all email conversations
- View agent responses alongside the original emails
- Take over manually if needed
Human Handoff#
When the agent encounters a complex or sensitive email:
- It notifies your team
- Auto-reply pauses for that thread
- A team member takes over from the dashboard
- Click "Resume AI" to re-enable auto-reply for the thread
Best Practices#
1. Set Expectations in Your Signature#
Include a note that responses may be AI-assisted:
Best regards,
[Company Name]
Note: Initial responses may be handled by our AI assistant.
A team member will follow up if needed.
2. Monitor Response Quality#
- Review email responses daily during the first week
- Check for accuracy, tone, and completeness
- Add missing information to your sources
3. Use Human Handoff for Sensitive Topics#
Configure handoff for:
- Billing disputes
- Legal inquiries
- Complaints
- Complex technical support
4. Configure Display Name Carefully#
Use a recognizable sender name such as:
- "[Company Name] Support"
- "[Company Name] Team"
- Your actual business name
5. Test Before Going Live#
- Send a test email to your agent's address
- Verify the auto-reply is accurate
- Check the response appears in your dashboard
- Test thread handling by replying to the auto-reply
Troubleshooting#
Agent Not Responding to Emails#
Check these in order:
-
Email is enabled:
- Go to Deploy > Email
- Verify email is enabled and connected
-
Auto-reply is on:
- Check the auto-reply toggle
- Ensure it is not set to "Off"
-
Forwarding is working (non-Gmail):
- Send a test email to your regular address
- Check if it arrives at the AlonChat forwarding address
- If not, re-check forwarding settings in your email provider
-
Gmail connection is active:
- Check the connection status
- If expired, reconnect via OAuth
-
Agent is trained:
- Ensure your sources have relevant content
- Re-train if you recently added new sources
Emails Going to Spam#
If auto-replies are landing in recipients' spam folders:
- Ensure your display name looks professional
- Avoid excessive links or promotional language in signatures
- Ask recipients to mark your replies as "not spam"
Forwarding Verification Stuck#
For Gmail forwarding:
- AlonChat polls for the verification code every 3 seconds
- If it takes longer than a minute, check your AlonChat email inbox for the code
- Try removing and re-adding the forwarding address
Limitations#
- Gmail OAuth: Full read and reply capabilities
- Email forwarding: Can receive and auto-reply, but cannot read the original inbox
- Attachments: Text content of emails is processed; attachment handling is limited
- Rate limits: Email sending is rate-limited to prevent spam flags
- No calendar invites: Use the Google Calendar integration for scheduling instead
Privacy and Security#
- Email content is encrypted at rest and in transit
- Gmail OAuth tokens are stored securely and can be revoked anytime
- Forwarded emails are processed and stored in your agent's conversation history
- AlonChat does not access emails outside of the connected account or forwarding address
- GDPR-compliant data handling with deletion on request
Next Steps#
- Google Calendar Connection -- Enable scheduling via email conversations
- Actions Overview -- See all actions your agent can take
- Webhooks -- Get notified when email events occur