Skip to content

feat(broadcasts): count contacts who leave a phone number or email after a broadcast - #1751

Merged
viethung0o0 merged 1 commit into
mainfrom
feat/broadcast-contact-info-capture
Nov 19, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
feat/broadcast-contact-info-capture

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Each broadcast shows how many contacts left a phone number and how many left an email after receiving it, in the broadcasts table, the contacts dialog and the recurring runs grid.
  • A contact counts only when the last bot message they received came from that broadcast, once per contact, broadcast and type. Phone numbers and emails are never stored.
  • Counting runs in the background, so sending and message handling are not slowed. Numbers can lag a few seconds.
  • The public API returns the new counts and accepts the new event types for contact lists and bulk tagging.
  • New table (migration included), cleaned up with the contact, broadcast and workspace.

Test plan

  • Unit tests for the new logic, the background job, analytics and the public API
  • Database integration and concurrency checks on a scratch PostgreSQL, plus query plans on large fake data
  • Checked in the browser with fake data: table columns, contacts dialog, recurring runs grid, bulk tag
  • pnpm lint, type checks for the touched packages
  • Review and apply the migration before deploying

@github-actions github-actions Bot added the feature New feature or request label Nov 19, 2026
@viethung0o0
viethung0o0 force-pushed the feat/broadcast-contact-info-capture branch from 92718de to 3025660 Compare November 19, 2026 09:21
@viethung0o0
viethung0o0 marked this pull request as ready for review November 19, 2026 09:29
@viethung0o0
viethung0o0 merged commit f2a2b6a into main Nov 19, 2026
14 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants