Personalised images in lemlist
Use OKZest with lemlist to show each lead an image with their own details, such as their first name or company. lemlist replaces its variables for each lead when it sends, and OKZest builds the image from those details.
You need: an OKZest account with a saved design that has at least one dynamic text layer, and a lemlist campaign with leads uploaded. If you are new to cold email, read the cold email guide first.
1. Know the lemlist variable format
lemlist variables are written in double curly brackets with no spaces, for example {{firstName}}. Names are case sensitive, so {{firstName}} and {{firstname}} are different variables. Any extra column in your lead file becomes a custom variable, and the column header is its name.
You can add a fallback after a bar, such as {{firstName|there}}, which lemlist shows when a lead has no value.
Source: lemlist: Custom variable format.
2. Use the variable in your design
- Open your design in OKZest and select the dynamic text layer.
- In Text settings, enter a short ID, such as
first_name. - In Merge tag, enter
{{firstName}}, or the variable that matches your lead file. - Enter Default text, such as
there, then save the design.
See Merge tags for the full list of formats, and the email quickstart if you have not made a design yet.
3. Copy the image code from OKZest
- In OKZest, select Share.
- Under Embed your image, select Copy <img>.
- If a yellow Some merge tags are missing box appears, type
{{firstName}}into it and select Save changes, then copy the code again.
The image address looks like this, where first_name is your layer ID:
https://media.okzest.com/img?c=YOUR_COMPANY_ID&i=YOUR_DESIGN_ID&first_name={{firstName}}
4. Paste it into your lemlist email in HTML mode
lemlist's own guide to per-lead images puts an image link in a lead column and uses a variable as the src of an image in HTML mode. With OKZest you do not need a column of image links, because the OKZest address itself carries the variable.
- In lemlist, open your campaign and the email step where the image should go.
- Switch the email editor to HTML mode.
- Paste the
<img>code from OKZest where you want the image and save.
Source: lemlist: Use a variable to send custom images.
lemlist also has its own custom image editor. This page covers using an OKZest image instead.
5. Send a test
- Send a test email to yourself from the campaign.
- Open it and check the image shows your details. If your own lead record has no first name, you see your default text.
Many cold email senders choose text-only first emails because images can affect deliverability. That is a judgement for you to make for your own campaigns. See email content in the cold email guide.
If it does not work
- The image shows the default text for everyone. The variable may be mistyped or the lead has no value for it. Variables are case sensitive, so check the tag in OKZest matches lemlist exactly, with no spaces.
- A broken image appears. Paste the image address into a browser, replacing the variable with a real name such as
first_name=Sam. If it loads, the design is fine and the problem is how the code was pasted. See the troubleshooting page.
What next
- Merge tags: formats for other platforms and layer types.
- Cold email guide.
- Quickstart: email image.