Messaging Platforms

Email API (SMTP / IMAP)

Connect your AI agent to email systems via SMTP and IMAP. Receive emails, process them with AI, and send intelligent replies automatically. Supports Gmail, Outlook, and custom SMTP servers.

Features

  • SMTP email sending
  • IMAP email receiving
  • Auto-reply functionality
  • Email parsing and extraction
  • Attachment handling
  • Thread management
  • Spam filtering
  • Rate limiting

Requirements

  • SMTP server credentials
  • IMAP server access
  • OAuth tokens (for Gmail/Outlook)
  • Webhook endpoint configured

Setup

  1. 1Connect "Email API" integration
  2. 2Select your agent
  3. 3Configure SMTP settings (for sending)
  4. 4Configure IMAP settings (for receiving)
  5. 5Set up email filters and rules
  6. 6Configure webhook for email events
  7. 7Test email sending and receiving

Authentication

OAuth 2.0 for Gmail/Outlook, SMTP credentials for custom servers

Code Examples

cURL

curl -X POST https://your-domain.com/api/integrations/webhook?integration_id=YOUR_INTEGRATION_ID \
  -H "X-Signature: YOUR_SIGNATURE" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "user@example.com",
    "to": "agent@your-domain.com",
    "subject": "Question",
    "body": "Hello, I need help"
  }'