In the last lesson, we talked about the two ways you can use AI to transform data: deterministic and generative. Now we're going to focus on the first one: deterministic transformations using AI Formulas in Clay.

These are perfect for data cleanups, text extraction, and other repeatable operations where you want consistent, rule-based output.

🧮 When to Use AI Formulas

Anytime you're manipulating or calculating existing data in a structured way like:

  • Totals
  • Patterns
  • Extractions
  • Cleanups

You should use AI Formulas.

🔍 Ideal Use Cases for Deterministic Tasks

These are ideal for deterministic tasks when:

  • You know exactly what kind of result you want
  • You're applying the same logic to every row
  • You don't need the AI to make a judgment call

Here are a few classic examples. You want to:

  • Extract all the companies someone has worked at into a comma-separated list
  • Calculate the total years of work experience someone has
  • Get the tenure in their last role, expressed in years and months

This kind of transformation would normally take a bunch of custom formulas or scripting. AI Formulas make it simple.

💼 Example: Extracting Company Work History

Here's an example: getting a list of all the companies that someone has worked at.

Let's say you scraped someone's full work history from LinkedIn, and you want to extract just the names of the companies they've worked at.

Using an AI Formula, you can scan the full job history and return a clean list. It's fast, accurate, and consistent. And because it's deterministic, you can count on the output structure staying the same across every row.

🛠️ Step-by-Step Implementation

Let's walk through how to extract a CSV list of companies from someone's work experience using AI Formulas:

  1. Start with LinkedIn Data
    • Begin with a table containing LinkedIn domains
    • Use the Enrich Person feature to get detailed profile information, including work experience
  2. Access Experience Data
    • Open cell details for any person
    • Scroll down to the "Experience" section
    • You'll see a list of all the companies they've worked for and roles they've held
  3. Create the AI Formula
    • From the Experiences list, you can click "Take action on list" and then select "Formula" to open the AI Formula builder
  4. Write the Formula
    • Enter a prompt like this: "Create a CSV of companies worked at, with these rules:
      • Include company names only
      • Exclude job titles and other details
      • Skip placeholder companies (like “stealth'” or “new company”)
      • Remove any duplicates"
  5. Review and Apply
    • Generate the formula
    • Check the output
    • If it looks correct, accept and apply to all rows

📝 Additional Use Cases for AI Formulas

That's one simple use case for AI Formulas. You can also use it for:

  • Formatting dates or numbers
  • Extracting text patterns (like pulling a domain from an email)
  • Cleaning up inconsistent inputs like job titles or locations
  • Doing math, like adding up years of experience or calculating tenure

If it's structured and consistent, AI Formulas are your best bet.

⚡ Why AI Formulas Optimize Your Credits

AI Formulas are particularly valuable because they:

  1. Don't consume Clay credits; they're free to use
  2. Process faster than API-based enrichments
  3. Maintain consistent output formats
  4. Can be reused across multiple tables and workflows

By using AI Formulas for deterministic tasks instead of credit-consuming enrichments, you can reserve your credits for more complex operations that truly require generative AI.

🔮 What's Coming Next

In the next lesson, we'll cover the other side of the Transform equation. We’ll use generative AI to take messy or unstructured inputs and turn them into clean categories or classifications.

(Export) Getting Your Lists Out of Clay
Course Completed
Intro to Clay 101: FETE & Jigsaw
10m
Watch lesson
Current Lesson
Your First GTM Use Case
9m
Watch lesson
Current Lesson
How to Experiment Inside of Clay
8m
Watch lesson
Current Lesson
Finding Companies in Clay
7m
Watch lesson
Current Lesson
Finding People in Clay
7m
Watch lesson
Current Lesson
Finding Businesses with Google Maps
7m
Watch lesson
Current Lesson
(Enrich) Add Data To Your Table
2m
Watch lesson
Current Lesson
Enriching Company Data
8m
Watch lesson
Current Lesson
Enriching People Data
8m
Watch lesson
Current Lesson
Enriching with Claygent
Watch lesson
Current Lesson
(Transform) Clean & Normalize Your Data
6m
Watch lesson
Current Lesson
Transforming with AI Formulas
7m
Watch lesson
Current Lesson
(Export) Getting Your Lists Out of Clay
5m
Watch lesson
Current Lesson
Exporting to Google Sheets
6m
Watch lesson
Current Lesson
Where to Go Next
3m
Watch lesson
Current Lesson

Connect, explore and learn together

Read our GTM blog, or try out our top Claybooks and templates to transform your growth ideas into outreach in minutes.

Clay branded illustration of a wall made out of 3D, colourful, clay bricks and a whimsical person opening a door in the wall to access a new world of opportunities.

Clay University

Master Clay in a few core lessons. Uplevel your data enrichment, craft better outbound messages, and book more meetings.

Learn with Clay

Go to market blog

Our best content on growing your GTM motion, from outbound sales automation to AI lead generation.

Explore our blog
Clay branded illustration made out of 3D clay objects showing  whimsical operators connecting cables to 3D Clay table

Integrations

Browse through all the integrations you can connect to Clay in seconds and discover what you can do!

Explore integrations
Clay branded illustration of a Clay table with colourful, 3D connectors made out of Clay around it

Templates

Power your outbound campaigns with our best templates.

Visit clay templates
Clay branded illustration of a messy tangle of 3D, colourful strings made out of clay being untangled into one, colourful, twisted string

Clay Experts

Hire a Clay Enterprise expert or find a Clay partner to help with your next project

Explore Clay experts

Clay's Chrome extension

Clay’s Chrome Extension makes it wicked easy to find leads almost anywhere on the internet

Explore Chrome Extension