/clay:workflows-discover-actionsfrom clay
Discovers available actions for Clay workflow nodes (email lookup, company enrichment, phone finders) and inspects their input/output schemas. Use when building workflows.
Ships in clay. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before using this skill, read the clay entry skill if you haven’t already this session, and follow its access guidance.
Use this skill before choosing enrichments, connector actions, or reusable functions
for a workflow. Start with ranked search, inspect actual schemas, and use catalog.md
for unresolved requirements, connection discovery, or unavailable search.
If clay workflows actions search is unavailable or returns a workspace-enablement
error, use catalog.md instead. A failed search is not evidence that no matching
enrichment exists. For tool access or authentication problems, read the clay entry
skill before attempting discovery.
For pricing and spending decisions, read cost-and-budget.md.
Choose the plan yourself from search results; do not call actions recommend in
this path.
Search returns individual actions, table functions (type: "function"), and workflow
functions (type: "subworkflow"). “Workflow function” is the user-facing term for
“subworkflow”; both refer to the same reusable workflow. Use “workflow function”
when speaking with users, and recognize “subworkflow” as the same concept. Use
“table function” to distinguish table-backed functions, and preserve technical
identifiers such as subworkflow and subworkflow_call in API payloads.
Only workflow functions can be called with a subworkflow_call node. Table
functions use a tool node with a tools entry containing
toolType: "clay_function" and tableId set to the function ID. Publishing an ordinary
workflow or registering it as a routine does not make it a workflow function. If node
creation or clay functions get workflow:<id> reports that a workflow is not a workflow
function, tell the user it cannot be called as a workflow function instead of retrying.
Functions may encapsulate
multiple steps, including installed waterfalls. Compare both against the requested
inputs and outputs; a suitable function can satisfy a capability without composing
several actions.
Use a matching Clay waterfall or Clay’s Enrich Person or Enrich Company action for a lookup instead of an individual provider. A provider accepting fewer inputs is not a reason to bypass a matching Clay option: obtain the missing inputs first, and flag unresolved records if that fails. Reuse any requested information returned along the way. Use individual providers for capabilities these Clay options don’t cover, or when the user explicitly requests one.
When native workflow waterfalls are enabled, search can also return type: "waterfall".
These candidates contain templateId, its attribute, and ordered providers
(actionPackageId + actionKey). Parent results also include parentTemplateId and use
their default child; standalone results use their own template ID. They are template
descriptions, not function IDs or executable action IDs. Apply a candidate with
clay workflows nodes insert <workflowId> --input <json|file|-> using step.kind: "waterfall",
step.name, and step.waterfallConfig; read clay workflows nodes insert --help for its shape.
Do not pass it to a function or action node, or expand it into separate provider nodes.
Build waterfallConfig from the candidate's attribute,
templateSelection: { parentTemplateId, templateId } (omit parentTemplateId for standalone templates),
and ordered providers. Give every
provider entry a unique id (including repeated providers), authAccountId: null for the
workspace's default connection or an accessible provider connection ID, and
inputOverrides: { inputMappingConfig: {}, inputRefs: {} }.
Start with sharedInputs: { inputMappingConfig: {}, inputRefs: {} }.
Validation runs inside the waterfall. Set validation to
{ actionPackageId, actionKey, authAccountId, requireValidationSuccess, options: {} },
taking the validator from the candidate's defaultValidation, or null when the candidate
has none and no validation was requested. Like providers, authAccountId is null for the
workspace's default connection or an accessible connection ID. A result that fails validation always moves on to the
next provider. requireValidationSuccess decides a result the validator could not check (an
error or no data): false accepts it, true moves on. Use false unless the request or source
also rejects results that could not be checked. For another validator, find it with clay workflows actions search and use
its package ID and action key. Custom waterfalls (attribute: "custom") take validation: null.
Do not add a validator node after a native waterfall for a check its validation performs.
Inspect the providers with clay workflows actions schema <packageId> <actionKey> to identify
their required inputs and semantic types. Map shared inputs by semantic type, preserving upstream reference
expressions and inputRefs; each reference is { sourceNodeId, path }, with path
as a JSONPath such as $.full_name. Use provider parameter names for provider-specific overrides.
Preserve the catalog's provider order and repeated entries. Use a unique node name based on
the current graph. The insertion creates a native waterfall without executing providers. Unmapped inputs are allowed when information is missing, but do not
run the workflow until the required inputs have been configured.
For a custom waterfall specified by an attribute and an ordered provider list, use the
same native insertion path. Omit templateSelection when no template was selected.
Inspect each provider's schema, preserve the requested order, and bind shared inputs
and provider overrides from upstream nodes. Configure one waterfall node rather than
separate provider nodes or a newly published function. An explicit request for one
provider alone should use that provider's action instead.
To revise an existing native waterfall, read clay workflows nodes get <workflowId> <nodeId>
(or the full graph) and modify node.waterfallConfig. Send the complete config using
clay workflows nodes update <workflowId> <nodeId> --input <json|file|-> with only the
waterfallConfig field. Preserve the template selection, provider IDs and ordering, and any
settings not being changed. To add validation, use the shape above. To change existing validation,
edit node.waterfallConfig.validation in place and keep its options. A provider or validator added with authAccountId: null starts on
the workspace's private default connection when it has one; steps already in the waterfall
keep their account, where null means Clay's connection. To put a new step on Clay's
connection, add it, then set its authAccountId to null in a second update. Shared inputs use semantic types; provider input overrides use
provider parameter names. Never update the generated call bindings or hidden child nodes directly.
Identify the inputs available at the insertion point from the conversation and
existing workflow inspection. For an existing workflow, use
clay workflows graph get <workflowId> --mode full and inspect individual nodes
or triggers as needed. Use only upstream outputs; fields on other branches or
downstream nodes are not automatically available. For a blank workflow, use
the inputs stated by the user. Unknown output shapes require inspection or
deferred mapping; do not invent field paths.
Search for each distinct capability with
clay workflows actions search "<capability>" --limit 10. Each call searches one query.
Keep unrelated steps in separate searches
so a combined shortlist does not crowd out one part of the request.
Save search responses to a local JSON file so large schemas do not hide later
candidates. Use a distinct enrichment-search-<capability>-<attempt>.json filename
for every search, retaining earlier files for composition and ID verification.
Use only lowercase letters, digits, and hyphens in the capability and attempt names.
Scan a compact view of every candidate before choosing or searching
again:
clay workflows actions search "<capability>" --limit 10 > enrichment-search-work-email-1.json
jq '.candidates[] | {type, candidateId, name: (.displayName // .name), packageId, actionKey, functionId, workflowId, parentTemplateId, templateId, attribute, providers, description, score, creditCost, requiresApiKey, appAccountType, requiredInputNames, requiredInputCombinations, inputs: [.inputParameters[]? | {name, type: (.type // .typeSettings.type), optional}], functionInputs: ((.inputSchema.properties // {}) | keys), functionOutputs: ((.outputSchema.properties // {}) | keys), outputs: [.outputParameters[]? | {outputPath, semanticType}]}' enrichment-search-work-email-1.json
The jq command is an optional compact-view convenience. If shell filtering requires approval, use the read-only file tool to inspect the saved response in bounded sections instead; do not require approval just to inspect results. Inspect complete schemas only for promising candidates, reusing the saved file or the type-specific inspection commands below rather than printing every candidate's full schema.
Compare the output fields against each part of the request. Reuse the saved
response for detailed inspection instead of repeating the same query.
Inspect candidate inputs, outputs, credentials and limits. Compare complete
plans, including steps to obtain missing inputs, rather than only actions that
accept the starting fields.
Search order is the default preference among candidates with comparable fit.
Use this order as a relevance signal, not proof of provider accuracy.
Choose a lower-ranked candidate for a concrete advantage in required outputs,
evidence, freshness metadata, or coverage, and explain it.
Match output semantics to the request: a title field alone does not establish
current employment, and a location field must refer to the requested entity.
For actions, use clay workflows actions schema <packageId> <actionKey> for more detail.
Inspect table functions with clay functions get function:<functionId>.
For workflow function (type: "subworkflow") candidates, use the published inputSchema
and outputSchema already returned by search. For additional implementation context,
use clay functions get workflow:<workflowId> when available; it does not require routine registration.
Inspection is rolled out separately from search. If it returns not_found, continue using
the saved search candidate's published schemas and workflowId; do not retry inspection
or discard the candidate solely because inspection is unavailable. Node validation still
determines whether the function can be added.
candidateId is only a search identifier. The returned schema is implementation context:
table functions render their table columns/actions as text; workflow functions render the
published graph as JSON text. Do not pass the implementation text as a node-creation payload.
Create a subworkflow_call node using the candidate’s workflowId as subworkflowId;
wire upstream inputs with inputSchema sourceNodeId/sourcePath and map values with inputMappingConfig.
Top-level inputMappingConfig currently supports only subworkflow_call nodes, not code or conditional nodes.
For tool nodes, keep mappings inside tools[].inputMappingConfig.
Do not redefine its schemas or convert it to a clay_function tool.
For table functions (type: "function"), inspect the saved candidate’s inputSchema and outputSchema;
use clay functions get <functionId> before rejecting a promising function or
adding steps when its outputs or validation behavior are unclear. If inspection
establishes the requested validation, use the function's result without another
validator for the same check. Add validation only for a missing requested guarantee,
stale results, or an explicit independent check.
Read input headers and alternatives before treating a field as required.
When requiredInputCombinations is present and nonempty, satisfy every input in
any one combination; the combinations override individual input optional flags.
If the candidates leave a gap, change the search rather than repeating the same constraints in slightly different words. Try the missing capability; if that returns the same options, broaden to the parent capability or entity enrichment. When broadening, remove the narrow constraints from the query instead of appending them to a broader phrase. Search for the category of information or the entity itself, then inspect the returned schemas for the missing field. A general enrichment can contain the needed field even when a specialized action does not. Keep the user's requirements when checking the broader results.
Consider whether results already found can work together. A list or history can be filtered or reduced with native workflow logic. An identifier or URL can feed a detail action when its schema supports that input. Check limits and missing matches; do not claim complete coverage when the available actions are capped. Native processing can transform already retrieved data; it cannot bypass a retrieval limit or fetch unseen rows. Do not replace a missing capability with an unspecified native join, pagination loop or other unverified operation. Name the supported retrieval step and retain its limitations. A category enum need not cover every concept the user requested. Check whether documented keyword search can retrieve the missing concept, then use supported semantic classification or deterministic filtering as appropriate. Classification can assess retrieved content; it cannot recover content the retrieval excluded.
Select one or more grounded results and pass them to the existing workflow
builder. Copy each candidateId, packageId, actionKey or functionId
verbatim from the tool response; never reconstruct an identifier from memory.
Immediately before handing off, extract the selected identifiers from the saved
JSON with jq, or read the selected entries with the read-only file tool. candidateId identifies a search result,
not a builder payload. For search and catalog selections, pass the extracted
actionKey and packageId as the builder’s actionKey and actionPackageId
for toolType: "clay_action"; pass functionId as tableId for
toolType: "clay_function". For type: "subworkflow", create a subworkflow_call
node with subworkflowId and optional inputMappingConfig. Copy the
workflowId from the response. Output references use $.result.<publishedOutput>.
Never select the caller itself. Set subworkflowId when creating the call; changing its target afterward is not supported.
Check every handed-off identifier against this extracted list; a plausible-looking
identifier is not sufficient.
Explain the fit and any remaining gap. The user's multi-part request already
permits a multi-step plan; ask only for genuinely missing facts or consequential
choices that prevent proceeding.
Stop when the plan covers the request or changed searches stop adding useful options. Do not exhaustively inspect every result or repeat searches just to fill a shortlist. Before declaring a capability unavailable, try a broader search as well as the specific one. A search error is a technical failure, not evidence that no matching enrichment exists; report it separately from any catalog recovery. No matches establish only that those searches found none, not that the workspace lacks the capability or has it disabled. State the discovery limit unless explicit capability or enablement evidence supports a stronger conclusion.
If a specific and a broader search still leave a requirement unsupported, use
clay workflows actions list to look for a complementary action, unless the session
explicitly restricts discovery to search only. Save and filter the catalog locally. Include output field names and paths in
the filter, not just action names or descriptions: a generically named enrichment
may already expose the missing facts. Inspect the matched fields and credit costs,
then verify promising candidates with the type-specific inspection commands above. Use this recovery for a
concrete gap. Subsequent searches should resolve missing capabilities, ambiguous
output semantics, or coverage limitations. Do not make an extra search or catalog
pass solely to find a cheaper or simpler plan. Listed credits may be reported,
but should not override stronger fit or drive exploration. When the ranked results
support the requirements and no material ambiguity remains, stop. Explain any
requirement that remains unsupported.
Check requiresApiKey before requiring a provider connection (for catalog selections,
read actionLabels.requiresApiKey on the selected action). A false value supports
saying no customer-supplied provider credentials are required; null or missing is
unknown, not false. A function's managed source identifies who maintains it, not
its credential requirements. Keep unknown prerequisites qualified rather than
claiming a connection is required or unnecessary without evidence.
When a connection is required,
or the user requests their own credentials, use the action's appAccountType with
clay app-accounts list --filter type=<appAccountType>.
Reuse the returned accounts for other selected actions with the same connection type.
If multiple accounts match and the user's intent or existing workflow does not identify
which to use, ask. For the workspace's own credentials, exclude isClayManaged accounts.
Pass the chosen account's id explicitly as appAccountId, even when passing a toolId.
If no accessible accounts are returned, explain that a connection or access is needed.
Do not fetch the full catalog for credential checks.
Unknown schemas do not prove an action cannot do the work: distinguish a promising candidate from verified field mappings. For table lookups and research actions, an empty declared output schema means the builder must resolve dynamic outputs before mapping; it does not make the action unavailable. Clay's table-lookup actions are valid built-in operations, not unnecessary external enrichments. When one supports the requested cross-table read, select it and defer only its dynamic field mapping; do not substitute an unspecified native join. Do not execute actions merely to rank them or invent output paths.
Use the existing workflow-building instructions for node construction and data mapping. Resolve dynamic fields when needed, preserve workflow capability and credential checks, and keep uncertain results distinct from confirmed outputs. Search discovers candidates; the builder remains responsible for creating and validating the workflow.
When the remaining gap is evidence rather than a missing field, search for a research or source-reading action that can perform the verification. Do not stop at an unverified numeric field plus an unspecified “verify later” step. Select a supported verification capability, require appropriate source evidence, and keep unverifiable results unknown. This does not guarantee universal coverage. Do not add research to ordinary lookups that do not have this evidence gap.
What SKILL.md sets; muted values are Claude Code's defaults
39 skills in this plugin
/ad-syncsClay ad syncs — push an audience segment to ad platforms (LinkedIn, Meta, Google, Bing, Reddit, Vibe) as a custom audience. Use to create, edit, start, pause, or map the fields of an ad sync, or to check its status, match rate, or run history./audiencesClay 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. Also Data hub enrichment configuration, audience assignments, and parity checks. Also the calls and meetings synced onto those records, such as Gong recordings, and which accounts discussed a topic on their calls./clayClay — start here. A table of contents for working with Clay and which skill to use for each thing — audiences (the workspace's own people/companies/deals), sequences (formerly campaigns; create, improve, and analyze outbound email sequences in Sequencer), ad syncs (push audience segments to ad platforms), search (find net-new people/companies), routines (run Clay-managed and custom functions), tables (query/export data), the CLI (ephemeral programmatic access), the Public API (build services on Clay), workflows (build automations), feedback, and getting help — reaching Clay support or a human about billing, refunds, or account problems. Read this first to answer "what can I do with Clay?"/clay-docsUse when the user asks a Clay product question — how a feature works, whether Clay supports or integrates with something, what plans include, security/compliance, or what's new — and the answer isn't operational guidance another skill owns. Answer from Clay's live public documentation, fetched and cited, never from memory./clay-feedbackClay feedback — send a bug report or product feedback to the Clay team via the `clay feedback` CLI./cliClay CLI — the primary scripting surface (JSON output, typed errors). Use when running or discovering `clay` commands. For what Clay can do and which skill to use, read the `clay` skill when it is available; otherwise run `clay --help`. Use `clay --help` for command names, flags, JSON shape, and error codes.npx claudepluginhub clay-run/agent-plugins --plugin clayOther plugins' skills for the same job