Skip to content

Set Up Email

Connect Snippbot to an email account so agents can read incoming emails (via IMAP) and send replies or new messages (via SMTP). The IMAP tool is part of the built-in scheduler tool suite.

With email configured, agents and scheduled jobs can:

  • Monitor an inbox and respond to emails automatically
  • Parse incoming requests and route them to the right agent
  • Send reports, summaries, and alerts via email
  • Integrate email-based workflows (approval via reply, etc.)
  1. Go to Settings → Profile

  2. Enter your IMAP settings in the form fields:

    FieldExample value
    Hostimap.gmail.com
    Port993
    SSLEnabled
    Usernameyour@email.com
    PasswordYour app password (see note below)
    MailboxINBOX
  3. Test the connection — click Test IMAP to verify credentials

  4. Save

  1. In Settings → Profile, scroll to SMTP

  2. Enter SMTP settings in the form fields:

    FieldExample value
    Hostsmtp.gmail.com
    Port587
    STARTTLSEnabled
    Usernameyour@email.com
    PasswordYour app password
    FromSnippbot <your@email.com>
  3. Click Test SMTP to send a test email to yourself

  4. Save

ProviderIMAP hostIMAP portSMTP hostSMTP port
Gmailimap.gmail.com993smtp.gmail.com587
Outlookoutlook.office365.com993smtp.office365.com587
Fastmailimap.fastmail.com993smtp.fastmail.com587
ProtonMail127.0.0.11143127.0.0.11025
Self-hostedyour-server.com993your-server.com587

Once configured, agents can read and send email directly:

Example prompt: “Check my inbox for any emails from team@company.com about the Q1 report”

Example prompt: “Send a summary of today’s completed tasks to manager@company.com

Example prompt: “Reply to the most recent email from support@vendor.com asking for the invoice”

The agent uses the imap_read and smtp_send built-in tools internally.

Create a scheduled job on the Schedule page that monitors your inbox. Click New Job and fill in:

FieldValue
NameProcess support emails
GoalCheck inbox for new emails tagged [SUPPORT], triage them, create tasks, and reply with confirmation
ScheduleInterval: every 5 minutes
DeliveryChannel: Slack #support-ops

The job runs every 5 minutes, reads new emails via IMAP, processes them, and delivers a summary to Slack.

Scheduled jobs can deliver results via email. When creating a job on the Schedule page, set the delivery type to Email and configure the recipient, subject, and format.

  • Store credentials using app passwords, not your main account password
  • Use SSL/TLS for all connections (port 993 for IMAP, 587+STARTTLS for SMTP)
  • Create a dedicated email address for Snippbot (e.g., snippbot@yourcompany.com) for audit trail purposes
  • The email credentials are stored in ~/.snippbot/config.toml — restrict file permissions
  1. Verify IMAP is enabled for your account (Gmail: Settings → See all settings → Forwarding and POP/IMAP → Enable IMAP)
  2. Check firewall — port 993 must be outbound-open
  3. Verify hostname and port
  1. Use an app password, not your account password
  2. For Gmail: 2FA must be enabled to generate app passwords
  3. Check the username is the full email address (some servers use just the local part)

Some ISPs block outbound SMTP on port 25/587. In Settings → Profile → SMTP, change the port to 465 and enable SSL (instead of STARTTLS).