Automation Center
Trigger → permission check → action → result → audit log → owner Gmail draft. No third-party bulk mail. No passwords. Production send stays off until a workplace Gmail token exists.
| Automation | Trigger | Action | Status | Requires |
|---|---|---|---|---|
| Connector connected Grok session Gmail is authorized. Production Gmail send needs workplace Gmail tokens in Vercel. | Live connector probe returns Connected | Write audit row + owner Gmail draft | enabled | gmail-oauth |
| Connector disconnected Does not email third parties. | Health or OAuth failure after a prior Connected state | Write audit row + owner Gmail draft | enabled | gmail-oauth |
| OAuth authorization required Used for Teams 401, native Drive, Meta Login. | Provider returns 401 or missing consent | Write audit row + owner Gmail draft | enabled | gmail-oauth |
| Automation completed Owner-only notification. | Run finishes with ok=true | Audit + optional owner Gmail draft | enabled | gmail-oauth |
| Automation failed No retry storm: one alert per run id. | Run throws or provider error | Audit + owner Gmail alert draft | enabled | gmail-oauth |
| Weekly workplace report Not bulk email. | Manual or scheduled owner run | Compile connector matrix into owner Gmail draft | enabled | gmail-oauth |
| Meta event to Gmail Disabled until Meta Page token exists. | Authorized Meta webhook event for owned Page | Audit + owner Gmail draft | disabled | meta-page-token, gmail-oauth |