Skip to content

feat(ai-agent): prioritise the clicked ad in AI Agent chat replies - #1793

Merged
nguyenvantruc92 merged 1 commit into
mainfrom
feat/ai-agent-ad-context
Nov 26, 2026
Merged

nguyenvantruc92 merged 1 commit into
mainfrom
feat/ai-agent-ad-context

Conversation

@nguyenvantruc92

Copy link
Copy Markdown
Contributor

Render the ad block from the newest logged Meta ad touch, not the merged ContactInbox.referral snapshot, so the copy always matches the touch time (out-of-order webhooks, CTWA clicks without source_id, stale sourceUrl). Skip the lookup when the snapshot carries no copy, and allow 5 minutes of clock skew on the touch time.

@github-actions github-actions Bot added the feature New feature or request label Nov 26, 2026
Render the ad block from the newest logged Meta ad touch, not the merged
ContactInbox.referral snapshot, so the copy always matches the touch time
(out-of-order webhooks, CTWA clicks without source_id, stale sourceUrl).
Skip the lookup when the snapshot carries no copy, and allow 5 minutes of
clock skew on the touch time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nguyenvantruc92
nguyenvantruc92 force-pushed the feat/ai-agent-ad-context branch from 7f9f5cf to f38f615 Compare November 26, 2026 14:31
@nguyenvantruc92
nguyenvantruc92 merged commit ed71aff into main Nov 26, 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.

1 participant