一键导入
workflow-optimize-credits
Clay workflows — reduce a workflow's credit and LLM cost. Identifies expensive patterns and suggests cheaper alternatives.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Clay workflows — reduce a workflow's credit and LLM cost. Identifies expensive patterns and suggests cheaper alternatives.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Clay — start here. A table of contents for working with Clay and which skill to use for each thing — search (find 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, Alpha), and feedback. Read this first to answer "what can I do with Clay?"
Clay Public API — HTTP access for building services, apps, and integrations: structured-filter search over Clay's GTM database, structured table queries, and async routine and batch runs.
Clay search — find people or companies in Clay's GTM database from structured filters, and page through the matches. Use when the user wants to search Clay for prospects/accounts, not query an existing table.
Clay setup — authenticate both the `clay` CLI and the Clay MCP server (both are required to use the plugin). Use when `clay` is not found on PATH or the `clay` found in the PATH is the wrong version, `clay whoami` fails, the MCP tools (`read`, `edit_node`) error on auth or don't appear at all despite a Connected server, the CLI isn't signed in, the Cursor plugin never appears after a local install, or the user wants to configure Clay.
Clay tables — analyze what a table does: reconstruct the column DAG, stage it, and narrate the workflow encoded in its columns. Use when the user asks "what does this table do?", "explain the {table} workflow", "walk me through this table", or "what's set up here?".
Clay tables — locate a record by identifier and snapshot its state: which table(s) hold it and each cell's status. Use when the user has an id and asks "trace {id}", "where is {id}?", "what enrichments ran for this lead?", or "is this record done?".
| name | workflow-optimize-credits |
| description | Clay workflows — reduce a workflow's credit and LLM cost. Identifies expensive patterns and suggests cheaper alternatives. |
Analyze the current workflow and suggest changes to reduce credit consumption and LLM costs without sacrificing quality.
read (full mode) to get all node detailsclay workflows diagram <workflowId>) with the expensive nodes called out so the user can see where the cost livesvalidate_workflow with prettier=true and render the updated graph so the change is visibleNarrate throughout and prefer the diagram over raw node JSON — see workflows/presenting.md.
Every regular (LLM) node makes at least one LLM call per execution. More capable models cost more.
Optimizations:
static or reference input mappings for parameters that don't need LLM inference. If ALL parameters are pre-mapped, the LLM parameter mapping call is skipped entirelyEach Clay action execution consumes credits based on the action's pricing tier.
Optimizations:
sourceNodeId/sourcePath) instead of calling the action againexecute_clay_action MCP tool description for the discovery surface to compare optionsfailureMode: "fail_fast" in collect nodes if one failure means the whole batch is invalid — avoids processing remaining itemsDifferent models have different cost/capability profiles.
Optimizations:
Map nodes multiply costs by the number of items processed.
Optimizations:
Use conditional nodes to skip expensive branches for items that don't need them.
Example:
Instead of: [All items] → [Expensive enrichment] → [Process]
Do this: [All items] → [Conditional: has data?] → Yes → [Process]
→ No → [Enrichment] → [Process]
For each optimization opportunity, present:
Prioritize suggestions by impact (highest savings first). Pair the list with the current-graph render, with the expensive nodes called out, so each is easy to locate.
After presenting all suggestions, ask the user which to apply. Execute using edit_node, validate with validate_workflow (prettier=true), and show the updated graph so the user can see the before/after difference.