Importing customers and files with the agent
How to import customers from a spreadsheet with the Lueira Agent, step by step: preparing the file, reviewing the column mapping and the counts, confirming, following progress, downloading the report and what to do if something goes wrong.
On this page
Before you start
The Lueira Agent can import customers from a spreadsheet. You attach the file, it prepares the import, and you review and confirm it: nothing is imported until you press the confirm button.
To get it right:
- Format: modern Excel (.xlsx), CSV or TSV. If your file is an old Excel (.xls) or an OpenDocument sheet (.ods), save it as .xlsx or .csv: "Save the file as .xlsx or .csv and attach it again."
- Size: up to 5 files per message, up to 10 MB each. One import accepts up to 5,000 customers and a sheet can have up to 20,000 rows. If you go over, the card asks you to split the file: "Split it into several files."
- One row per customer, with the column names in the first row. The cleaner the file, the fewer warnings you will see.
- Your role must allow importing customers. If not: "Your role does not allow importing customers. Ask an administrator."
- One import at a time: if one is already running, wait for it to finish.
There is also a daily limit of rows that can be imported with the agent across the whole account (5,000 rows per day). If you reach it, the card tells you how many are left and when it resets: "Only … of … rows are left today for imports with Lueira Agent. The limit resets on …".
💡 The agent does not read your customers' personal data: it works with a masked view (column names, counts and the shapes of values). You can see sample rows on the card.
Importing customers step by step
- Attach the file. In the Lueira Agent chat, press the attach button ("Attach files: images, PDF, spreadsheets or documents") and choose your file. Write something like "Import these customers".
- Answer its questions. It will ask what it cannot know: which sheet to use, the date order (day/month/year or month/day/year) or the default country for phone numbers. You can always type something other than the options.
- Review the import card. At the top you will see the file, the sheet and the number of rows. Below, the counts:
- Rows: those in the file.
- Will be created: new customers.
- Already exist: already in Lueira. They are not modified.
- Duplicates in the file: appear repeated; imported once.
- With errors: will not be imported.
- With warnings: imported, but worth a look.
- Check the column mapping. Press See mapping and warnings. The Column mapping table shows, for each file column, the Lueira field it goes to, the transformations applied (for example "Date day/month/year" or "Trim extra spaces") and how many cells have data. Also look at Lueira Agent's assumptions: what it took for granted.
- Look at sample rows. Press See sample rows (up to 10 rows). Choose which rows to see ("Will be created", "Already exist" or "With errors") and press Show values to see the real data.
- Read the errors and warnings ("Errors and warnings"). For example: "Invalid email: it will not be saved", "Date order inferred, with no unambiguous case", "4-digit postal code: a leading 0 is added" or "Possible duplicate (same phone): created anyway".
- Tick the boxes and confirm (below): Confirm and import N customers.
If more than half of the rows already exist, you will see: "More than half of the rows are already in Lueira. Did you import this file before?" If there is nothing new: "There are no new customers to import."
Not what you wanted? Press Cancel ("Cancelled. Nothing was imported.") or ask the agent to change something, for example "the dates are in month/day/year format".
What is imported and what is not
The data that can be imported into the customer record is: First name, Last name, Legal name, Email, Phone, Tax ID / document, Address, Address (line 2), Postal code, City, Country, Language, Date of birth, Accepts the newsletter and Comment.
- Customers that already exist: not modified or duplicated. They appear as "Already in Lueira: not changed".
- Columns with no matching field: not imported. The card lists them under "Not imported (no matching field in Lueira)". To keep any of them, ask the agent to save it as a line in the customer's comment.
- Sensitive data (for example, bank account numbers): "Sensitive data: never imported".
- Newsletter and marketing communications: "Accepts the newsletter" is only ticked if your file has a column saying the customer consented. It is never assumed.
- Free text: if a text column may contain sensitive information, the card warns you ("Free text: may contain sensitive information (health, etc.)").
Imported customers are recorded as created by the agent on your behalf.
The confirmation boxes
To enable the confirm button you have to tick one or two boxes:
- Consent box: "I confirm my company may process this customer data and that we will not send marketing to anyone who has not consented." It is your confirmation that you have the right to process that data. If you do not tick it: "Tick the confirmation box to continue."
- Second box, only if part of the file will not be imported: "I understand only … of … rows will be imported: the rest have errors or already exist."
If too many rows have errors, the card will not let you confirm: "Too many rows have errors. Fix the file and attach it again."
Then press Confirm and import … customers.
Following progress, stopping and resuming
When you confirm, the import runs in the background. The card shows progress ("Importing… 120 of 800.") and a bar in "rows". You do not need to keep this window open: you will be notified when it finishes. You can also see it in the Background jobs strip under the chat, with a Go to card button.
- Stop: press Stop and confirm with Yes, stop ("Customers already created stay and you can resume it later"). The current row is finished. If you would rather continue: Keep importing.
- Resume: on a stopped import press Resume. The rest will be imported on your behalf.
When it finishes you will see a notification: "Customer import finished: 780 created, 15 already existed, 5 failed." with a View customers button. On the card, View imported customers takes you to them.
If it fails, the card explains why: "The import could not finish: …". Customers already created stay.
⚠️ An import has no Undo button. If you make a mistake, the customers created can be deleted from Customers (or by asking the agent to delete one, which prepares its confirmation card).
Downloading the report
On the card you can press Download review report (CSV). It helps you check, row by row, what is imported, what already existed and what has errors, and to fix the file and try again.
The report depends on the original file. Once it has expired (files are kept for 24 hours), you will see "The report is no longer available: the original file has expired."
Orders from a file
If you attach a sheet of orders, the agent prepares them in a bulk changes card (review it as explained in the bulk changes guide). Keep in mind:
- Orders are created as drafts. Nothing is confirmed, sent or charged: "Orders are created as drafts. Nothing is confirmed, sent or charged."
- A shop line takes stock immediately and cannot be undone from here. Delete or cancel the drafts from Orders.
- If you prepare the same file twice, you can end up with duplicate orders.
Catalogue from a PDF or a photo
You can also attach a PDF or a photo of a price list so the agent creates the products. It reads it and prepares a changes card for you to review. It can misread: compare each price with the document before confirming. This is explained step by step in Updating prices and your catalogue with the agent (spreadsheet, PDF or photo).
Unlike a spreadsheet, PDFs, images and documents are read by the agent.
What to do if…
- "… is an old Excel file (.xls)": save the file as .xlsx or .csv and attach it again.
- "The file is no longer available. Attach it again to prepare the import.": files expire after 24 hours. Attach it again.
- "The file changed since the import was prepared. Ask Lueira Agent to prepare it again.": ask the agent to prepare it again.
- "Too many rows have errors. Fix the file and attach it again.": download the report, fix the file and repeat.
- "The file has more rows than one import allows.": split it into several files.
- "The daily limit of rows imported with Lueira Agent has been reached. Nothing was imported.": wait for the limit to reset (the card says when) or split the import over several days.
- "Another import is running; wait for it to finish.": check the Background jobs strip.
- "This import was already confirmed.": it is running or finished. Check its status.
- "Lueira Agent cannot import data right now." or "Imports are switched off at the moment.": try again later; if it persists, write to us.
- "You no longer have permission to import customers.": your role has changed. Ask an administrator.
- The import stopped halfway: press Resume. If it cannot be resumed ("This import can no longer be resumed"), ask the agent to prepare the rest again: the customers already created will show as "Already exist".
If none of this solves your case, write to us from Support → Talk to us.
Related guides
- Making changes with the agent: the confirmation card
- How to ask the agent: questions, files and tips
- Bulk changes: reviewing a program and following background jobs
- Updating prices and your catalogue with the agent (spreadsheet, PDF or photo)
- Deleting, money and things that can't be undone: how the agent protects you
- Troubleshooting: the agent doesn't appear, doesn't answer or stops
Related guides
- Lueira Agent: what it is, what it does and what it never doesWhat Lueira Agent is, where to find it, what it can do for you (answer questions, analyse your data, import, prepare and make changes with your confirmation), what it never does on its own and how it differs from the Lueira Assistant and from the WhatsApp Agent that serves your customers.
- How to ask Lueira Agent: questions, files and tipsHow to write to Lueira Agent so it understands you the first time, which files you can attach and the limits, how to answer its questions and what to do if it doesn't understand you.
- Analyse your data with the agent: sales, orders, payments and statisticsWhich questions about your business Lueira Agent can answer (orders, payments, VAT, invoices, customers), how to read its answers, how to double-check them and what data it can see depending on your role.
- Help is always there: guides, videos, diagnostics and talking to the teamHow to get help inside Lueira: the Guides and Videos panels, how-to questions, Diagnose and Setup health, the Talk to support button and what happens to help when you reach the agent's usage limit.
- Your conversations: history, search, archive and continueHow to find and manage your conversations with Lueira Agent: the list grouped by date, search, pin, rename, archive (with Undo), delete, what happens when a long conversation continues in a new session, and the wide view.
- Making changes with the agent: the confirmation cardHow the card the Lueira Agent uses to ask for your confirmation works: what it shows, which buttons you have, what happens after you confirm and why nothing is touched until you decide.