Custom Records · 5 min read · For everyone
Custom Records
Store things a contact can have several of, like loans, policies or bookings, and use them in journeys, segments, messages and agents
Overview#
Custom records hold things a contact can have several of, each with its own dates and amounts. A lender might keep Loans, an insurer Policies, a clinic Appointments.
Each kind of thing is a record type with fields you choose. Every record belongs to one contact, called its owner. Once records are in Lemu you can:
- Start a journey a few days before a due date or renewal date
- Start a journey when a record is added or changes
- Call or message everyone with a matching record, once
- Find contacts by their records in a segment
- Show record values in messages, emails and agent calls
For things that aren't tied to one contact, like products, branches or plans, use a Catalog instead.
Create a record type#
Start a new type
Go to Custom records in the sidebar and click New record type.
Start from a spreadsheet (optional)
Under Have a spreadsheet? Start from it., click Upload CSV or Excel. Lemu sets up the fields from the file's columns and imports its rows once you create the type. The file needs a phone, email or customer ID column so each row can be linked to its contact. Without one, rows can't be imported.
Name it
Enter a Name, such as "Loans". Lemu also makes an API name from it (for example
loans) that you use in the API and in templates.Add fields
List the fields each record has. See Fields below.
Choose the identifier
Under Each one is identified by, pick the field that holds the ID from your own system, like a loan number. Importing or sending a record with the same ID updates that record instead of adding a new one. The identifier must be a Text or Number field.
Create
Click Create record type.
Fields#
Each field has a name, a type and two switches.
| Type | Use it for |
|---|---|
| Text | Names, codes, short notes |
| Number | Amounts, counts |
| Yes / no | Flags such as "autopay on" |
| Date | Due dates, renewal dates |
| Date and time | Appointment times |
| Choice | One value from a fixed set. Type the choices separated by commas, for example active, overdue, closed |
| Link | A web address |
- Required: every record must have a value.
- Personal: the value is kept out of journey data, events and AI prompts, and is hidden from teammates who aren't allowed to see personal data. Use it for things like account numbers.
Lemu also picks up to 5 fields to make quick to filter on in triggers, segments and the records list, choosing dates first.
Changing fields later#
Open the record type and go to Fields & settings. While no records exist, any field can change. Once records exist, a field's type can't change and fields can only be archived: they are hidden but their values are kept. To store something new, add a new field.
Add records#
There are three ways to add records.
By hand#
On the Records tab, click Add record, fill in the fields and give the Owner's phone or email. If no contact has that phone or email, a new contact is created.
Import a file#
On the Import tab, click Choose CSV or Excel file.
- Lemu suggests what each column becomes. Change any column, or set it to Don't import.
- Map at least one owner column: Owner: phone, Owner: email, Owner: your customer id or Owner: Shopify customer id.
- Check the preview of the first 20 rows as they'll be saved, then click Import N rows.
The import runs in the background. The Imports list shows its progress and, when done, how many records were new, updated, unchanged or failed. Open Rows that failed to see why.
Things to know:
- A row with the same identifier as an existing record updates that record.
- A blank cell leaves that field as it is.
- Dates can be
YYYY-MM-DDorDD/MM/YYYY. - New records need the owner's phone or email. A contact is created when no one matches.
From your system with the API#
Send records from your own system with an API key. Each call creates or updates one record by its identifier:
- Fields you send replace the stored value, fields you leave out are kept, and
nullclears a field. - Name the owner with
phone,emailorexternal_id. A new contact can only be created from a phone or email. - Send up to 1,000 records in one call with the batch endpoint.
See Upsert a record for the full request. The How to use tab on each record type shows a ready-to-copy example for that type.
View and manage records#
The Records tab lists every record with its identifier, fields, owner and when it was last updated. Use the search box and Filter to narrow the list, and the icons on each row to edit or delete a record.
Filtering the list#
Press Filter and add rows ("Show only records where"): pick a field, an operator and a value. Text and choice fields have is, is not, is in, is not in (comma-separated values, like Paid, Partly paid), contains, doesn't contain, starts with, is set and is not set; numbers have =, ≠, >, ≥, <, ≤; dates have in the next … days, in the last … days, on, before and after.
Each row after the first has its own and / or. When you mix them, and is checked first: "A and B or C" means "(A and B) or C". The active filters show as chips next to the button, with or between the ones joined by or, and the list shows Loading… while it updates.
When you delete a record, journeys already running for it can still read it for 30 days. After that it is removed for good. Sending it again with the same identifier brings it back.
A contact's records also show on their profile, on the Custom records tab. See Contacts.
Archive or delete a record type#
On Fields & settings, click Archive to hide a record type without losing anything (turn on Show archived on the Custom records page to see it again, and Unarchive to bring it back). Delete record type is only offered while it has no records.
Journeys, segments and templates that use a deleted record type stop finding it.
Use records in journeys and segments#
| You want to | Use |
|---|---|
| Start a journey a few days before or after a date, like 3 days before a due date | Journey trigger Record date |
| Start a journey when a record is added or changes | Journey trigger Record changes (events object_created and object_updated) |
| Call or message every matching record once | A one-time journey with Records as the source |
| Find people by their records | Segment rule Has records |
See Nodes and triggers for how to set these up.
Use records in messages and emails#
A journey that starts from a record (a date, a change, or a records source) has that record as object. Every journey and email also has all of the person's records as objects. Personal fields are left out.
{{ context.object.amount_due }} in journey steps
{{ object.amount_due }} in email templates sent by that journey
{{ objects.loans.count }} how many loans the person has
{{ objects.loans.latest.amount_due }} the most recently updated loanReplace loans and amount_due with your own API name and field. Values are read again before each step, so a message sent after a wait shows the latest numbers.
Limits#
| Limit | Value |
|---|---|
| Fields per record type | 50 |
| Choices in a Choice field | 100 |
| Text field length | 2,000 characters |
| Identifier length | 255 characters |
| Data in one record | 16 KB |
| Records in one batch API call | 1,000 |
| Days before or after a date in a Record date trigger | Up to 365 |
Your plan sets how many record types you can create.
Next steps#
Was this page helpful?
Docs