croct-cql
Use when writing, reading, reviewing, or debugging Croct's Contextual Query Language (CQL): audience criteria, croct.evaluate() / useEvaluation / <Personalization query> / Next.js cql tag queries, Evaluation API query bodies (/client/web/evaluate, /external/web/evaluate), and dynamic content values ("type": "dynamic", "expression"). Covers context variables (user, session, page, location, campaign, cart, device, browser, context, now/today), data types and conversions, accessors and selectors ('s, property X of, [1st], [*], [...]), tests (is, matches, is like, contains either, is between, is defined, is returning), quantifiers (some ... satisfies), macros, modifiers, event expressions (user has viewed a page, user has abandoned a cart, user has completed goal), audience estimation, and recipes. Triggers: "write an audience", "target mobile users in New York", "CQL syntax error", "audience never matches", "unavailable estimate".
Pinned to revision 6d1ad55caa27, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/croct-cql/SKILL.md
- skills/croct-cql/references/context-and-data-types.md
- skills/croct-cql/references/evaluation.md
- skills/croct-cql/references/events.md
- skills/croct-cql/references/expressions.md
- skills/croct-cql/references/recipes.md
- skills/croct-cql/references/syntax.md
Every link opens the file at its source, pinned to the revision this page describes.