Skip to content

feat(apollo): auto-sync sequence replies to leads via cron - #21

Merged
anujeet98 merged 2 commits into
mainfrom
feat/apollo-auto-sync-replies
Aug 3, 2026
Merged

feat(apollo): auto-sync sequence replies to leads via cron#21
anujeet98 merged 2 commits into
mainfrom
feat/apollo-auto-sync-replies

Conversation

@Rishavraaj

@Rishavraaj Rishavraaj commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Cron job polls all active Apollo sequences every 10 min for replied contacts
  • Replied contacts auto-created as Leads in Zuko (deduplicated by Apollo person ID)
  • Manual "Sync Replies → Leads" button kept for on-demand sync
  • Removed dead webhook controller (Apollo has no native webhooks)

Changes

Backend

  • apollo-sync.service.ts (new): @Cron(EVERY_10_MINUTES) — queries all campaigns with providerSequenceId + icpProfileId, calls syncRepliesToLeads for each
  • integrations.module.ts: register ApolloSyncService, remove ApolloWebhookController
  • apollo-webhook.controller.ts: deleted — cron polling replaces this

Test Plan

  • Backend logs show Syncing replies for N campaigns every 10 min
  • After reply in Apollo sequence, lead auto-created in Zuko within 10 min
  • No duplicate leads created if same contact replies multiple times
  • Manual "Sync Replies → Leads" button still works

Rishavraaj and others added 2 commits August 3, 2026 13:30
Keeps manual "Sync Replies → Leads" button. Auto-sync runs alongside it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ebhooks)

Replaced by cron-based polling in ApolloSyncService.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Rishavraaj Rishavraaj changed the title fix(icp): contacts tab respects org/location filters + auto-sync replies to leads feat(apollo): auto-sync sequence replies to leads via cron Aug 3, 2026
@Rishavraaj
Rishavraaj changed the base branch from main to fix/apollo-contacts-location-filter August 3, 2026 08:04
Base automatically changed from fix/apollo-contacts-location-filter to main August 3, 2026 08:23
@anujeet98
anujeet98 merged commit d3029cd into main Aug 3, 2026
1 check passed
@anujeet98
anujeet98 deleted the feat/apollo-auto-sync-replies branch August 3, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants