Clean Last Name

Where to find this variable?

The last name can be found on LinkedIn profiles or extracted from a B2B lead database like lemlist, where individuals’ full names are typically listed. Ensure the data is clean by using the guidelines provided to extract just the last name.

How to use it?

Use the cleaned last name to personalize outreach emails or messages. Proper formatting shows professionalism and respect, which can increase the likelihood of engagement. Automated tools can use this formatted last name to customize each message sent during a campaign.

Use cases

Email Marketing: Enhance email personalization by addressing recipients by their correctly formatted last name.

Customer Relationship Management (CRM) Systems: Store clean data in CRM systems for accurate record-keeping and communication.

Data Analysis: Use clean data for segmentation, analysis, and reporting to understand target demographics better.

The prompt

Clean up the lastname specified in the input.

Ensure the name is properly capitalized, with the first letter in uppercase and the rest in lowercase. Remove any emojis, symbols, or extraneous characters.

Trim unnecessary spaces and ensure no nicknames or unrelated text is included.

The goal is to have a clean, properly formatted lastname.

The output can only be the lastName, don’t make any comments.

If you don't have the information output: N/A

Input: {{lastName}}
Output:

copy prompt

Your input

1. ’smith   ’

2. ‘O’NEIL’

3. ‘Johnson 🚀’

4. ‘’

Your output

1. ‘Smith’

2. ‘O’neil’

3. ‘Johnson’

4. ‘N/A’

How to implement

1
Step 1: Open your “Lead list” in your lemlist campaign.
2
Step 2: Create a new column and select “Create AI column”. Enter the name of your AI variable and click “Save”.
3
Step 3: Paste the prompt and click “Generate”!
Use this prompt in lemlist
Copy this prompt to the clipboard
Why this prompt?
Clean up and format the last name

Related Prompts

Behavior Signals

Perplexity - What is the most recent feature added

What is the most recent feature added by a company
sales
Sales teams
Behavior Signals

Perplexity - which VCs backed a company

Find which VCs have backed a company
founders
Founders & CEOs
Behavior Signals

Recent market reports published

Create catchy messages using new market report insights.
investment
Finance & Investment (VCs, wealth management)

How to leverage the full power of prompts with lemlist AI variables

1

Generate an AI variable from leads

Top 1% sales reps use this AI-powered workflow to automate outreach and book meetings effortlessly.
2

Analyze & sort with AI

Add your prompt or choose the best-performing ones from the library, without leaving the lemlist app.
3

Get clean & segmented info

Segment leads for ultra-targeted approach, craft personalized icebreakers, and clean messy copies.

“Emails generated are short and respect copywriting standards. The AI did some research to add relevant content to the messaging!”

Philippe Araba
Business Developer @Shortways

“The process was very simple, and I like the scripts proposed!”

Lucia Lehmann
Sales Manager @Inside Sales

“Amazing! Especially for a dinosaur in tech like me, it’s magical! Got a full personalized sequence only after 3 minutes!“

Nadja El Fertasi
Consultancy @Thrive with EQ

"Huge time saver - it saves us between 5 and 8 minutes to create personalization per each lead."

Ali Rahmani
Co-Founder @Tango Prospection

"I find the results quite impressive. I only spend a little bit of time to tweak the final copy."

Arnaud Renoux
Founder @The Scalelab