Discover our GTM Flywheel: Content, Ads & Outbound working as oneLearn more
ColdIQ Logo
Agency
Tools
Education
Get In Touch
Sales Tools

How to Use Clay’s AI Formula Generator

Clay’s AI formula generator develops functions that improve your prospecting workflow in your Clay table. It prevents you from engaging in repetitive tasks, preserves your Clay credit, and ensures you have clean data.

Michel Lieben
Michel Lieben
MAR 17 2026
How to Use Clay’s AI Formula Generator

Table of content

What’s Clay?
What is Clay’s AI Formula Generator?
Step-By-Step Guide for Using Clay’s AI Formula Generator
#1 Use Case: Conditional Formula
#2 Use Case: Data Formatting
#3 Use Case: Data Cleaning
Let ColdIQ Help You With Your Sales Prospecting Processes

Share article

Talk to a GTM engineer

‍

Doing lots of repetitive tasks while building your lead list wastes your time and gets you stressed. The situation worsens when you make a mistake and input inaccurate data that affects the quality of your database.

However, the AI formula generator in the sales prospecting platform, Clay, can help you avoid this scenario. So, let’s dig a little deeper into how this AI formula generator works and explore its use cases.

What’s Clay?

6851832178aac99ca91b8823 66755c8609d15b999affbe8c AD 4nXcdI MjyNMrQMEvqJ4lED SmhI6XaYgVufQik56 AbGM wn48BoUdu4dxYsUt92Lqgn SjWUYoTKX3CrGPuiJjCs16Pwayy9 WtSel 7v4ymrVtCNSSVOsV4ygJolnyfoFY3m7xQJgQtytBUrtMs86OIPMy

Clay is a sales intelligence platform that upscales your data enrichment and personalized outreach efforts. It combines over 75 data enrichment tools to provide additional information about your leads — whether a prospect’s contact information or the company’s firmographics.

It also automates your outreach process to send your personalized emails at scale. Overall, Clay enables you to build your lead list, access quality contact information, and scale your outbound campaigns.

What is Clay’s AI Formula Generator?

Clay’s AI Formula Generator combines Javascript and AI models to ensure some intended actions take effect only when you want them to happen. It develops functions that improve your prospecting and sales workflow.

This prevents you from engaging in repetitive tasks, preserves your Clay credit, and ensures you have clean data.

You can assess Clay’s AI formula generator in two ways. First, you can find it when you click on a column. In the example, we clicked on “Last Name” > “Edit Column” > “Formula.”

6851832178aac99ca91b8811 66755c879c1ab21871b2967a AD 4nXdWoKA4  retVQBb4wyXdCSsEWCjTR 488mekxzncpMZz bZ910STAP mMm 6uTDKaVrtol UCLQytXeyZkXQi5DZKVrU07 e1GW C54cXPfOmOVZbJ8ZU9XQAxPey3zh6rp4yE2Zf4oXkxRfqeVcSpykRi

Next, you can access it when you click “Add Enrichment” > “Tools.” Scroll down a bit till you see “Formula.“

6851832178aac99ca91b884b 66755c87d22ecc52599608d4 AD 4nXfszRIf9zuvTBR4AKwHgmR2RWfeG60XN8wqyA5UKSYsKWISmgcKkwQJymdyNaxF1LUtZ2k4jrWy88sBkXtTCd2PzqFDizTMt8xLycdyb81xhrZYcSCIWLaZrP1uzsqO0ZJVetoyyMX 70EGXLE7zjAM2P4

Irrespective of which method you use, your end result should look like this:

6851832178aac99ca91b8820 66755c878501ecf769e5de93 AD 4nXc7YgDqDpYUMgQUu6Y1HLIU8z0cQLe0zXZK J0j6q3D7IbF GkgFnYAh w 8m2hwGfrdG2NxvNBLKj TThM1nzIxCtIhj08ytCpdmKNxL A6HhpTfO 2ofcawM21kCnbGCF j1xw eX4LegfyL7z5hwYlsp

Using Clay’s AI formula generator is simple. However, you must be precise with the prompts you input in the formula generator. You want to enter the exact thing you intend to do.

For instance, if you want to sort some data, you must tell the generator to sort the data. The more precise your prompt is, the better the result.

‍

Step-By-Step Guide for Using Clay’s AI Formula Generator

Clay’s AI Formula Generator mainly has three use cases — conditional formula, formatting data, and cleaning data.

‍

#1 Use Case: Conditional Formula

The conditional formula works on a column in the table if a certain condition is true. You don’t need to learn any coding language to use this feature. All you need to do is to make a request and the formula generator turns them into formulas.

Here is an example of how the conditional formula works. The description for this formula is to run a column if some companies in the lead list are in the United Kingdom and their size is equal to 50. After a few seconds, the generated formula is in the “Write your own formula” box as seen in the picture.

6851832178aac99ca91b8832 66755c86df6a9315af062da8 AD 4nXd4Sb5EvwRR24bDpd259urbOwBpI zSHrdQSAGq3Jq186jIFoKFUy60pucptYhRRYcg13uSG1yqjbjk5bfwpXi3sEbOLOv2uLAH2S1ZO190 gEHmO5NtQFal33sWkrLs tARovCbMo9HHTWcgyVAU1y9s3t

Then, you can click “Output is correct. Save formula” and it will show the result in a new column as seen in the picture below.

6851832178aac99ca91b8848 66755c8792d9bfd68f008b94 AD 4nXeImtuyXXLzNFEk5qOwibzdfMP5ONwDRkES5Te6EC mQ58MP7BhpgxdKKq1j7adotMctdlfwTAjYD6lk9PywwKg5 ZNd8J CEg 7dUCMRBeLxasQ o9CrFPmI52l3hnVkRweJODFHXUK5yLgW QGo2xkOYd

Here is another example we used for a lead list comprising people from various companies. The description for this formula is to state the number of days, months, or years that the prospect has spent in a particular role.

The output must be in days if they have spent less than a month. Likewise, the output must be in months if they have spent less than a year. The same rule applies if they have spent more than a year at the company. Below this description is the generated formula and its results.

6851832178aac99ca91b881d 66755c87922f785a75c869d7 AD 4nXfKbbmdqg7q2STJo 6inIdQQgX4YPGKaBoLxAOsM0GPE38ij3OJrQFufrIXUhxcMOZljMDKRyDOuUhAs3WiIjnCJ4U3CszRrwEt48lfgpNbga9E6FXcENxzfhu7LzG39isufEZZEOfN23kCe9CS4XIb2sME

After clicking “Output is correct. Save formula,” here is the result in the “Role Duration” column.

6851832178aac99ca91b882c 66755c874d0c50579efd9a16 AD 4nXcHalo4Z Do016NZg4AaJ s3nuvNAsS UQcj9cvSUS2DcR0ixw5wrqNAUXiAykgGaXrfxG pY2QLO8pGqLVketXxMSZ3aYwWeqBcHoOcWuOdcuCK0i61nYmZ5Mprl0tmjjtkIhhvlflhGklYaFnZrWJtTLL

‍

#2 Use Case: Data Formatting

You can also use the formula generator to format data to your preference. This ensures readability and understanding of the data in the Clay table.

For instance, in a Clay table that features various language companies in the United States and the United Kingdom, we asked the AI to check boxes for companies in the United States.

6851832178aac99ca91b882f 66755c877033a852f671604b AD 4nXeIQGp8BnWFsVJX7C0wunwdKsFzfhq1 i ubuTTSb5vB9gDQ6i7AclSFlgQLfRJLmqzId STRBrDtVaBHicKIZoWLQrRy6yHTRJM 6vcBUvvL9pG ywNYmIvtJ xWz NVUIB32WsJ GED64CqF8IjTTxYgT

The picture is an example of the generated formula for this instruction.

6851832178aac99ca91b8835 66755c87de2d47324bf49bc8 AD 4nXcehifjeFyEl9Pk2YBIOufLsC pvdKC pMlAcyYPB2DtSKYB hGPvq eYc2GpZ7AKJcBx2s kSjpg2T HMmf9FEsn9Mn9ZSyWZDkWXgAUST9CV77K7b4U mAyOJcplP7XucEE8lPl7jyIkZrjN3R rSiBMn

After saving the generated formula, here is the result. The companies in the United States have their boxes checked by Clay’s AI.

6851832178aac99ca91b8829 66755c873dbf329e5291fbd0 AD 4nXcEfd8q4x3mj0hahE1nM4OkO 9DcGixv22Ak2fDYt1s703iJmCMt99BuzYKfZIMAy0PE9GyoOqNNHoIwljv9kwGkc7Og29mEJlAaFmZnuzuPtq2KfdFtrh jRL1CmQVOBjqrhFpbxXkcjrriseBWUZNHUQZ

‍

#3 Use Case: Data Cleaning

Data cleaning enables you to remove incorrect, duplicate, corrupted, or incomplete data within a dataset. With few functions in Clay’s AI formula generator, you can engage in this process and remove unwanted data from your dataset.

In the example below, the goal is to separate the city from the state.

