audiences
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "audiences":https://skillpi.com/zh/skills/deepskill-0572790f70b3abb2754f845a144ef2d021898028c6d6b6f92b5f541ad692d3dd。安装前核对上游来源和版本:https://github.com/clay-run/agent-plugins。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Clay 受众 — 工作区中的人员、公司和交易(联系人、潜在客户、客户账户、客户)。当未指定具体对象时,用于处理有关其记录的任何请求,包括数量统计、填充率、查找(例如“有多少人填写了电话?”)、已保存的细分以及字段定义。也适用于交易和销售管道相关问题,例如已成交、开放管道、交易阶段和年度合同价值(ACV)。
介绍来源: third_party · clay-run · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: audiences
description: Clay Audiences — the workspace's own people, companies, and deals (contacts, leads, accounts, customers). Use for any request about their records when no surface is named, including counts, fill rates, lookups ("how many people have a phone?"), saved segments, and field definitions. Also deal and pipeline questions like largest opportunities, biggest pipeline items, recent wins, closed-won, deal stage, and ACV.Clay Audiences
Audiences is Clay's CRM-shaped store of people and companies (plus deal records). An audience — also called a saved segment — is a named filter over one entity type. Nothing is copied into it: it selects records live, so its membership changes as records change.
Audiences is the default home for the workspace's own people and companies.
When a user mentions people, companies, contacts, leads, accounts, customers,
deals, or opportunities without naming a surface, they mean these records —
start here, not in the tables entry-point skill (a separate surface, right only
when the user names a table) and not in search (net-new prospects that are not
in the workspace yet).
Read this before any audiences work. Supporting references:
answering-data-questions.md— read this first for any "how many / who has / look up X" question. Covers reading existing fields before paying for an enrichment, checking fill rates, and what to do when the data is mostly missing.queries.md— read before writing a--query. Audiences DSL grammar, relationship semantics, data or date filters, and server-side sorting for top-N questions.filters.md— writing the filter AST that defines an audience. Read it before you author or edit a filter.custom_objects.md— deals / opportunities. Read it before anything that touches them, including vague rankings such as "largest opportunities", "biggest things in our pipeline", or "recent wins", and GTM phrasings: closed-won, closed-lost, open pipeline, deal stage, deal size / ACV / ARR, close date, forecast, win rate, renewal, expansion, churn, "our customers". Deals are read-only. Use the DSLopportunitiesroot for deal counts and IDs; use people/company roots when the requested results are contacts/accounts associated with those deals.- The
workflowsskill'saudiences.md— writing values onto records (theupsert-audiences-recordaction) and triggering a workflow off an audience.
Read with the CLI, write records with the action. clay audiences covers
every Audiences primitive — segments, fields, and reading records — but it has no
command that writes a field value onto a record. That is the
upsert-audiences-record action's job.
Net-new people or companies — not in the workspace yet. When search and routines
are available CLI commands, start in the searches skill, then persist via a routine
wrapping an upsert workflow (the workflows skill's audiences.md, then the
routines skill).
Act on this audience — pull matching records (records search-ids / get). When
routines is an available CLI command, run a routine over them (see the routines
skill). Ongoing automation (fire when membership
changes) is the workflows skill's audiences.md (audience_segment trigger).
One entity type, three spellings
The same entity types are named differently depending on where you are. Get this mapping right up front — it is the most common source of wasted round trips.
CLI --entity-type |
Filter AST / action entityType |
Filter dataPath root |
|---|---|---|
people |
CONTACT |
contact_entity_field_values |
companies |
ACCOUNT |
account_entity_field_values |
deals |
CUSTOM (Opportunity) |
opportunity |
Supported --entity-type values by command (all under clay audiences):
| Commands | Accepted values | Deals support |
|---|---|---|
records get, records search-ids, records search-count, fields list |
people, companies, deals |
Supported; deal searches with this flag must be unfiltered |
list, create |
people, companies |
Not supported; saved audiences target people or companies |
fields create, fields update, fields delete, fields segments |
people, companies |
Not supported |
signals get --entity-id |
people, companies |
Not supported |
Use these exact plural values: person, company, and deal are invalid.
Commands not listed above do not take --entity-type; segment-scoped commands
use the saved audience's type. CLI output can also carry entityType: "deals".
For filtered deal searches, omit --entity-type and use --query with the DSL
opportunities root; read custom_objects.md first.
Workflow triggers use the middle spelling: an audience_segment trigger's
segmentId is the audience id from clay audiences list, and its entityType
is CONTACT / ACCOUNT, not people / companies.
Audiences (saved segments)
clay audiences list --entity-type people # id, name, entityType (no filter); 50/page, pass back .cursor
clay audiences get <audienceId> # same, plus the full filter AST
clay audiences create --entity-type people --name "Missing emails" --filter ./filter.json
clay audiences update <audienceId> --name "…" --description "…" --filter ./filter.json
clay audiences archive <audienceId> # soft delete, idempotent; records untouched
createandupdatetake--filteras inline JSON, a file path, or-for stdin. Use a file or stdin for anything non-trivial — inline JSON in a shell triggers an approval prompt and invites quoting mistakes.updatereplaces the whole filter; there is no partial merge, and entity type is immutable after creation. Omitted flags are left alone.getreturns an id-free filter, soclay audiences get <id> | jq .filterpipes straight back intocreate --filter -to clone an audience.
Fields
Field ids are what record payloads and filter ASTs key on, and they are scoped
to an entity type — every subcommand takes --entity-type.
clay audiences fields list --entity-type people # every field: id, name, dataType, fieldType, hidden
clay audiences fields list --entity-type people --filter id=email # narrow by id (repeatable, comma-separated)
clay audiences fields list --entity-type people --include-system # system fields, hidden by default
clay audiences fields create --entity-type people --name "Lead score" --data-type number
clay audiences fields update <fieldId> --entity-type people --hidden true
clay audiences fields delete <fieldId> --entity-type people
clay audiences fields segments <fieldId> --entity-type people # audiences whose filter references the field
clay audiences fields list --entity-type deals # deal fields; list is the one subcommand taking deals
- Run
fields listonce and save it (> /tmp/people-fields.json), then slice it withjq. Re-running it to grep, head, and parse the same output three different ways is pure latency. fields listreturns the workspace record-field catalog (system fields excluded) — use those ids forupsert-audiences-record.- Names are not ids. Account "company name" is
org_name. Never guess an id from a display name. createsilently uniquifies a taken name ("Tier (2)") — read the returnednameandidrather than assuming the one you passed.- Before
update --data-typeordelete, runfields segments <fieldId>: a delete rewrites saved filters with those clauses removed, changing what those audiences match. Emptydatameans nothing is affected. - Default and system fields reject
--nameand--data-typechanges and cannot be deleted;--hidden,--order, and--descriptionstill work.
Default field ids
Present in every workspace, so you can write a filter against these without listing fields first:
- people —
name,first_name,last_name,email,linkedin_url,phone,title,signal_summary - companies —
org_name,domain,headquarters_location,linkedin_url,sfdc_owner_id,signal_summary,technographics - deals — see
custom_objects.md
signal_summary is derived from the signal events a signal has written onto the
record, not something you set — to see which signals feed it, use the signals
skill.
Anything else is workspace-defined — get its id from fields list.
Records
clay audiences records search-count --entity-type people --audience-id <id> # count a scope server-side
clay audiences records search-ids --entity-type people --audience-id <id> # matching ids, --limit per page + .cursor
clay audiences records get --entity-type people --ids 1,2,3 # field values, max 100 ids
Scope for both search commands (--query, --audience-id, and --filter are
mutually exclusive):
- no scope flag → every record of the entity type
--query <dsl>→ preferred for ad-hoc searches; omit--entity-type(combining them is an error). Usecount from ...forsearch-countandselect from ...forsearch-ids. Readqueries.mdbefore constructing the query--audience-id <id>→ a saved audience's records--filter <json|file|->→ AST fallback for unsupported DSL constructs, matching exactly what an audience built from that filter would hold
Add --archived to either to search archived records instead of live ones.
Use search-count for "how many". It counts server-side without fetching
every ID. A field's is_not_null query (or NotEmpty AST filter) checks coverage
when relying on unfamiliar data or proposing an enrichment. See
answering-data-questions.md.
Use search-ids --query 'select from ... order by <field> desc' --limit N
for top-N people, companies, or deals. This is the preferred way to answer
"Top N" questions: rank server-side and fetch only the N returned IDs for details,
without paginating through the full record set or sorting it locally.
Before ranking, check the field's dataType with fields list: numeric questions
require a number or currency field, not numeric-looking text. If the type is
wrong, recommend fixing the Audiences field type before ranking; do not change
it without approval. Sorting supports one same-entity text, number (including
currency), or date field. Missing values come last. Sorted results have no cursor,
even if more records match; they are not a full export. To count the same scope,
use count from ... where ... without order by or limit. Read queries.md
for grammar, field discovery, limits, and examples.
For filtered deal counts and IDs, use --query with the opportunities root.
--entity-type deals without a query still covers the whole population; combining
it with --audience-id or a non-empty --filter is a validation error.
The activities root supports counts; activity IDs are strings and cannot use
search-ids' numeric pagination. See queries.md and custom_objects.md.
search-ids returns ids only — feed them to records get --ids in batches of
100 for field values, keyed by field id (unset fields may be omitted). Records
not found are omitted rather than erroring. To size a scope, use search-count,
not a paging loop over search-ids.
Budget the walk before you start it
search-count first, then decide whether a full walk fits. Both stages spend the
same per-command budgets, and the second one dominates:
- ids — unsorted
search-idspages at--limitids per call (default 50, max 10,000). Size it from the count: aim for about 10 calls. - field values —
records gettakes 100 ids per call and is charged per id against its hourly budget, so the detail pass costscount/100calls that no batching shrinks. You can only make up to 60 calls per minute.
When that does not fit your data size, narrow the scope instead of grinding through it: tighten the filter — a shorter date window is usually the biggest win, then a single stage, owner, or segment — or read one page and label the answer a sample of that scope. Never start an unbounded paging loop and hope it lands: it spends the workspace's budget and the user gets a stalled turn instead of an answer.
Segment activities
Use clay audiences activities when the user asks what happened inside a saved
segment, such as recent email or call activity, campaign touches, source mix, or
activity volume over a period.
clay audiences activities get --segment-id audseg_abc --since 2026-08-01 --until 2026-08-20 --activity-types call
clay audiences activities summary --segment-id audseg_abc --since 2026-08-01 --until 2026-08-20 --activity-types call --sources CLAY_SEQUENCER
- Use
activities getfor the raw activity feed. It returns cursor-paginated events for records in the segment. - Use
activities summaryfor grouped counts by activity type and source when the user asks for totals, trends, or a quick breakdown instead of individual events. - Bound the first request with
--sinceand, when possible,--until,--activity-types, or--sources. These queries can take a few seconds on large segments, so prefer one targeted request over repeated exploratory calls. - It is okay to page through
activities getwith each returned cursor when the user needs the full bounded result set. Continuation requests pass only--cursorand optional--limit; do not repeat time, activity-type, or source filters with a cursor. Do not loop for freshness or repeatedly rerun broad activity queries without narrowing the request. - Common prompts: "show recent calls for this segment", "summarize email activity since last week", "which sources drove activity for this audience?", "sample the latest campaign activity before I run a workflow".
Signals
Signals write activities onto records.
A signal on an audience — a watch for job changes, new hires, funding news, job postings — stores each captured event as an activity attached to the person or company entity, not as a row anywhere.
Decide whether "signals" means triggers or captured events
Users often call both the watch and each occurrence it captures a "signal". Do not decide from the noun or signal type alone. Use the session context to form a likely interpretation, but do not silently guess. If the user's wording does not explicitly distinguish the two, ascertain their intent with a short, plain-language question before calling either surface: "Do you mean how many JobPost watches are configured, or how many JobPost events were captured?" You may say which reading seems more likely from the conversation, but contextual likelihood is not confirmation. An explicit earlier statement about triggers or events does count as confirmation.
- Use
clay signalsfor trigger definitions when the conversation is at the inventory or configuration level: listing, creating, updating, pausing, resuming, scheduling, checking run status, or choosing a destination. In that context, "how many JobPost signals do I have?" means count JobPost trigger definitions. - Use
clay audiences signalsfor captured events when the conversation is about results or history: what happened, detections over a period, affected records, an audience/segment, or a trigger's output. In particular, once the session is focused on one specific trigger, the same question — "how many JobPost signals do I have?" — usually means how many events that trigger has captured, not how many trigger definitions exist. Resolve its underlyingsignal.idwithclay signals getwhen needed, then narrowclay audiences signals summarywith--signal-ids. - After the user confirms captured events, reuse the record or audience/segment and time scope already established in the session. If any required scope is still missing, ask for it rather than inventing one.
Once the intended meaning is clear:
- Signal questions should use signal-specific surfaces. Do not use
clay audiences activitiescommands to answer signal-event questions; those commands read activity rows and can miss signal-specific event detail. - Read captured events by record or segment.
clay audiences signals getreturns the full event history for one person or company with--entity-id, or full payloads across a saved segment with--segment-id. Thesignals summarycommand groups a segment's counts by signal id and type. - Filters can select on them. "Companies with a job posting in the last 30
days" is a
signal_eventspredicate — seefilters.md, "Filter by signal activity". - For which signals exist, what one watches, and why one is not producing
events, see the
signalsskill — that is where to start for "is this audience's signal firing?"
clay audiences signals get --entity-id 123 --entity-type people --days-lookback 30
clay audiences signals get --segment-id audseg_abc --since 2026-08-01 --until 2026-08-20 --signal-types JobPost,News
clay audiences signals summary --segment-id audseg_abc --since 2026-08-01 --signal-types JobPost --signal-ids sig_abc
- Use
signals get --entity-idwhen the user names one record. Pass the numeric id fromclay audiences records search-ids, its--entity-type, and an explicit--days-lookback. It returns that record's events newest first; continuation calls repeat all three scope flags and pass the returned--cursor. - Use
signals get --segment-idwhen the event payloads across a saved segment matter. It returns one cursor page withdata, timestamps, signal id and type, and matched-entity count. - Use
signals summaryfor totals and first/last activity times. A summary can cover multiple--signal-typesand optionally narrow to underlyingsig_…ids with--signal-ids. - Segment-scoped first-page reads require
--sinceand--signal-types; bound them with--untilwhere possible. Their continuation calls repeat--segment-idbut pass only--cursorand optional--limit, without repeating filters. --since(inclusive) and--until(exclusive) filter onactivityTime— when the underlying event happened — notemittedAt, when the signal event was emitted.--signal-idstakes the underlyingsignal.idshown byclay signals get, not that command'std_…trigger definition id.
Error codes
Every command prints JSON on stdout and a typed error envelope on stderr. Exit
codes: 0 ok, 2 validation, 3 auth, 4 rate-limit, 5 network, 6
not-found. 3 on an audiences command usually means Audiences is not enabled for
the workspace — that is a workspace-config answer for the user, not something to
retry.
4 (rate_limited) means the workspace spent its request budget for that one
command. The budget is per command and shared by everyone in the workspace, so a
fields list loop cannot starve search-count. It defaults to 60 calls/minute
and a workspace can be raised above that, so read details.limit off the error
rather than assuming the default.
Sleep details.retryAfter seconds and carry on. A request-rate rejection costs no
budget and writes nothing, so repeating the identical call — including a create
or update — once the wait is over is safe.
records get carries a second budget: an hourly one charged per record id it
returns, which batching does not reduce. Read its 429s more carefully than the
rest:
details.limitis records/hour (default 100,000), not calls/minute, and the message says "Hourly records limit" rather than "Too many requests".- The rejected call did spend a request token — that one is not refunded — so the wait it asks for can end in a second 429, this time from the per-minute rate. Back off again rather than reading it as a failure.
That budget exists to prevent data exfiltration, so be conservative: before pulling a large set, check whether a sample of records answers the request.
版本历史
-
clay-cli-v1.22.0
GitHub ↗
原版更新说明
Standalone Clay CLI 1.22.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay ad-syncs trigger <adSyncId>` starts an export of an ad sync’s audience to its destinations: a draft’s first trigger starts the sync, later triggers run it again, and a paused sync resumes. - When a command fails because of a plan limit, the agent shows the upgrade link from the error and offers a way to continue without the gated feature. - Various bug fixes and stability improvements.
-
clay-cli-v1.21.0
GitHub ↗
原版更新说明
Standalone Clay CLI 1.21.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay knowledge-hub skills create` saves agent skills to the workspace and resolves duplicate names without overwriting existing skills. - Various bug fixes and stability improvements.
-
clay-cli-v1.20.0
GitHub ↗
原版更新说明
Standalone Clay CLI 1.20.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay workflows runs bulk pause`, `resume`, and `stop` control many runs; `clay workflows triggers list` lists assignments and schedules, and `update --resume-paused-runs` resumes paused runs with a trigger. - `clay workflows groups publish-as-function` creates reusable functions; the Workflows and Enhanced Match skills guide Classify routing and hashed-email enrichment, and `clay workflows runs get` shows waterfall provider names. - `clay audiences activities` reads and summarizes record activities, retrieves Gong transcripts, and searches call content; `clay audiences records get` includes related-record references. - `clay searches query-mode reference --sections` retrieves selected reference sections. - Various bug fixes and stability improvements.
-
clay-cli-v1.19.0
GitHub ↗
原版更新说明
Standalone Clay CLI 1.19.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay workflows nodes insert --help` describes the Classify step: a Use AI step that sorts each record into one of a fixed set of categories with GPT 6 Luna or Jev, ready to branch on the chosen category. - `clay ad-syncs destinations delete` removes a destination from a paused or failed ad sync, not only a draft. - `clay searches preview` output includes `preview.isCurrent`, which says whether the stored preview still matches the search's current configuration. - Various bug fixes and stability improvements.
-
clay-cli-v1.18.0
GitHub ↗
原版更新说明
Standalone Clay CLI 1.18.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay workflows runs steps` accepts `--omit-payloads` to list steps without their input and output data, and `--step-ids s1,s2` to fetch selected steps using comma-separated IDs, up to 50 per request. - Various bug fixes and stability improvements.
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 高价值/高频刚需。直接解决用户在CRM系统中对受众、交易和销售管道的常见查询需求,如数量统计、填充率、查找、已保存细分、字段定义、交易阶段、ACV等,具有明确的实用价值和广泛的应用场景。
亮点
- 触发词精准完整,覆盖多种变体,边界清晰。description中明确列出了适用场景和具体用例,如“有多少人填写了电话?”、“已成交”、“开放管道”、“交易阶段”等,能够准确触发该Skill。
亮点
- Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整,单文件≤500行。文档结构清晰,分章节详细说明了Audiences的概念、实体类型映射、Audiences(保存的细分)、字段、记录、细分活动、信号和错误代码,并提供了丰富的CLI命令示例和使用说明。
亮点
- 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制。文档中详细说明了各种CLI命令的使用方法、参数、限制和注意事项,包括错误处理、速率限制、预算管理等,确保了执行的可靠性。
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。