workflows-audience-enrichment

Clay workflows — build enrichment steps inside an existing audience-enrichment workflow and map their results back to the audience. Use only when the workflow being edited has an output type of `audience_enrichment` from `clay workflows get`.

Last repository push
GitHub Stars
158
Forks
27
Issues / PRs
10

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "workflows-audience-enrichment" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7aa8a9fbf117dd2e85513a4b022aa4f9b811fa5228574dee28a11270bfab21f2. Verify the upstream source and version against https://github.com/clay-run/agent-plugins before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Clay workflows — build enrichment steps inside an existing audience-enrichment workflow and map their results back to the audience. Use only when the workflow being edited has an output type of `audience_enrichment` from `clay workflows get`.

0 Downloads

Introduction source: third_party · clay-run · 0.0.1 Reference

SkillPi interpretation

Tasks
Clay workflows — build enrichment steps and map their results back to Audiences in an existing audience enrichment workflow. Use only while editing a workflow whose `clay workflows get` output has type `audience_enrichment`.
Audience
Use this skill only for an existing workflow whose type is `audience_enrichment`. It owns the workflow-specific sequence: build enrichment steps, ensure the shared final Audiences writeback, and map enrichment results onto audience fields. Read the complete `workflows` and `audiences` skills first. Read `/workflows-discover-actions` when choosing provider actions, and read the `workflows` skill's `audiences.md` before mapping the writeback.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: workflows-audience-enrichment
description: Clay workflows — build enrichment steps and map their results back to Audiences in an existing audience enrichment workflow. Use only while editing a workflow whose `clay workflows get` output has type `audience_enrichment`.
allowed-tools: Bash(clay *), Bash(jq *), Read

Build an audience enrichment workflow

Use this skill only for an existing workflow whose type is audience_enrichment. It owns the workflow-specific sequence: build enrichment steps, ensure the shared final Audiences writeback, and map enrichment results onto audience fields.

Read the complete workflows and audiences skills first. Read /workflows-discover-actions when choosing provider actions, and read the workflows skill's audiences.md before mapping the writeback.

Verify the workflow type

Start every task with:

clay workflows get <workflowId>

Continue only when .type is exactly audience_enrichment. If the type is null, absent, account_agents, or anything else, stop using this skill and return to the general workflows skill. Never convert or reclassify a workflow implicitly.

Plan the enrichment

Read the full graph and identify the audience trigger, existing enrichment steps, and current writeback node. Confirm with the user:

  • which audience fields should be populated
  • whether the workflow should enrich people or companies
  • whether the requested fields are actually missing or sparse
  • the action or function to use when the workspace catalog offers consequential alternatives
  • the audience size before testing or publishing

Use the audiences skill to inspect field fill rates and count matching records. Prefer direct enrichment actions for provider data, Clay functions for reusable workspace logic, agents for unstructured research or classification, conditionals for eligibility and fallbacks, and code for deterministic transformations.

Present a short plan and get approval before editing the graph. Get separate approval before publishing. Testing must be within the authorized scope; follow the shared policy in workflows-discover-actions/cost-and-budget.md for cost disclosure and significant-spend confirmation.

Build the enrichment path

Build from the existing audience trigger. Preserve the trigger and any existing upsert-audiences-record node.

Use clay workflows actions list and clay workflows actions schema to choose and configure each enrichment. Never guess action input names, output paths, credentials, or provider availability. Put cheap eligibility checks before paid actions. When an enrichment can miss, use the user's chosen fallback or conditional path rather than silently writing a blank value.

Use the general workflows skill for node creation, insertion, data passing, and branch wiring. Do not manually create or reconnect the final audience writeback while building intermediate steps.

Ensure and configure the final writeback

After the enrichment graph is structurally complete, run:

clay workflows ensure-audience-writeback <workflowId>

This command calls the same server-side helper as the audience enrichment editor. It creates or reuses exactly one upsert-audiences-record node, validates its entity type, and reconnects every eligible terminal route. Do not reproduce that topology change with manual node or edge edits.

Read the returned node before updating it. Preserve its tool identity and static entityType, then configure its inputMappingConfig with clay workflows nodes update using the writable shape from clay workflows nodes get.

Discover destination fields with:

clay audiences fields list --entity-type people
clay audiences fields list --entity-type companies

Follow the workflows skill's audiences.md for the complete mapping shape. In particular:

  • set lookupFields|selectedLookupFields to the static array ["id"]
  • bind lookupFields|id to the audience trigger record id: use $.fields.id when the trigger output schema contains a fields object, otherwise use $.id; inspect the trigger output schema and never guess the path
  • do not replace the record-id lookup with email, LinkedIn URL, phone, or domain; those aliases are for generic or net-new audience upserts where an existing audience record id is unavailable
  • include every destination id in recordFields|selectedRecordFields and provide its matching recordFields|<id> binding
  • set recordFields|removeNullValues to true unless the user explicitly wants blanks to clear existing values
  • bind enrichment outputs from their declared $.result.<outputPath> paths; never invent paths

Read the writeback node again after updating it and confirm the mappings persisted.

Validate, test, and publish

Validate the graph and show the resulting diagram. Test a small audience sample first, inspect both the enrichment output and the final Audiences update, and correct mappings before increasing the limit. Publish only after the user approves the tested draft. Later edits remain draft-only until the workflow is published again.

Version history

  1. clay-cli-v1.22.0 GitHub ↗
    Original release notes

    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.

  2. clay-cli-v1.21.0 GitHub ↗
    Original release notes

    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.

  3. clay-cli-v1.20.0 GitHub ↗
    Original release notes

    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.

  4. clay-cli-v1.19.0 GitHub ↗
    Original release notes

    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.

  5. clay-cli-v1.18.0 GitHub ↗
    Original release notes

    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.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 针对 Clay 平台受众丰富化工作流的专业工具
  • 解决明确的工作流构建痛点
  • 具有实际的业务应用价值
Trigger Precision85/100

Highlights

  • 触发条件清晰明确
  • 包含完整的类型验证机制
  • 边界定义清楚
Structure and Standards90/100

Areas to improve

  • 引用文件完整性 Reported severity: Minor

    文档中引用了 audiences.md、cost-and-budget.md 等文件,但未验证这些文件是否实际存在

    Recommendation: 建议验证所有引用文件的完整性,或提供文件存在性检查机制

Highlights

  • 步骤划分清晰完整
  • 包含端到端执行示例
  • frontmatter 信息完整
Execution Reliability88/100

Highlights

  • 使用官方 clay CLI 工具
  • 包含完整的验证和测试流程
  • 重要操作有用户确认机制
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 55

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.