Skip to content

feat(inbox): send Meta Dataset signals from the conversation composer - #1819

Merged
viethung0o0 merged 1 commit into
mainfrom
feat/inbox-meta-capi-signal
Nov 30, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
feat/inbox-meta-capi-signal

Conversation

@viethung0o0

Copy link
Copy Markdown
Contributor

Summary

  • Add a ⚡ button to the Inbox composer that sends a Meta Dataset signal for the contact: Purchase, Lead Submitted and the five order events.
  • The signal is sent to Meta right away and the agent sees the result. On success the popover closes and a toast appears.
  • Order events take an optional order ID.
  • The Lead field is filled with the contact's phone or email when the member is allowed to see them.
  • New public API with the ads scope and an idempotency key:
    • POST /v1/contacts/{identifier}/meta-capi-events
    • GET /v1/meta-capi-events/{id}
  • CAPI delivery from flows and triggers is safer: each event is sent once, and a cleanup job handles stuck events.
  • One migration on MetaCapiEvent that is safe to run online.
  • Deploy order: migration, then worker, then builder.

Test plan

  • pnpm lint
  • pnpm check-types:cold
  • Tests for utils, database, business, worker, builder, CLI and MCP. In business test:db, two files this change doesn't touch were already failing.
  • Sent Purchase and Lead signals from the Inbox to Meta test events

@github-actions github-actions Bot added the feature New feature or request label Nov 29, 2026
@viethung0o0
viethung0o0 force-pushed the feat/inbox-meta-capi-signal branch from e5a9d54 to 6c58ed1 Compare November 29, 2026 23:57
@viethung0o0
viethung0o0 marked this pull request as ready for review November 30, 2026 00:00
@viethung0o0
viethung0o0 merged commit 5e365d1 into main Nov 30, 2026
14 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