gmail_plugin
Email approval and CRM sync for Gmail operations
What it does
The gmail_plugin provides two features for Gmail-powered agents:
Email Approval (before_each_tool)
Shows a preview and asks for confirmation before sending any email.
CRM Sync (after_each_tool)
After sending, updates contact's last_contact date in the CRM.
Quick Start
Want to customize? Run co copy gmail_plugin to get an editable copy.
Approval Options
For New Emails
Send this specific email
Auto-approve all emails to this recipient for this session
Skip approval for all emails (use with caution)
For Replies
When replying to threads, you get similar options plus "Auto approve all replies this session".
CRM Integration
After each successful email send, the plugin automatically updates the contact's CRM data:
Events Used
| Event | Handler | Purpose |
|---|---|---|
before_each_tool | check_email_approval | Preview and approve emails |
after_each_tool | sync_crm_after_send | Update CRM after send |
Related
Source
connectonion/useful_plugins/gmail_plugin.py
ConnectOnion