burger
Features

Every tool you need for AI sales outreach

Independent AI sales assistant

An extra pair of hands for your sales growth

Our best AI emails

Clients' favorite emails generated by AiSDR

AiSDR Website Illustrations | Growth icon 111
Case studies

See the real results from our clients

AiSDR Website Illustrations | Starts and lightning icon 1
Speak with our AI

Let AiSDR try and convince you to book a meeting with us

Explore Q2 2024 outreach benchmarks Grab my copy
Explore Q2 2024 outreach benchmarks Grab my copy
<Back to blog

Using Generative AI to Clean a CSV File

Using Generative AI to Clean a CSV File
Jun 13, 2024
By:
Oleg Zaremba

Ever cleaned a csv? It’s a headache, which is exactly why AiSDR turns it over to AI. Find out how we did it from our CTO

2m 52s reading time

With generative AI, you can quickly clean and process massive lead lists in minutes.

But before you can do this, you’ll need to do a bit of prep work.

Don’t worry though. The time you invest now will pay huge dividends in the long run.

After all, manually cleaning a lead list can take you hours, and you could still have mistakes and typos at the end of the day. 

At AiSDR, we’ve delegated CSV cleaning completely to generative AI. In addition to saving us considerable time that we repurpose for product development, we also cut down on the number of innocent mistakes and typos.

TLDR: 

  • The goal: Clean a messy CSV file
  • The tactic: Set up generative AI to clean the CSV file
  • The result: Get a CSV that contains your data in a clean and readable format

Step 1: Design a Prompt for Generative AI

This is the hardest and most time intensive step as it will require a bit of testing, as well as trial and error.

Essentially, your prompt will instruct generative AI about what to do and what not to do.

For example:

You are a csv parser and cleaner that follows these rules:

  • Never change the values of fields
  • Output columns must be in the following order: First name, Last name, Email
  • No other columns must be present

Here we’ve told generative AI:

  • What it’s doing (i.e. “You’re a csv parser and cleaner”)
  • Rules (i.e. “Never change values”)
  • Expected output (i.e. “Output columns must be in the following order”)

This is just the start of the prompt though. You’ll need to add additional instructions based on your testing results.

Subscribe to our Newsletter
Get the latest product updates, company news, and special offers delivered right to your inbox.

Step 2: Feed Common Mistakes and Typos into Generative AI

People make mistakes, which means data entry can get a bit messy.

If you’ve collected enough lead data and consistently worked with CSVs, chances are you’ve noticed certain errors occur with some degree of regularity.

Consider these examples:

  • John Smith, Ph.D.
  • Nike, Inc.
  • 11/12/2024

Each example is written correctly. However, each example can cause an error during CSV import and cleaning.

CSV files separate values using commas, so generative AI will misread the info and cause “Ph.D.” and “Inc.” to get entered into the wrong column. You can tell generative AI that these cases can happen and what to do if it comes across them.

As for the date, it will produce an error depending on your location. If you’re in the United States, then “11/12” means “November 12”, but if you’re in Europe, “11/12” is “December 11”. Accordingly, you’ll want to specify to generative AI your expected date format.

Step 3: Provide an Example of a Good CSV

Generative AI models function best when they’re able to work off of an example.

If you already have a CSV lead list, then you’re set and you can use it as the example. Alternatively, you can create a small CSV with 5-10 rows of imaginary lead data. This should be enough to get the point across to generative AI.

However, keep in mind that the example should be “perfect”. Otherwise, generative AI could build errors into future files.

The Result

If everything works as expected, you should be able to:

  • Upload any CSV file containing lead data to generative AI
  • Have generative AI clean the file for you based on your criteria
  • Download the resulting file
Book more, stress less with AiSDR
Check out how AiSDR will run your sales
GET MY DEMO
helpful
Did you enjoy this blog?
TABLE OF CONTENTS
1. Step 1: Design a Prompt for Generative AI 2. Step 2: Feed Common Mistakes and Typos into Generative AI 3. Step 3: Provide an Example of a Good CSV 4. The Result
AiSDR | Website Illustrations | LinkedIn icon | 1AiSDR Website Illustrations | LI iconAiSDR | Website Illustrations | X icon | 1AiSDR Website Illustrations | X iconAiSDR | Website Illustrations | Insta icon | 1AiSDR Website Illustrations | IG icon 2AiSDR | Website Illustrations | Facebook icon | 1AiSDR Website Illustrations | FB icon
link
AiSDR Website Illustrations | Best AI Tools for Primary and Secondary Market Research | Preview
Get an AI SDR than you can finally trust. Book more, stress less.
GO LIVE IN 2 HOURS
You might also like:
6 Lessons Learned from 6 Years of Founder-Led Sales
6 Lessons Learned from 6 Years of Founder-Led Sales
Yuriy Zaremba
Yuriy Zaremba •
Aug 2, 2023 •
8m 57s
The hits and bumps coming from working on various projects with various problems with or without budget boiled down to 6 key lessons
Read blog>
How AiSDR Rebuilt a Client’s Sender Reputation for Cold Outreach
How AiSDR Rebuilt a Client’s Sender Reputation for Cold Outreach
Viktoria Sinchuhova
Viktoria Sinchuhova •
Jun 20, 2024 •
3m 7s
If your sender reputation tanks, it's not the end of the world. Here's how our customer success team rebuilt a client's sender reputation
Read blog>
The Secret to Ultra-Fast Startup Growth
The Secret to Ultra-Fast Startup Growth
Yuriy Zaremba
Yuriy Zaremba •
May 9, 2024 •
5m 5s
What's the secret sauce to unlocking ultra-fast startup growth? Find out from our CEO
Read blog>
Using an AI to Validate Another AI’s Output
Using an AI to Validate Another AI’s Output
Oleg Zaremba
Oleg Zaremba •
May 16, 2024 •
3m 38s
Generative AI can be unreliable at times. Use this shortcut to quickly validate the quality of AI outputs
Read blog>
See how AiSDR will sell to you.
Share your info and get the first-hand experience
See how AiSDR will sell to you