Skip to content

docs(audiences): document that Lookup in Audiences cannot scope to a segment, add workaround FAQ - #2354

Open
george-dilthey wants to merge 1 commit into
mainfrom
docsbot/doc-2109-intercom-tag-0826-cab9bbf6
Open

docs(audiences): document that Lookup in Audiences cannot scope to a segment, add workaround FAQ#2354
george-dilthey wants to merge 1 commit into
mainfrom
docsbot/doc-2109-intercom-tag-0826-cab9bbf6

Conversation

@george-dilthey

Copy link
Copy Markdown
Contributor

What changed

Added two things to docs/audiences.md:

  1. A sentence to the Lookup in Audiences bullet (in the "Using Audiences from a Clay table" section) noting the lookup searches the full audience and cannot be scoped to a specific saved segment, with a cross-reference to the new FAQ.
  2. A new FAQ entry "Can I scope a Lookup in Audiences to a specific segment?" (inserted between the two existing Lookup in Audiences FAQs) explaining the limitation and providing the step-by-step workaround.

Why

Trigger: Intercom conversation #215475628434998 — Megan Fogarty (Lucidchart) asked "Is it possible to lookup to a specific Companies segment via a Lookup to Audiences?" The human support agent (Bo Morin) answered: Lookup in Audiences searches the full audience, not a specific segment, and the workaround is to run a bulk enrichment on each segment that writes a custom field back to those company records, then have the lookup filter on that field.

Research:

  • Verified in code by the Docsbot Verifier sub-agent: Lookup in Audiences has no segmentId parameter — inputs are entityType, fieldsToFilterBy, signalDaysLookback, dataToInclude, limit. The query in /workspace/clay-base/services/audiences/src/query/routes/batch-lookup.ts JOINs directly against the full entity table with no segment membership predicate. PASS.
  • Available on Launch/Growth/Enterprise plans (gated by LOOKUP_IN_AUDIENCES / FeatureFlagEnum.EnableAudiencesGA).
  • The existing Audiences doc had no mention of segment scoping limitations for Lookup in Audiences, leaving a gap that caused Fin to escalate to a human.
  • Snowflake claim check: Bo also stated "when a company stops being returned by your query, Audiences archives that record." Verifier returned FAIL — the code marks the record as "Deleted from source" (sync-status update), not archived. The existing doc already correctly describes this behavior at line 209. No change made based on Bo's incorrect Snowflake claim.

Source link(s)

Uncertainties

None. The product behavior claim (Lookup in Audiences cannot scope to a segment, searches full audience by field value) is PASS from the verifier sub-agent with file:line code evidence.

Related observations

Closes DOC-2109

@linear-code

linear-code Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

DOC-2109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant