conditional-logic

Write Clayscript formulas and configure conditional runs in Clay.

242|77|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/sachacoldiq/ColdIQ-s-GTM-Skills --skill conditional-logic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: conditional-logic
Source: https://github.com/sachacoldiq/ColdIQ-s-GTM-Skills/tree/main/master-skills/clay/.claude/skills/conditional-logic
Command: npx skills add https://github.com/sachacoldiq/ColdIQ-s-GTM-Skills --skill conditional-logic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users write efficient Clayscript formulas, set up conditional runs, and implement credit-saving logic within the Clay platform, reducing unnecessary costs and improving data processing.

Core Features & Use Cases

  • Clayscript Formulas: Write custom formulas for data manipulation, cleaning, and transformation.
  • Conditional Runs: Ensure enrichments and actions only execute when specific criteria are met, saving credits.
  • Credit Optimization: Implement strategies to minimize spending on paid enrichments.
  • Use Case: Automatically extract a company's domain from an email address using a formula, or set up a conditional run so that a specific enrichment only triggers if the email field is currently empty.

Quick Start

Write a Clayscript formula to extract the domain from the email column.

Frequently Asked Questions about conditional-logic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Clayscript formulas for data manipulation in Clay?

Conditional runs in Clay ensure enrichments and actions only execute when specific criteria are met. By triggering enrichments solely based on distinct cell values, you minimize spending on paid data processing operations.

Does Clay conditional logic support JavaScript and Lodash libraries?

Yes, Clay conditional logic supports JavaScript formulas alongside Lodash, Moment.js, and FormulaJS libraries. This allows you to handle complex data cleaning, date formatting, and text transformation tasks within your Clayscript formulas.

What is the best way to save credits on Clay enrichments?

The best way to save credits on Clay enrichments is implementing conditional runs and credit optimization logic. This strategy ensures paid enrichments only trigger when required criteria are met, such as running an enrichment only if an email field is empty.

Can I extract a domain from an email address using a Clay formula?

Yes, you can extract a domain from an email address using a custom Clayscript formula. By leveraging the supported JavaScript and FormulaJS libraries, you can automatically parse text strings to isolate and clean domain data.

Why set up conditional execution for Clay data enrichment tasks?

Setting up conditional execution for Clay data enrichment tasks prevents unnecessary credit usage by stopping actions on rows that do not match your criteria. This logic optimizes data processing costs by ensuring enrichments only run on valid, empty, or specific cell values.