You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TikTok comment automation never fires on photo (carousel) posts: commenter lookup returns nothing #1715
Hi @sung17, follow-up from #1563 / #1572. TikTok comment automation works on our self-hosted instance for videos, but it never fires for comments on photo (carousel) posts.
What happens
Same account, same automation (keyword bac, public text reply, all posts), two fresh comments a few minutes apart:
Post type
Post id
Comment id
Result
Video
(reel)
7707694609783325462
public reply posted ✅
Photo carousel
7705753734357339425
7707692430741144342
no reply, automation withheld ❌
For the carousel comment the webhook arrives and passes verification, then the worker logs:
WARN resolveTiktokCommenterIdentity: comment not returned by TikTok {commentId: 7707692430741144342, videoId: 7705753734357339425}
WARN receiveComment: TikTok commenter identity unresolved, withholding automation {commentId: 7707692430741144342}
about one second later the builder logs Ignoring TikTok comment visibility change (set_to_public) for the same comment id, and nothing else happens. The comment stays unanswered.
Where
apps/worker/src/integration/handlers/tiktok-comment-identity.ts calls business/comment/list/ with video_id = the post id from comment.update, comment_ids: [commentId], status: "ALL". For the carousel post TikTok returns no matching comment, so the function returns undefined and receiveComment withholds the automation (by design, to avoid self-replies).
What we don't know
Whether business/comment/list/ simply doesn't return comments on photo posts, or the comment isn't queryable yet at that moment (the set_to_public event right after makes a timing issue possible). We didn't test a delayed retry.
Ideas, your call
On a miss, retry the lookup once or twice with a short delay, and/or re-run it when set_to_public arrives for a withheld comment.
A fallback for ownership that doesn't depend on the lookup (e.g. remembering the account's own unique_identifier once a lookup has returned owner: true).
Happy to test any branch on our account, like last time.
Environment: self-hosted, chatbotx-builder / worker 1.18.0, TikTok app with Comments only (no Messaging), EEA account. The identity file is unchanged on current main (037684c).
Side note in case it helps others: before this, every TikTok webhook was rejected with Invalid or missing webhook signature because our server clock had drifted ~3 s behind (NTP blocked by the host firewall) and the verifier allows only 2 s in the future. Not a ChatbotX bug, but logging the computed skew on that error would make it much faster to diagnose.
Activity
fix(tiktok): re-check comments whose commenter lookup came back empty (…