-
Notifications
You must be signed in to change notification settings - Fork 0
Email Outreach: Gmail API integration for send-on-confirm #3
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature
SecretAIRY generates personalized cold email drafts, but currently has no way to actually send them. The user must copy-paste into Gmail manually.
Desired Flow
- AI generates personalized email draft (already works ✅)
- User reviews and edits the draft in the dashboard
- User clicks "Send" → email is sent via Gmail API
email_sent_attimestamp is recorded- Follow-up call is scheduled 24h after email send
Implementation Plan
- Google OAuth credentials already in
.env(CLIENT_ID + CLIENT_SECRET) - Need OAuth2 consent flow for Gmail
sendscope - Store refresh token in DB
POST /campaigns/{id}/send-emailcalls Gmail API- Dashboard already has the "Send Email" button wired up
Current State
- ✅ Email draft generation (Gemini, personalized with research data)
- ✅ Dashboard edit + send button UI
- ❌ Gmail API OAuth flow
- ❌ Actual email sending
- ❌ Open/click tracking
Labels
feature, email, outreach
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request