6851832178aac99ca91b8826 66755c86518cb3202055424c AD 4nXeg5yI70WLnnkzW3OV8Jcju8oZqg92DG lC6 gtTv7dl Y Uikxkl 9MkEHFSZyO3xvSeKvOYw42Hi3K5EUqLVPBjhRjIn3jqMeWgc6UY vmv17rPWQ99HDq0ULrHqnnlmEzI5cfTOtssGOdiVglyCOqKxJ

So, the instruction in the formula generator is as follows, “Pull out the city form /location” as seen in the image below.

6851832178aac99ca91b883b 66755c87310995319c81e12c AD 4nXdyQwv4XR1S3igPnBqR xq1FkPNWcFPs0IzGXkNd wUmXnK8R4H PnhxoZXRUIJzftWWT9WsFrsW  w2UJGcxsX5oU9Yh5EPQYGR7qCT8kVFNzAxeTGvzibWQeJ5luf7TztTTc7jqwzJdEcAYQKQLcs60O1

After saving the output, Clay’s AI formula generator extracted the cities from the location into the new column, “City Extraction”.

6851832178aac99ca91b884e 66755c898501ecf769e5e0e6 AD 4nXfN6rhwCXbHb45i O6t3FkLEurOUB9SBrRnBKj5OonyTQwkHtt5v2XQgep3Y4MylVjzch1sGmWK7oxMVkZvxuYswX obvQIID PuuOL1kgvNdWdiDIZmQAHy48NVU1JrgeOyMz0d cb8f1fwIFYLs1s0Cv

‍

Let ColdIQ Help You With Your Sales Prospecting Processes

There you have it. We have used Clay’s AI formula generator for ourselves and many of our clients. If you need help with sales prospecting services, you can talk to us here and get a consultation call with us. We will be happy to help you.

Here is an overview of the perks and services you can expect from working with us:

  • Custom lead generation campaigns
  • We handle and set up your prospecting systems to generate opportunities for your business
  • We teach you prospecting techniques that deliver results for your business.

If this sounds like what you need, book a strategy call with us today.

Michel Lieben
Michel Lieben
Founder, CEO

Michel Lieben is the Founder & CEO of ColdIQ, a B2B sales prospecting agency trusted by 100+ organizations. He’s launched hundreds of outbound campaigns, mastered tools like Clay and Lemlist, and shares sharp, actionable insights on scaling sales with AI, automation, and strategy.

Share article

Talk to a GTM engineer

FAQ

After editing an AI prompt, you must save the formula and then refresh the data view. This ensures the new logic is applied consistently across all relevant rows. Always verify a few entries to confirm accuracy.

More articles

Discover more articles on the same topic.

APR 21, 2026
Top 22 Email Lookup Tools in 2026 - ColdIQ

Email lookup tools are software that enable you to find the email addresses of specific individuals or organizations. This enables you to reach out to prospects and forge collaborations. In business, email lookup plays a crucial role in acquiring your leads' email addresses based on their personal d

Michel Lieben
APR 21, 2026
Prospeo vs. Findymail: Which Email Verifier is Better? [2026]

Finding valid email addresses can be challenging. However, email verifiers like Prospeo and Findymail find quality email data to reach your potential leads. Dive into this detailed comparison guide to make an informed decision.

Michel Lieben
APR 21, 2026
RB2B vs Vector: Which Website Visitor Identification Software is Better? [2026]

RB2B and Vector provide a detailed profile of your website’s visitors. Compare the two products by features, pricing, and reviews to make an informed decision for your business.

Michel Lieben
Available to Hire
User 1
User 2
User 3
User 4
User 5
User 6
User 7

Make your cold emails count

No setup rituals. No DNS sorcery. Just emails that send, land, and look damn good doing it. Get started now. Because why wait?

All there is to know about the latest prospecting techniques

Growth

AgencyAccelerator ProgramInboxes
Grow your revenue

Resources

Tech StackVideo ContentCase StudiesBlogWe're HiringFor Investors

GTM Tools

FREE GTM ToolsColdIQ Exclusive DealsAI Sales ToolsLinkedIn ToolsSales ToolsData SourcesAI Marketing ToolsAI AgentsContact us
Elite Studio - Partner Badge - 2025 - ColdIQ

Free Tools

Email FinderMobile FinderEmail Spam CheckerFind Similar Companies

Get In Touch

[email protected]
@MichLieben
Michel Lieben
@MichLieben
Elite Studio - Partner Badge - 2025 - ColdIQ
Copyright 2026 © ColdIQ LLC.
PrivacyTerms
All rights reserved.