Repository navigation
feat(contacts): add facebook/ig livestream as a user source - #1697
Merged
Merged
Conversation
A first-time commenter on a Facebook or Instagram live is now recorded with
the `liveComments` source, shown as "Facebook/IG Livestream" in
{{user_source}} and offered in the contact filter. Live detection now runs
before the contact is created.
TikTok and Threads comment contacts are labelled "TikTok Comment" and
"Threads Comment" instead of "Facebook/IG Comment".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
hello-jackytruong
referenced
this pull request
in hello-jackytruong/ChatWorkAI
Nov 22, 2026
A first-time commenter on a Facebook or Instagram live is now recorded with
the `liveComments` source, shown as "Facebook/IG Livestream" in
{{user_source}} and offered in the contact filter. Live detection now runs
before the contact is created.
TikTok and Threads comment contacts are labelled "TikTok Comment" and
"Threads Comment" instead of "Facebook/IG Comment".
Co-authored-by: Deathgiver <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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
{{user_source}}had no value for contacts who first reached a page through a livestream comment. This adds one, and fixes the comment label for TikTok and Threads.liveComments→{{user_source}}= Facebook/IG Livestream. Set when a first-time commenter's comment is on a Facebook or Instagram live. Ordinary post comments stay Facebook/IG Comment.receiveComment. Before, it ran after the contact was created, so the source could not use it. Facebook still makes the same singlegetCommentAttachmentcall (now inlookupMessengerCommentAttachment); Instagram still reads the webhook'sisLive.condition.sources.liveCommentsadded to all 21 locale files.The source is only written when the contact inbox is created, so existing contacts keep their source.
ContactInbox.sourceis atextcolumn, so no migration.Note
Any flow that compares
{{user_source}}to the text "Facebook/IG Comment" for TikTok/Threads contacts will no longer match.Testing
packages/variables:system-fields.test.ts: livestream label, per-channel comment labelsapps/worker:received-message.test.ts: Facebook live (via attachment lookup) and Instagram live (webhook flag) create contacts withliveCommentsapps/builder:contact-filter-config.test.tspnpm lint, check-types (pre-commit typecheck across 24 packages incl. builder)🤖 Generated with Claude Code