Best practice

How to write questions Lexi answers well

Lexi understands plain language, so there's no special way to ask. A few habits help you get the answer you want first time.

4 min read

Ask the way you'd ask a colleague

You don't need filters, codes or special syntax. Describe what you want to know or who you want to find.

  • "Analyse my best customers from the last 30 days"
  • "Build a segment for new customers in the last 12 months"
  • "Build a segment of customers who have purchased pants but not shirts"

Name the time period

Say which period you mean, such as the last 30 days or the last 12 months. Lexi turns it into exact dates and shows them in the answer, so you can check it covered the right window.

Say what you mean by "new", "best" or "VIP"

Some words can mean more than one thing. "New" could mean a customer's first order or the date they signed up. "Best" could mean highest spend before or after refunds.

Lexi tells you how it read words like these and offers to change it. If you already know what you mean, say it up front, for example "customers whose first order was in the last 12 months".

Answer Lexi's questions

When a request could go more than one way, Lexi checks with you. For example, it might ask whether "shirts" should include the wider Tops category. Reply in chat and Lexi carries on from there.

Build on the answer

You don't need to start again to change something. Add to it in a follow-up message:

  • "this should be for customers only in Australia"
  • "that have more than 2 transactions"

Lexi keeps what it already has and applies the change.

Check the working

Every answer shows how Lexi got there. Open the steps to see what it did, select Show the query on a segment card to see the exact logic, and read the summary for anything Lexi has flagged. Lexi can make mistakes, so check anything important before you act on it.