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.

AutomationTriggerActionStatusRequires
Connector connected
Grok session Gmail is authorized. Production Gmail send needs workplace Gmail tokens in Vercel.
Live connector probe returns ConnectedWrite audit row + owner Gmail draftenabledgmail-oauth
Connector disconnected
Does not email third parties.
Health or OAuth failure after a prior Connected stateWrite audit row + owner Gmail draftenabledgmail-oauth
OAuth authorization required
Used for Teams 401, native Drive, Meta Login.
Provider returns 401 or missing consentWrite audit row + owner Gmail draftenabledgmail-oauth
Automation completed
Owner-only notification.
Run finishes with ok=trueAudit + optional owner Gmail draftenabledgmail-oauth
Automation failed
No retry storm: one alert per run id.
Run throws or provider errorAudit + owner Gmail alert draftenabledgmail-oauth
Weekly workplace report
Not bulk email.
Manual or scheduled owner runCompile connector matrix into owner Gmail draftenabledgmail-oauth
Meta event to Gmail
Disabled until Meta Page token exists.
Authorized Meta webhook event for owned PageAudit + owner Gmail draftdisabledmeta-page-token, gmail-oauth