Skip to content

feat(contacts): add activity-based contact filters - #1539

Merged
viethung0o0 merged 2 commits into
mainfrom
feat/contact-activity-filters
Oct 24, 2026
Merged

viethung0o0 merged 2 commits into
mainfrom
feat/contact-activity-filters

Conversation

@viethung0o0

Copy link
Copy Markdown
Contributor

Summary

  • Add ten contact filters: Last Delivered, Completed WhatsApp Flows, Sent message, Keywords Received, Executed Flow, Executed Step, and Email Sent / Delivered / Opened / Clicked.
  • Store contact activity in new partitioned tables, written by flows, keywords, WhatsApp Flows, email tracking and delivery events. History starts at release, with no backfill.
  • Expose the filters in the contacts, conversations and broadcast filter UI, public API, CLI and MCP, with a new flows.listNodes operation.
  • Add countMode: "bounded" for contact and audience counts, and scan filtered broadcast audiences once instead of once per chunk.
  • Add kill switches for writing and filtering. See docs/contact-activity.md for rollout notes.

Verification

  • pnpm lint
  • pnpm --filter @chatbotx.io/database check-types, business, worker and builder check-types
  • Unit tests for database, business, worker and builder; database-backed tests for the new tables and queries

@github-actions github-actions Bot added the feature New feature or request label Oct 23, 2026
@viethung0o0
viethung0o0 marked this pull request as ready for review October 24, 2026 09:59
@viethung0o0
viethung0o0 merged commit a4ab684 into main Oct 24, 2026
4 checks passed
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