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
main.py
Python REPL
Interactive
Approval Options
For New Emails
Yes, send it
Send this specific email
Auto approve emails to '{recipient}'
Auto-approve all emails to this recipient for this session
Auto approve all emails 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:
main.py
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
main.py
