feat: add outreach response tracking and goal follow-up system#678
Merged
Conversation
- Track DM responses to proactive outreach messages - Track link click conversions when users sign up via outreach links - Add goal follow-up job that sends gentle reminders for unanswered outreach - Add goal outcome reconciliation (check if goals were achieved through other means) - Add admin API endpoints for follow-up preview, reconciliation preview, and user timeline view - Add follow_up_template, max_attempts, days_between_attempts to outreach_goals schema 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Migration 148 was added to main (148_slack_only_engagement_scores.sql) while this branch was in progress. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Migration 149 was added to main (149_simplify_engagement_scoring.sql) while this branch was in progress. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
follow_up_template,max_attempts,days_between_attemptsto outreach_goals schemaKey Changes
Response Tracking
bolt-app.ts: Detect and record DM/Assistant responses to outreachhttp.ts: Track conversions when users click login links from outreachGoal Follow-Up Job
goal-follow-up.tsjob that:Admin API
GET /api/admin/outreach/follow-ups/preview- Preview pending follow-upsGET /api/admin/outreach/reconciliation/preview- Preview reconcilable goalsPOST /api/admin/outreach/follow-ups/run- Manually trigger jobGET /api/admin/outreach/timeline/:slackUserId- View full outreach timeline for a userTest plan
🤖 Generated with Claude Code