LemuAI docs

LemuAI user guide

Every guide, recipe and troubleshooting page: how to set up and use LemuAI, and how to fix what goes wrong.

Checked against LemuAI app version 1.0.53. The latest version is always at https://docs.lemuai.com. Plain-text copies for AI assistants: https://docs.lemuai.com/llms-users.txt

Introduction

Reach customers by voice, WhatsApp and email with AI agents and journeys built on your own customer data

https://docs.lemuai.com/getting-started

About Lemu AI#

Lemu AI is a platform for building voice AI agents and journeys: conversational phone agents backed by an easy drag-and-drop workflow builder, plus a journey layer that can trigger calls, messages, and HTTP actions from your own data and events.

Lemu AI is multichannel. Voice agents handle calls, and journeys can also send WhatsApp messages and email, and pick up replies in the Inbox. Your audience comes from your own customer data: contacts with their consent for each channel, segments that update themselves as people match your rules, and custom records such as orders or subscriptions. Events from your system, your Shopify store and the website pixel keep that data current.

With Lemu AI you can:

  • Design a conversation flow visually and connect a phone number in minutes
  • Run calls at scale with campaigns, using your own contact lists
  • Extend beyond voice with journeys that send WhatsApp messages and email, call APIs, and react to events, webhooks and schedules
  • Build agents, journeys, tools and contact lists from one chat with AI Copilot
  • Test your agents automatically with AI personas before they ever talk to a real caller

Getting started#

  1. Sign in at app.lemuai.com
  2. Create your first voice agent: talk through your use case with the AI Copilot and it builds the starting workflow as you speak
  3. Test it with a web call or phone call directly from the builder
  4. Connect a telephony provider to take real calls. See Telephony

Next Steps#

Use these docs with AI

Give ChatGPT, Claude, Gemini, Cursor or any AI assistant the LemuAI docs, so it can walk you through any task or error step by step.

https://docs.lemuai.com/getting-started/use-with-ai

Every page of these docs is written so an AI assistant can read it and help you: exact menu paths and button names, every field explained, worked examples, and every error message quoted exactly as the app shows it. Give your assistant the docs, describe what you want or paste the error, and it can guide you.

Four ways to get the docs#

1. One page#

At the top of every page:

  • Open in ChatGPT or Open in Claude opens a new chat that has already been asked to read this page.
  • Copy page copies the page as plain text (Markdown) to paste into any assistant.
  • Markdown opens the same text in a new tab. Any page's address followed by .md works too, for example https://docs.lemuai.com/segments/overview.md.

2. Everything at once#

Copy all docs for AI (top of every page) copies every page for your audience into one block of text to paste into a chat. Or give the assistant one of these links:

FileWhat's in itUse it for
/llms-users.txtEvery guide, recipe and troubleshooting pageDoing things in the app, fixing errors
/llms-developers.txtThe API reference, SDKs, events, webhooks, MCPBuilding on LemuAI with code
/llms-full.txtAll of the aboveAssistants with a large context
/llms.txtA short index of every page with a one-line summaryLetting the assistant pick the pages it needs
/openapi.jsonThe public REST API as an OpenAPI 3 fileCoding assistants, Postman, code generators

Assistants that can browse (ChatGPT, Claude, Gemini, Perplexity) can read these links directly; others need the text pasted in.

3. Inside your editor or AI app#

  • Cursor, VS Code, Windsurf: add https://docs.lemuai.com/llms-developers.txt as a docs source (in Cursor: @Docs → Add new doc).
  • Claude or ChatGPT connected to your workspace: the LemuAI MCP server also has a search_docs tool, so the assistant can look up these docs while it works in your workspace.

4. On paper or as a PDF#

The whole user guide and the developer reference are also each on one printable page: /handbook/guide and /handbook/developers. Open one and use your browser's Print → Save as PDF. They're built from the same pages as this site, so they're always current.

How big the files are#

llms-users.txt is about 90,000 words and llms-developers.txt about 35,000. Claude, Gemini and ChatGPT's larger models read them whole. For assistants with a smaller limit, give one page (Copy page) or a few pages from /llms.txt instead.

Prompts that work well#

Copy one, fill in the brackets, and send it with the docs.

Do something in the app

Text
Using the LemuAI docs at https://docs.lemuai.com/llms-users.txt,
walk me through [sending a WhatsApp reminder 3 days before each EMI due date].
Give me the exact menu path and button names for each step,
tell me what I need set up first, and how to check it worked.

Fix an error

Text
I use LemuAI. I got this error: "[paste the exact message]"
I was [what you were doing, e.g. sending a WhatsApp campaign].
Using https://docs.lemuai.com/llms-users.txt (the Troubleshooting pages quote every message),
tell me what it means, why it happened, how to fix it, and who in my team can fix it.

Plan a campaign

Text
Read https://docs.lemuai.com/llms-users.txt. I run [a footwear brand selling to retailers in North India].
Suggest 3 journeys I should build in LemuAI to [win back retailers who haven't ordered in 60 days],
with the trigger, each step, and the segment rules, using only features the docs describe.

Write code against the API

Text
Using https://docs.lemuai.com/llms-developers.txt and https://docs.lemuai.com/openapi.json,
write a [Python] script that sends a Purchase event to LemuAI for each new order in my system,
with retries and the right headers.

Explain in my language

Text
Read https://docs.lemuai.com/segments/overview.md and explain in simple Hindi
how to make a segment of customers who ordered twice but not in the last 30 days.

Tips#

  • Paste the exact error. The troubleshooting pages quote messages word for word, so the assistant can match them.
  • Say what you were doing and which page of the app you were on.
  • Ask it to quote the docs page it used, so you can check.
  • If the assistant suggests a button or menu that doesn't exist, tell it to use only what the docs say. The docs reflect the app version shown at the bottom of each page.

Glossary

What every LemuAI term means, in one place: contacts, segments, records, journeys, runs, consent, the 24-hour window, balances and more.

https://docs.lemuai.com/getting-started/glossary

Terms are in alphabetical order. Each links to the page that explains it in full.

TermMeaning
24-hour windowWhatsApp lets you send free-form messages only within 24 hours of the customer's last message. After that, only approved templates. Also called the reply window or customer service window
A/B splitA journey step that splits contacts between 2 to 5 branches by weight, to see which message or timing works better. Each contact always gets the same branch
Ad audienceA segment kept in sync with a Meta or Google ad audience. See Ad audiences
AgentSee Voice agent
Allowed hoursThe hours and days a journey may call, message or email, per channel, in its time zone. Outside them, steps wait
API keyA secret that lets your own systems use the LemuAI API (X-API-Key header). Created under Settings → API Keys. See Authentication
Attribution windowHow long after a message or answered call an order is still credited to it (default WhatsApp 72 h, email 120 h, calls 72 h). See Journey goals and revenue
AutopilotCopilot launching and running campaigns on its own, within a budget you set. See Autopilot
BalancePrepaid money or credits for a channel: Voice minutes, WhatsApp balance, Email credits, SMS credits, AI balance. Added under Usage & Plan → Usage & balances
Calculated fieldOne number or date per contact worked out from their events or records, like total spent. See Calculated fields
Caller IDThe phone number your calls come from. Must be a number on your telephony provider account
CampaignCalling, WhatsApp-ing or emailing a list or segment once. Under Engage → Campaigns (Voice, WhatsApp, Email tabs). See Campaigns
CatalogYour products (or any items) with price, stock, image and link, often synced from Shopify. See Catalog
ConsentWhether a contact agreed to be contacted on a channel (WhatsApp, email, calls). Marketing needs a yes; an opt-out is always respected
ContactOne person, found by phone, email or external ID. See Contacts
Conversion eventThe event that counts as an order for revenue, Purchase by default. See Sending Limits
CopilotThe AI in the app that plans and builds agents, journeys, segments, templates and campaigns from a chat. See AI Copilot
Custom fieldYour own field on a contact, like city or loyalty_tier
Custom recordSomething a contact has several of, like orders, loans or bookings, in a record type you define. See Custom Records
DispositionThe outcome a call ended with, like interested or call back
EventSomething a contact did, like Purchase, AddToCart or link_clicked, with properties. See the Event Log
ExperienceA popup, bar, block or widget on your website. See Experiences
External IDThe ID of a person in your own system (CRM, store), used to match updates to the right contact
Extraction / variablesDetails a voice agent saves from a call, like preferred_date. See Agent Node
Frequency capThe most marketing messages (or calls) one contact gets on a channel in a period. Set under Settings → Sending Limits
Global NodeInstructions every step of a voice agent follows. See Global Node
InboxWhere your team and the AI assistant read and answer WhatsApp conversations. See Inbox
JourneyAutomatic steps (calls, messages, waits, conditions) that run for each contact who qualifies, from a trigger. See Journeys
Landing pageA web page built in LemuAI with a form. See Landing pages
LinesHow many calls your telephony account allows at the same time
ListA named group of contacts you add people to (by import, sheet or hand)
MCPA way for AI assistants like Claude or ChatGPT to use your LemuAI workspace. See AI Assistants (MCP)
Offer / offer headA discount and its code; the head is the slot messages link to ({{ offer.welcome.code }}). See Offers
Opted outA contact who asked not to be contacted (on one channel or all). LemuAI never sends to them on that channel. On WhatsApp an opt-out stops marketing; replies, order updates and codes still go
PredictionChurn risk, next order date, lifetime value and RFM, per buyer. See Predictions
Quality ratingMeta's rating of a WhatsApp number, lowered when people block or report messages
Record typeThe definition of a kind of custom record (its fields and key), like loans
RFMRecency, frequency and monetary scores (1-5) and segments like Champions or At risk
RoleWhat a team member can do: Owner, Admin, Member, Editor, Viewer or Finance. See Team
RunOne go through an agent (a call) or a journey (one contact). See Runs
SegmentA live group of contacts that match rules, updated every 15 minutes. See Segments
SenderThe email address emails come from, on a verified domain. See Email Setup
Step / nodeOne box in a journey or voice agent
SuppressedAn email address LemuAI won't send to, after a hard bounce or spam complaint
Telephony providerThe phone company account calls go through (Plivo, Exotel, Twilio…). See Telephony
Template (WhatsApp)A message approved by Meta, needed outside the 24-hour window and for marketing. Has variables like {{1}}
Template variableA {{…}} placeholder filled in per contact, like {{first_name}}. See Template Variables
ToolSomething a voice agent can do during a call: transfer, end the call, call your API, look up a catalog. See Tools
Tracking sourceYour website or app sending events to LemuAI (snippet or SDK), with a write key. See Tracking Sources
TransactionalOrder and account updates, as opposed to marketing. Transactional emails don't need marketing consent
TriggerWhat starts a journey: an event, entering a segment, a WhatsApp message, a record date, a schedule, a webhook…
Voice agentAn AI that makes or answers phone calls, built from steps with prompts. See Voice Agent Builder
Workspace / organizationYour company's space in LemuAI, with its own contacts, agents, journeys and team. You can belong to several

What's new

Changes in each LemuAI app version, newest first. The version you're on is shown at the bottom of the app's sidebar.

https://docs.lemuai.com/getting-started/whats-new

The app's version is at the bottom of the sidebar. Each docs page says which version it was last checked against.

1.0.12#

  • Segments: the rule types now say where they look: In a list (Contacts) and Has records (Custom records). The rule type picker is wider so the names fit. See Segments.

1.0.11#

  • All contacts: Audience → Contacts opens on All contacts, with search across name, phone (including the last 4 digits), email, company and external ID, and sortable columns. See Contacts.
  • Contact timeline: a contact opens on a Timeline of orders, website visits, WhatsApp, email and SMS messages (with their text) and calls, with filters by kind.
  • Custom records filters: each filter row has its own and / or; "and" is checked first. The and/or picker is wider. See Custom Records.
  • API: List Contacts takes up to 500 per page and sort_by / sort_dir; Contact Messages returns each message's text.

1.0.10#

  • Custom records filters: filters can be joined with or; the filter box no longer moves while you type; the list shows Loading… while it updates.

1.0.9#

  • Segments: is in and is not in with comma-separated values (up to 500), and an and / or picker between rules and groups.
  • Journeys: Catalog lookup can find an item by other columns (Find the item by), not only its key. See AI, conversation, data and ticket steps.
  • Inbox: a WhatsApp-style thread, with template messages showing their text, ticks, day chips, and Enter to send. See Inbox.

Earlier#

Earlier versions added, among others: Offers, Experiences and Landing pages, Ad audiences, Predictions and calculated fields, journey goals and link tracking, Copilot autopilot, the Lemu Tickets integration, app SDKs and standard conversion events, and the Event Log side panel.

How Lemu Works

The big picture, from your customer data to a call, message or email and its result

https://docs.lemuai.com/core-concepts/how-lemu-works

Lemu is a platform for building and running voice AI agents. You define a conversation flow, connect a phone number, and Lemu handles the rest: transcribing the caller's speech (STT), generating intelligent responses (LLM), speaking them back in a natural voice (TTS), and returning structured results when the call ends.

Voice, WhatsApp and email#

Calls are one channel. Journeys decide who to reach, when and how: a journey can place a call with a voice agent, send a WhatsApp message or an email, wait, and branch on what happened. Replies come back to the Inbox.

The audience is your customer data:

  • Contacts: the people you reach, matched across phone, email, your own ids and website visits, with consent recorded for each channel.
  • Segments: groups defined by rules (for example "ordered in the last 30 days"), kept up to date as people match or stop matching.
  • Custom records: orders, subscriptions, bookings and other data linked to a contact, which journeys, segments and messages can use.

Events keep this data current. They come from your own system through the API, from Shopify, from the website pixel, and from every message and call. You can see them in the Event Log.

The rest of this page explains what happens during a call.

The core loop#

  1. 1

    Dashboard / your app triggers a call

  2. 2

    Telephony provider dials the contact

  3. 3

    Audio streams to Lemu

  4. 4

    STT → LLM → TTS on every turn

  5. 5

    Extract context, fire webhooks

  6. 6

    Run record (transcript, recording, gathered data)

Key components#

Workflows (Agents) The conversation logic. A workflow is a graph of nodes (conversation steps) connected by edges (conditional transitions). You define what the agent says, when it moves on, and what data it collects.

Runs Every execution of a workflow creates a run. The run record holds the transcript, recording, extracted data, and cost information.

Telephony The phone infrastructure. Lemu connects to your telephony provider (Twilio, Vonage, etc.) to place and receive calls. The audio streams between the caller and Lemu in real time.

Transcriber (STT) Converts the caller's speech to text in real time. Lemu sends the audio stream to your configured speech-to-text provider and uses the transcript to drive both the LLM and the final run record.

LLM Provider Processes the transcript and the active node's prompt to generate the agent's next response. It also evaluates edge conditions to decide when to move the conversation forward.

Voice Synthesizer (TTS) Converts the LLM's text response to audio and streams it back to the caller. The choice of TTS provider and voice is configurable per agent.

How it fits together#

When you trigger a call:

  1. Lemu instructs your telephony provider to dial the number
  2. When the caller answers, a real-time audio pipeline opens
  3. The caller's speech is transcribed by the STT provider
  4. The transcript is sent to the LLM with the active node's prompt and conversation history
  5. The LLM responds, and the response is synthesized to audio by the TTS provider and streamed to the caller
  6. When an edge condition is met, Lemu transitions to the next node
  7. When an end node is reached, the call ends
  8. Post-call: context is extracted, webhooks fire, the run record is saved

Next steps#

Workflows & Agents

How conversation flows are defined in Lemu

https://docs.lemuai.com/core-concepts/workflows-and-agents

In Lemu, what you see as an agent in the dashboard is called a workflow in the API. They are the same thing — a workflow is the underlying definition, agent is the product name for it.

Anywhere the API says workflow, think "agent". Anywhere the API says workflow_definition, think "the conversation logic inside your agent".

The graph model#

A workflow is a directed graph — a set of nodes connected by edges.

  1. 1

    Start Call

  2. 2

    Qualify Intent

  3. 3

    Then one of

    Wants support

    Support Agent

    Wants sales

    Sales Agent

  4. 4

    End Call

Nodes are the steps in the conversation. Each node has a prompt that tells the LLM what to say and do at that point.

Edges are the transitions between nodes. Each edge has a condition — a natural language description of when to move on. The LLM evaluates whether the condition has been met based on the conversation so far.

Node types#

TypeWhat it does
startCallEntry point for telephony calls. The first thing the agent says when a call connects
agentNodeAn LLM-powered conversation step. The core building block
globalNodeDefines instructions that apply across all agent nodes (e.g. tone, language, fallback behaviour)
endCallTerminates the call
triggerEntry point for API-triggered runs (non-telephony)
webhookFires an HTTP request when reached — use for CRM updates, notifications, etc.
qaRuns automated quality analysis on the completed call

Edges and transitions#

An edge connects two nodes and fires when its condition is satisfied:

Edge configuration

transition_speech is optional — if set, the agent speaks it before moving to the next node.

Versioning#

Every time you update a workflow's workflow_definition, Lemu saves a new version while keeping the history. The current version is always what runs. Old versions are retained for auditing.

Creating workflows#

There are two ways to create a workflow via the API:

  • From a definition — provide the full node/edge graph yourself. Best for programmatic generation.
  • From a template — describe the use case in natural language and Lemu generates the initial graph using an LLM. Best for getting started quickly.

Calls & Runs

The lifecycle of a call and how runs capture its results

https://docs.lemuai.com/core-concepts/calls-and-runs

Every time a workflow executes, Lemu creates a run. The run is the record of that execution: what was said, what data was collected, how long it took, and what it cost.

Calls vs runs#

A call is the audio connection — whether over the phone via a telephony provider, or through the browser via Web Call.

A run is the Lemu record of the workflow execution. Every call — outbound, inbound, web, or campaign — creates a run with the same contents: transcript, recording, gathered context, usage, and cost. Campaign runs are additionally linked to their parent campaign.

Call lifecycle#

The call lifecycle tracks the telephony connection — from the moment a number is dialed to when the line drops.

  1. 1

    Ringing

  2. 2

    Connected

  3. 3

    Ended

A ringing call can also go straight to Ended on no answer or voicemail — without ever reaching Connected.

For inbound calls, the flow starts when the caller dials in and the telephony provider routes the call to Lemu.

Inbound vs outbound#

Outbound calls are initiated by Lemu — you trigger them via the API or dashboard with a phone number and agent. Used for proactive outreach, reminders, and campaigns.

Inbound calls are initiated by the caller — your telephony provider routes incoming calls to a Lemu agent via a webhook URL. Used for support lines, hotlines, and IVR replacement.

Web Calls#

Web Call lets you talk to your agent directly from the browser — no phone number or telephony setup required. It runs the full pipeline: STT, LLM, TTS, recording, and transcript, exactly the same as a phone call.

Use it to try out your agent before going live. The run view shows the live transcript as the conversation progresses, node transitions as the workflow moves through the graph, and any tool or function calls the agent makes in real time.

What a run contains#

After a call completes, the run record includes:

FieldDescription
statusFinal run state
recording_urlDownload URL for the call audio
transcript_urlDownload URL for the conversation transcript
gathered_contextStructured data extracted by the agent during the call
initial_contextThe data passed in when the call was triggered
usage_infoDuration in seconds, token count
cost_infoCost in USD

Context & Variables

How data flows into, through, and out of a conversation

https://docs.lemuai.com/core-concepts/context-and-variables

Lemu has a simple data model for passing information through a call. Understanding it is key to building agents that feel personalised and to extracting useful results after a call.

The three context objects#

Text
initial_context ──► Agent ──► gathered_context
                       │
                 [template variables](/voice-agent/template-variables)
                 (used in prompts)

initial_context#

Data available to the agent before the call starts — the contact's name, account details, appointment information, anything the agent should know upfront. It can be set from several places:

  • API trigger — pass it in the request body when calling POST /public/agent/{uuid} or POST /telephony/initiate-call
  • Campaign CSV — columns beyond phone_number automatically become initial_context fields for each contact's call
  • Dashboard — set default template context variables on the agent, used when no external context is provided
JSON
{
  "phone_number": "+14155550100",
  "initial_context": {
    "customer_name": "Jane Smith",
    "plan": "premium",
    "renewal_date": "April 1"
  }
}

Template variables#

Values from initial_context are available in your agent's prompt using {{double_brace}} syntax.

Text
You are calling {{customer_name}} about their {{plan}} plan,
which renews on {{renewal_date}}. Be friendly and confirm
whether they'd like to continue.

When the call starts, Lemu substitutes the values before sending the prompt to the LLM — so the agent speaks naturally as if it already knows the contact.

gathered_context#

Data the agent collects during the call. You configure what to extract in the agent node's extraction settings — each variable has a name, type, and a prompt that tells the LLM what to look for.

Extracted variables

gathered_context is returned in the run record after the call completes and is available in webhook payloads for downstream processing.

Data flow example#

  1. 1

    Your system sends initial_context (e.g. customer_name, plan)

  2. 2

    Lemu substitutes placeholders into the agent prompt

  3. 3

    LLM responds turn by turn

  4. 4

    Lemu extracts gathered_context (e.g. renewal_confirmed)

  5. 5

    Run record with gathered_context goes back to your system

Where variables are available#

LocationVariables available
Agent node promptsinitial_context fields via {{variable_name}}
Edge conditionsEvaluated against the live conversation — no explicit variable syntax needed
Webhook payload templatesAll context objects via {{initial_context.field}}, {{gathered_context.field}} etc.
Campaign CSV columnsCSV columns beyond phone_number become initial_context fields automatically

Campaigns

Running a voice agent against a list of contacts at scale

https://docs.lemuai.com/core-concepts/campaigns

A campaign is how you run a workflow against many contacts automatically. Instead of triggering calls one by one via the API, you upload a list of phone numbers and Lemu dials them for you — respecting scheduling windows, concurrency limits, and retry rules.

How a campaign works#

  1. 1

    Contacts CSV

  2. 2

    Upload to Lemu

  3. 3

    Create Campaign

  4. 4

    Scheduling & Concurrency

  5. 5

    Outbound Calls

  6. 6

    Run Records

  7. 7

    Progress & Reports

  1. Upload a contacts CSV — must have a phone_number column; any extra columns become initial_context for each call
  2. Create the campaign — link it to a workflow, set concurrency, time slots, and retry behaviour
  3. Start it — Lemu begins dialing contacts up to your concurrency limit
  4. Monitor progress — track processed, completed, failed, and pending counts in real time
  5. Pause and resume — stop and restart at any point without losing progress

The contacts CSV#

The CSV drives the campaign. Each row is one contact.

csv
phone_number,customer_name,account_id,plan
+14155550100,Jane Smith,acc_001,premium
+14155550101,Bob Jones,acc_002,basic

Columns beyond phone_number are automatically passed as initial_context to each call, making them available as template variables in your agent's prompt — so each call can feel personalised at scale.

People who opted out#

Lemu doesn't call contacts who opted out of calls or of everything, whether the campaign uses a contact list, a Google Sheet or a CSV file (matched by phone number). They're left out when the campaign loads its rows. Someone who opts out while the campaign runs is skipped just before their call, and that row counts as failed.

Scheduling and concurrency#

Concurrency controls how many calls run simultaneously. It's capped by your telephony plan. Set it conservatively to start.

Time slots restrict when Lemu is allowed to dial — useful for respecting business hours or regulations:

JSON
{
  "timezone": "America/New_York",
  "time_slots": [
    { "day": "monday", "start": "09:00", "end": "17:00" },
    { "day": "tuesday", "start": "09:00", "end": "17:00" }
  ]
}

If no time slots are set, Lemu dials continuously once the campaign is started.

Retry behaviour#

Lemu can automatically retry contacts who didn't answer, were busy, or went to voicemail:

JSON
{
  "retry_config": {
    "max_attempts": 3,
    "retry_interval_minutes": 60
  }
}

Circuit breaker#

The circuit breaker automatically pauses a campaign when the call failure rate gets too high — protecting against wasted spend and telephony reputation issues caused by a misconfigured agent or a bad contact list.

When enabled, Lemu monitors the failure rate within a rolling time window. If it exceeds the threshold, the campaign is paused automatically and must be manually resumed after the issue is investigated.

SettingDefaultDescription
Failure Threshold (%)50Pause when the failure rate within the window exceeds this percentage
Window (seconds)120Rolling time window over which the failure rate is calculated
Min Calls in Window5Minimum number of calls required before the circuit breaker can trip — prevents false positives on small samples

A campaign paused by the circuit breaker behaves the same as a manually paused campaign — in-flight calls complete normally, and it can be resumed once the underlying issue is resolved.

Campaign lifecycle#

StatusMeaning
draftCreated but not started
runningActively dialing
pausedStopped; resumes from where it left off
completedAll contacts processed
failedEncountered a fatal error

You can pause and resume a campaign at any time. In-flight calls complete normally before a pause takes effect.

Results#

Each contact's call creates a run record with the full transcript, recording, and gathered context, the same as a manually triggered call. Open the campaign in the dashboard to see every call and its outcome. To receive results in your own system as calls finish, add a Webhook node to the agent.

Recipes

Step-by-step setups for common goals: COD confirmation calls, abandoned carts, EMI reminders, repeat-buyer segments, order lookups and win-backs.

https://docs.lemuai.com/recipes/overview

Each recipe is a complete setup for one goal: what you need first, every step with the exact menu paths, how to check it worked, and what usually goes wrong. Change the names, messages and numbers to fit your business.

RecipeWhat you'll haveChannels
COD order confirmation callAn AI call confirms each cash-on-delivery order and tags it in ShopifyCall, WhatsApp
Abandoned cart on WhatsAppA WhatsApp reminder an hour after checkout is left, stopped if they buyWhatsApp, email
EMI or payment reminder from a Google SheetReminders 3 days before each due date, with the sheet updatedWhatsApp, call
Repeat buyers in DelhiA live segment of customers in Delhi who ordered at least twiceAny
Look up an order or product in a journeyA journey that finds the product or order and uses its details in the messageWhatsApp
Win back inactive retailersRetailers who haven't ordered in 60 days get a WhatsApp offer, then a callWhatsApp, call

New to journeys? Read Journeys first. Stuck on an error? See Troubleshooting.

COD order confirmation call

An AI voice agent calls every cash-on-delivery order a few minutes after it's placed, confirms or cancels it, and tags the order in Shopify.

https://docs.lemuai.com/recipes/cod-confirmation-call

At the end you'll have a journey that, five minutes after a cash-on-delivery (COD) order, calls the customer, confirms the order (tag cod-confirmed) or cancels it with the reason, and sends a WhatsApp message if nobody answers. Fewer fake orders and fewer returned parcels.

Before you start#

  • Your Shopify store connected under Settings → Integrations (see Shopify), with Order placed events on. To confirm or cancel orders, the app needs the write_orders permission.
  • Telephony set up under Voice Agents → Telephony with a caller ID (see Telephony), and Voice minutes in Usage & Plan.
  • For the fallback message: WhatsApp connected and an approved template, for example "Hi {{1}}, please confirm your order {{2}} of ₹{{3}}" with Confirm and Cancel buttons.

Steps#

  1. Create the voice agent

    Open Voice Agents → Agents and create an agent named COD confirmation (Copilot can build it: "An agent that confirms cash on delivery orders in Hindi or English").

    In Start Call:

    • Greeting: Namaste {{first_name}}, this is Riya from Asian Footwears about your order {{order_name}}. (use your store's name)
    • Prompt: Confirm the customer wants the order of {{total_price}} rupees delivered with cash on delivery. If yes, thank them. If they want to cancel, ask why politely.
    • Enable Variable Extraction: confirmed (Boolean), cancel_reason (String).
  2. Create the journey

    Open Engage → Journeys → New Journey. Choose the trigger Events, event Purchase, with the condition payment_method is cod. Set the delay to 5 minutes and add shopify.order.cancelled as an exit event, so a cancelled order isn't called.

  3. Add the call

    Add a Call step: choose the COD confirmation agent and phone {{context.phone}}. List the variables the agent's prompts use (first_name, order_name, total_price) so they're filled from the order event, and confirmed and cancel_reason as outcomes to bring back into the journey.

  4. Act on the answer

    From the call's completed exit, add a Condition: {{context.confirmed}} is true.

    • true → Shopify step, action Confirm order (adds the tag cod-confirmed).
    • false → Shopify step, action Cancel order, reason from {{context.cancel_reason}} (only unpaid, unshipped orders can be cancelled).
  5. Handle no answer

    From the call's no_answer, busy and voicemail exits, add a WhatsApp step with your confirmation template, then Wait for reply (24 hours): the Confirm button → Shopify Confirm order; Cancel → Cancel order; timeout → Shopify Tag order with not-reached.

  6. Set allowed hours and go live

    In the journey's Workflow Settings, set Allowed hours for calls (for example 10:00 to 19:00). Then Go live.

Check it worked#

  1. Place a test COD order on your store with your own phone number.
  2. Within about 5 minutes your phone rings. Answer and confirm.
  3. Insights → Runs → Journey Runs shows the run with each step; Agent Calls shows the call with confirmed = true.
  4. In Shopify, the order has the tag cod-confirmed.

Common problems#

What you seeFix
No run startsCheck Order placed is ticked in the Shopify integration's Store events, and the order's payment method name contains cash on delivery or cod (see Cash-on-delivery payment methods)
The run waits at the Call stepOutside allowed hours, or all phone lines busy. See Journeys troubleshooting
"The caller ID is not on the provider account"See Calls and telephony
Shopify step failsCancelling a paid or shipped order isn't allowed by Shopify. Tag it instead

Abandoned cart on WhatsApp

Send a WhatsApp reminder with the cart link an hour after a shopper leaves checkout, then an email if they don't react, and stop as soon as they buy.

https://docs.lemuai.com/recipes/abandoned-cart-whatsapp

At the end you'll have a journey that sends a WhatsApp reminder one hour after someone starts checkout without ordering, waits for them to click, emails them if they don't, and leaves them alone the moment they buy. Orders after the reminder are credited to it in the journey's report.

Before you start#

  • Checkout events reaching LemuAI: from Shopify (Checkout started in Store events) or from your site's tracking snippet or SDK sending InitiateCheckout with the shopper's phone.

  • WhatsApp connected and an approved Marketing template, for example:

    Hi {{1}}, you left something in your cart. Complete your order here: {{2}}

  • Optional: an email template for the follow-up, and a sender under Engage → Email → Setup.

Steps#

  1. Create the journey

    Engage → Journeys → New Journey, trigger Events, event InitiateCheckout. Delay: 60 minutes. Exit events: Purchase, so anyone who orders leaves the journey at once.

  2. Check link tracking

    Open the journey's Settings and check Track link clicks is on (it is by default). Optionally turn on Own attribution windows with WhatsApp at 24 hours. See Link Click Tracking.

  3. Send the WhatsApp reminder

    Add a WhatsApp step with your template. Set {{1}} to the contact's first name (with a fallback like there) and {{2}} to the cart link: {{context.checkout_url}} for Shopify checkouts, or the URL your site sends.

  4. Wait for a click

    Add Wait for reaction: events link_clicked, timeout 6 hours.

    • reacted → End (they're back on the site; the exit event stops the journey if they buy).
    • no_reaction → next step.
  5. Email follow-up

    Add an Email step with your cart email template (kind Marketing), then End.

  6. Go live

    Check Allowed hours for WhatsApp and email (for example 09:00 to 21:00), then Go live.

Check it worked#

  1. On your store, add something to the cart and start checkout with your own phone number, then close the tab.
  2. After an hour you get the WhatsApp message. Tap the link: it opens your checkout.
  3. Insights → Runs → Journey Runs shows the run took the reacted path.
  4. Complete the order: the run shows exited: … and the journey's report credits the order.

Common problems#

What you seeFix
No run startsThe checkout event had no phone, so there's no contact to message. Make sure the checkout asks for a phone before the event is sent
Message skipped: "no WhatsApp consent (marketing)" or opted outThe shopper hasn't agreed to WhatsApp marketing. Collect consent at checkout
"The number of values doesn't match the template's variables"A variable had no value. Add fallbacks. See WhatsApp troubleshooting
Orders aren't creditedCheck the order arrives as Purchase with order_id and value, within the attribution window

EMI or payment reminder from a Google Sheet

Keep due dates in a Google Sheet, remind each customer on WhatsApp 3 days before the due date, call those who don't respond, and write the result back to the sheet.

https://docs.lemuai.com/recipes/payment-reminder-google-sheet

At the end you'll have reminders going out automatically 3 days before each customer's EMI or payment due date: a WhatsApp message first, a call from an AI agent if they don't react, and the outcome written back to your Google Sheet.

There are two ways to keep due dates in LemuAI. This recipe uses custom records (one record per loan or invoice, with its due date), because a customer can have several. The sheet feeds the records; journeys run on the record's date.

Before you start#

  • A Google Sheet with one row per loan or invoice, with columns like: loan_id, phone, name, emi_amount, due_date (as 2026-12-05 or 05/12/2026), status.
  • Google Sheets connected under Settings → Integrations (see Google Sheets).
  • WhatsApp connected with an approved Utility template, for example: "Hi {{1}}, your EMI of ₹{{2}} is due on {{3}}. Reply PAID if you've already paid."
  • For the call: a voice agent like the one in Agent Node (payment reminder), telephony and Voice minutes.

Steps#

  1. Create the record type

    Audience → Custom records → New record type named Loans, from the spreadsheet: fields loan_id (the identifier), emi_amount (Number), due_date (Date), status (Choice: active, paid, overdue). The owner is matched by phone. See Custom Records.

  2. Load the rows

    Import the sheet (or a CSV export of it) into Loans, mapping each column. Re-import when the sheet changes, or send changes with the records API.

  3. Create the journey

    Engage → Journeys → New Journey, trigger Record date: record type Loans, date field due_date, 3 days before, start at 10:00 in Asia/Kolkata, with the filter status is active. Each record starts one run per due date; changing the date sets it up again.

  4. WhatsApp reminder

    Add a WhatsApp step with the template. {{1}} = first name, {{2}} = {{context.object.emi_amount}}, {{3}} = {{context.object.due_date}}.

  5. Wait for a reply

    Add Wait for reply (24 hours).

    • text → AI step in Classify mode with labels paid, will_pay, problem. On paid: Update record status = paid, then End.
    • timeout → next step.
  6. Call

    Add a Call step with your payment reminder agent (pass emi_amount and due_date; bring back promised_date).

  7. Write back to the sheet

    Add Update Google Sheet: columns last_reminder = now(), promised_date = {{context.promised_date}}. The row is found by the contact's phone.

  8. Go live

    Set Allowed hours (calls 10:00 to 19:00 are typical for collections), then Go live.

Check it worked#

  1. Add a test row with your phone and a due date 3 days from today, and load it.
  2. At the start time (10:00) on the day 3 days before the due date, you get the WhatsApp message. Record date journeys check every 15 minutes after the start time; a record added later that day still starts.
  3. Don't reply: after 24 hours your phone rings. Promise a date.
  4. The sheet row now has last_reminder and promised_date, and Journey Runs shows each step.

Common problems#

What you seeFix
Import errors like "isn't a date (YYYY-MM-DD or DD/MM/YYYY)"Fix the date format in the sheet. See Contacts and data
"No contact {phone} in this organization"The phone is missing or wrong in the row
Update Google Sheet failsThe column headers must already exist in the sheet, spelled exactly
Calls go out at nightSet Allowed hours for calls in Workflow Settings

Repeat buyers in Delhi

Build a live segment of customers in Delhi (or any cities) who ordered at least twice, and use it in a campaign, a journey or an ad audience.

https://docs.lemuai.com/recipes/repeat-buyers-segment

At the end you'll have a segment that always holds your customers in Delhi who placed at least two orders, updated every 15 minutes, ready for a campaign, a journey or an ad audience.

Before you start#

  • Contacts have a city: a contact field or custom field like city (from an import, Shopify's shipping address, or a form).
  • Orders reach LemuAI as Purchase events (Shopify, the tracking snippet or the events API). Check the Event Log.

Steps#

  1. New segment

    Audience → Segments → New segment. Name: Repeat buyers, Delhi.

  2. City rule

    + Rule → Contact property → city → is in → Delhi, New Delhi, Gurgaon, Noida. Matching ignores upper and lower case; list every spelling your data has.

  3. Orders rule

    + Rule → Did an event → did Purchase at least 2 times. Leave the days empty for "ever", or set in the last 365 days.

  4. Check the joiner and save

    Keep the word between the two rules as and. The right panel shows how many match and a few examples; In plain words should read like "city is in Delhi, New Delhi, Gurgaon, Noida, and did Purchase at least 2 times". Click Create segment.

Variations#

  • Big spenders only: create a calculated field total_spent (Total of a property value on Purchase), then add the rule total_spent ≥ 10000.
  • Repeat buyers who've gone quiet: add Did an event → didn't do Purchase in the last 60 days.
  • About to leave: turn on Predictions and add Churn risk level is high.
  • Exclude a list: In a list (Contacts) → is not in your "Do not contact" list.

Use it#

  • Campaign: Engage → Campaigns → WhatsApp, audience = the segment.
  • Journey: trigger Enters or leaves a segment, so everyone who becomes a repeat buyer gets a thank-you or loyalty offer.
  • Ads: sync it to Meta or Google under Ad audiences.

Check it worked#

Open the segment: the member count and list fill in within a few minutes. Open a member's Timeline (Audience → Contacts) to see their orders.

Common problems#

What you seeFix
0 membersCheck the city values in your contacts (Delhi vs delhi vs DELHI is fine; "Dilli" isn't). Check orders are Purchase events in the Event Log
"{rule}: at most 500 values"Use fewer values, or put the cities in a list
A rule shows "a value is needed"Fill in every rule's value box

Look up an order or product in a journey

Find the product a customer viewed or asked about, by SKU or name, and use its title, price, image and link in a WhatsApp message.

https://docs.lemuai.com/recipes/order-lookup-in-journey

At the end you'll have a journey that finds a product in your catalog (by ID, SKU or name) and sends a WhatsApp message with its name, price and link. The same pattern works for any catalog or record type, like orders or loans.

Before you start#

  • A catalog under Audience → Catalog, for example the Products catalog synced from Shopify, with fields like sku, title, price, url, image_url.
  • An approved WhatsApp template, for example: "Still thinking about {{1}}? It's ₹{{2}} today: {{3}}"

Two ways to get the value to look up#

Journey starts fromWhere the product comes from
An event about the product (ViewContent, AddToCart)The event itself: {{context.content_ids}} or {{context.product_id}}
Something else (entering a segment, a schedule)A Look up events step first: the product they viewed most

Steps#

  1. Trigger

    Engage → Journeys → New Journey, trigger Enters or leaves a segment (for example "Viewed but didn't buy, last 7 days").

  2. Find the product they viewed most

    Add Look up events: event ViewContent, look back 7 days, group by content_ids. found → next step; not_found → End.

  3. Look it up in the catalog

    Add Catalog lookup: catalog Products, key {{context.events.top.value}}. Under Find the item by, tick sku, then group_id if your events send SKUs or style codes instead of product IDs. found → next; not_found → End.

  4. Send it

    Add a WhatsApp step: {{1}} = {{context.catalog_item.title}}, {{2}} = {{context.catalog_item.price}}, {{3}} = {{context.catalog_item.url}}.

  5. Go live

    Check Track link clicks is on in the journey's Settings (it is by default), then Go live.

Find by name instead of ID#

If customers or events give a product name (for example a WhatsApp reply "Blue kurta" extracted by an AI step), set Find the item by to title. Matching is exact but ignores case, so "blue kurta" finds "Blue Kurta". The run shows which column matched (matched_field).

Check it worked#

View a product on your site with your phone known (logged in or after a message click), join the segment, and check Journey Runs: the Catalog lookup step shows found and the item.

Common problems#

What you seeFix
Catalog lookup goes to not_foundThe value doesn't match exactly in the chosen columns. Compare the event's value with the catalog's sku / key; add another column under Find the item by
Price shows emptyThe catalog item has no price field or it's empty
Look up events goes to not_foundThe contact has no ViewContent events in the window. Check the Event Log

Win back inactive retailers

Retailers or customers who haven't ordered in 60 days get a WhatsApp offer with their own code, then a call from an AI agent if they don't respond.

https://docs.lemuai.com/recipes/win-back-inactive-retailers

At the end you'll have a journey that notices when a regular buyer (for example a retailer who orders from you every month) hasn't ordered in 60 days, sends them a WhatsApp offer with a unique code, and has an AI agent call the ones who don't respond. Orders that follow are credited to the journey.

Before you start#

  • Orders reaching LemuAI as Purchase events, or as records of an orders record type (for distributors: invoices or bills).
  • A calculated field last_order_date (Date of the most recent time, Purchase) and orders_total (Number of times, Purchase, ever).
  • An offer with an offer head, key winback, for example "5% extra margin on your next order" with Unique codes Lemu makes.
  • An approved WhatsApp Marketing template: "Hi {{1}}, we miss your orders! Use code {{2}} for {{3}} on your next order, valid this week."
  • A voice agent for the follow-up call (telephony and Voice minutes).

Steps#

  1. Segment of inactive regulars

    Audience → Segments → New segment Inactive retailers 60d:

    • Contact property orders_total ≥ 3 (they were regulars),
    • and Contact property last_order_date not in the last 60 days.
  2. Journey trigger

    Engage → Journeys → New Journey, trigger Enters or leaves a segment → Inactive retailers 60d (enters). Leave Exit when the contact leaves the segment on, and add exit event Purchase.

  3. WhatsApp offer

    Add a WhatsApp step: {{1}} = first name, {{2}} = {{ offer.winback.code }}, {{3}} = {{ offer.winback.headline }}.

  4. Wait for a reaction

    Wait for reaction: events link_clicked, Purchase, timeout 3 days. reacted → End.

  5. Call the rest

    On no_reaction: a Call step with your agent. In its Start Call, add the winback offer under Offers, so the agent can mention it and read out the caller's own code.

  6. Go live

    Set Allowed hours, check Track link clicks is on (the default), then Go live. Everyone already in the segment enters too.

Let LemuAI pick the channel and offer per person instead: replace the WhatsApp and Call steps with Choose channel, time and offer (see AI, conversation, data and ticket steps). It gives a bigger offer to at-risk big spenders and calls only the ones worth a call.

Check it worked#

  • The segment's member count matches your expectation (open a few members' Timeline).
  • Journey Runs shows runs at the Wait for reaction step.
  • Engage → Offers → Codes shows codes Given out, and Used after orders with the code.
  • The journey's report shows orders and revenue credited to it.

Common problems#

What you seeFix
The message has no codeThe offer head had no live offer, or the code pool is empty. See Offers
Some contacts skipped: frequency capThey already got your marketing limit this week. See Journeys troubleshooting
The agent doesn't mention the offerAdd the offer to the step's Offers and mention it in the prompt

Dashboard

Read the Dashboard: revenue credited to your journeys, how many people you reached on each channel, and where to act.

https://docs.lemuai.com/dashboard/overview

The Dashboard (first item in the sidebar) shows revenue, reach and responses across your journeys and agents for the period you pick. Use it to see what's working, then open a journey's report or the runs for details.

Before you start#

Filters#

At the top: a date range (pick both days, then Apply) and a journey filter (All journeys or one journey). Every number on the page follows both.

What each part shows#

Top row#

CardWhat it counts
RevenueOrders credited to your journeys' and campaigns' messages and calls in the period
ConversationsCalls where someone picked up and talked to the agent
Messages deliveredWhatsApp messages and emails the provider confirmed as delivered
ResponsesQualified calls (the agent captured what it was asked for), WhatsApp replies within 24 hours, and email link clicks
Contacts reachedPeople reached on any channel

Conversion funnel#

Pick All, Calls, WhatsApp or Email:

ChannelSteps
AllTargeted (called, messaged or emailed) → Reached (answered or delivered) → Engaged (talked 30s, read or opened) → Responded (qualified, replied or clicked)
CallsAttempted → Connected (someone answered) → Engaged (stayed 30s or longer) → Qualified (data captured)
WhatsAppSent (accepted by WhatsApp) → Delivered (reached the phone) → Read (blue ticks) → Replied (wrote back within 24h)
EmailSent → Delivered → Opened (tracking pixel loaded) → Clicked (a tracked link)

Where revenue came from#

Revenue split by channel, with Orders, Avg order, WhatsApp spend and ROI (revenue for each rupee spent on messages).

Journey performance#

Every journey with its reach, responses and revenue. Click one to open its report.

Calls#

For voice: Connect rate (conversations divided by attempts), Qualified outcomes, Avg call duration, Talk time, Best hours to dial, and What the agents captured (the variables your agents extracted). Outcomes over time shows the trend.

Alerts#

A strip at the top warns about things to fix, for example Email sending is paused (see Email troubleshooting).

Common questions#

  • Revenue is ₹0 but I have orders: orders count only when they arrive as conversion events and follow a message or answered call within the attribution window. Check Settings → Sending Limits → Revenue attribution and that orders reach the Event Log as Purchase events.
  • Calls show no spend or ROI: call minutes aren't counted as message spend, so ROI reflects WhatsApp and email costs.
  • A number looks too low: check the date range and journey filter at the top.

Contacts

Find anyone in All contacts, see everything that happened with them on one timeline, and keep them in lists with your own custom fields.

https://docs.lemuai.com/contacts/overview

Overview#

Contacts in the sidebar is where you keep the people your agents call and message. Contacts are grouped into lists, such as "Distributors" or "Website Customers", and campaigns call everyone on a list.

Each person is kept as one contact, even if they are on several lists or arrive from different places (a file import, a Google Sheet, Shopify or the API). When new details come in, Lemu finds the existing contact by phone, external ID or email and updates it instead of creating a duplicate.

Each contact has:

  • Phone (international format, for example +919876543210), Email, First name, Last name and Company
  • External ID: the ID of this person in your CRM or other system, used to match updates
  • Custom fields: any extra details you want your agent to use, such as a city or an order number. Custom fields can be used in your agent's prompts as template variables

Audience → Contacts opens on All contacts, the first entry in the list sidebar: every contact in the workspace, whichever lists they're on. The search box is ready to type in (press / to jump back to it) and finds people by:

  • name (first, last, or full name like Priya Sharma),
  • phone (any part of the number: 98765, the last 4 digits, or the full number with or without +91),
  • email, company, or external ID.

Click a column heading (First name, Last name, Phone, Email, Company, Job title, External ID, Opted out, Created) to sort by it; click again to reverse. Your own lists appear below All contacts.

Create a list and add contacts#

  1. Go to Contacts and click New Contact List. Give it a name and an optional description
  2. Open the list and click Import contacts
  3. Choose a source:
    • CSV or Excel file: a header row is required. You choose what each column becomes, and extra columns become custom fields
    • Google Sheet: pick a sheet from your connected Google Sheets integration. A list linked to a sheet reads the sheet again when you import
  4. You can also add or edit a single contact by hand from the list

See Importing Contacts for column options, matching rules and file limits.

A contact's profile#

Click a contact to open their profile. The top shows their name, when they were added and last active, how many lists they're in, and their tags. It has these tabs:

  • Timeline (opens first): everything that happened with this person, newest first and grouped by day: orders and carts, website visits, WhatsApp, email and SMS messages (with the message text, direction and status: sent, delivered, read, failed), calls (with outcome, the run and what the agent captured), and other events. Filter it with All, Orders & carts, Website, Messages, Calls and Other; each shows a count. Open an event to see its details. Show older activity loads more.
  • Details: their fields, custom fields, email consent, and the lists they're in (click a list to open it).
  • WhatsApp: their WhatsApp conversation.
  • Custom records: things this contact has, such as loans, policies or bookings. See Custom Records.
  • Tickets: their Lemu Tickets tickets, if connected.

Phone numbers are masked unless you're an Owner or Admin or have See unmasked contact phone numbers turned on (Settings → Team). Click the reveal button to see the full number.

Opted out contacts#

Contacts who asked not to be contacted are marked Opted out. They are skipped by campaigns, so they won't be called again. Contacts who opted out of calls only (on their contact page, or by a WhatsApp STOP when Sending limits says a STOP stops every channel) are skipped by campaigns too.

Using contacts#

  • Campaigns call everyone on a list. See Campaigns
  • Journeys can call or message contacts as one of their steps. See Journeys
  • Segments group contacts automatically by what they do, such as orders placed or messages read. See Segments
  • Custom records keep things each contact has, like loans or bookings, for use in journeys and messages. See Custom Records

Keep contacts in sync from your own system#

To create or update contacts automatically from your CRM or database, use the Contacts API.

Importing Contacts

Add contacts to a list from a CSV or Excel file or a Google Sheet, and choose what each column becomes

https://docs.lemuai.com/contacts/import

Overview#

You can add many contacts at once by importing a file or a Google Sheet into a contact list. Every imported row becomes a contact, or updates one you already have, and is added to the list you imported into.

Import a file#

  1. Open the import

    Go to Contacts, open a list (or create one with New Contact List) and click Import contacts. The Import Contacts window opens with two tabs: CSV or Excel file and Google Sheet.

  2. Choose your file

    On the CSV or Excel file tab, click Choose a CSV or Excel file. The first row must be the header. Not sure how to lay it out? Download the Sample file to start from.

  3. Check each column

    Lemu reads the header and suggests what each column becomes. Change any column with its dropdown before importing (see the table below).

  4. Import

    Click Import N rows. When it finishes you see a summary like "Import complete: 120 created, 15 updated, 0 failed, 3 skipped", with the reason for up to 20 rows that didn't import.

What a column can become#

OptionWhat it does
PhoneThe contact's phone number. Numbers are tidied into international format
EmailThe contact's email address
First name / Last nameThe contact's name
Full name (split into first and last)One name column, split into first and last name for you
CompanyCompany name
Job titleJob title
External IDThe person's ID in your own CRM or system
Tags (comma-separated)Tags for the contact. Commas, semicolons and vertical bars all work as separators
Custom fieldSaves the column as a custom field. Type the field name you want
Don't importSkips the column

Columns that don't match a built-in field become custom fields. Their names are saved in lowercase with underscores, so a column called "Order Number" becomes order_number. If a custom field with nearly the same name already exists (only the case or spaces differ), the existing one is reused.

Custom fields can be used in agent prompts and messages as template variables.

Rules for each row#

  • Each row needs a phone, email or external ID. Rows with none of these are skipped and listed with their row number.
  • Existing contacts are updated, not duplicated. Lemu looks for a match by phone first, then external ID, then email.
  • If two columns point at the same field, the first one with a value is used.
  • Blank rows and empty columns are ignored.
  • Import stays disabled until at least one column is set to Phone, Email or External ID, and every Custom field column has a name.

File limits#

LimitValue
File types.csv and .xlsx
File sizeUp to 50 MB. Split larger files into parts
Excel sheetsOnly the first sheet is read
PhoneUp to 50 characters
EmailUp to 255 characters
First name, Last nameUp to 100 characters each
Company, Job title, External IDUp to 255 characters each

Your plan also sets how many contacts you can keep. If an import would go over it, Lemu tells you before importing.

Import from a Google Sheet#

On the Google Sheet tab, pick a sheet from your connected Google Sheets integration. A list linked to a sheet reads the sheet again when you import, so new and changed rows are picked up.

Import from your own system#

To send contacts from your CRM or database without a file, use the Contacts API. One call can add up to 5,000 contacts.

Next steps#

Segments

Live groups of contacts built from rules, such as who added to cart and didn't order, that update every 15 minutes and can start journeys

https://docs.lemuai.com/segments/overview

Overview#

A segment is a live list of contacts. Instead of adding people by hand, you describe who belongs, for example "added to cart in the last 7 days and didn't order", and Lemu keeps the list up to date. Segments update every 15 minutes.

Use segments to:

  • Start a journey for everyone who joins or leaves a segment
  • See how many people match a set of rules before you message them
  • Save a snapshot of the members as an ordinary contact list
The segment editor with two rules: contacts who can be messaged on email and contacts added in the last 90 days

Create a segment#

  1. Start a new segment

    Go to Audience → Segments and click New segment.

  2. Name it

    Give it a Name (for example "Cart abandoners, last 7 days") and an optional Description.

  3. Add rules

    Click + Rule to add each rule. Between two rules there's a small and picker: leave it on and (contacts must match every rule) or switch it to or (any one rule is enough). The word is the same for all rules at one level, so switching one switches them all; to mix and and or, put some rules in a group (below). The panel on the right shows how many contacts match and a few examples, and updates as you edit.

  4. Save

    Click Create segment. Lemu works out who is in it, and the member list fills in shortly after.

Rule types#

RuleWhat it checksExample
Contact propertyA contact field or custom fieldFirst name is set, Tags include "vip", Number of calls > 3
Can be messagedWhether the contact can be messaged on a channelcan be messaged on whatsapp
Did an eventWhether the contact did (or didn't do) an event, at least a number of times, in the last N daysdid Purchase at least 2 times in the last 30 days
Message activityWhether a message was sent, delivered, read, failed or received on a channelhasn't read a whatsapp message in the last 14 days
In a list (Contacts)Whether the contact is in one of your contact listsis in "Website Customers"
Has records (Custom records)Whether the contact has custom records of a type, optionally with filtershas at least 1 Loans record where status is overdue
WhatsAppWhatsApp activity: replied, inside the 24-hour window, opted out, ordered, came from an adreplied in the last 7 days

Contact properties#

You can filter on First name, Last name, Email, Phone, Company, Title, External id, Number of calls, Added on, Last called, Opted out of everything, Tags and any custom field.

The choices depend on the kind of field:

  • Text: is, is not, is in, is not in, contains, doesn't contain, starts with, is set, is not set
  • Numbers: =, ≠, >, ≥, <, ≤, is set, is not set
  • Dates: in the last … days, not in the last … days, before, after, is set, is not set
  • Yes / no: yes, no
  • Tags: include, don't include, include any of, include none of

is in and is not in take a list of values separated by commas, for example Delhi, Mumbai, Pune, up to 500 values. Matching ignores upper and lower case. Event and record filters (+ where…) have them too.

Calculated fields (like total spent) and predictions (like churn risk) appear in the property list marked "(calculated)". See Calculated fields.

Event rules#

Pick an event name from the list (or type one), choose did or didn't do, and set at least … times and in the last … days. Leave the days empty to mean "ever". Click + where… to narrow by the event's own properties, for example only purchases where value is more than 1000. You can add up to 10 filters to one event rule.

A rule on one of Meta's standard events also counts events stored under its older name, so did Purchase includes orders recorded as order_placed.

Event rules use events received through the Events API, Shopify and WhatsApp.

Website page and product views from your Tracking Sources (Settings → Tracking Sources) are included in event rules only once this is turned on for your workspace. Until then, the builder shows a note saying so. Contact support to have it turned on.

Groups#

Click + Group to add a set of rules that are checked together, with their own and / or between them. For example: "In a list (Contacts) is VIP" and (did InitiateCheckout or did ViewContent). Use Rule in group to add rules inside it. Groups go one level deep.

The summary under the builder (In plain words) reads the whole segment back as a sentence, with brackets around groups, so you can check it says what you mean.

Limits#

LimitValue
Rules in one segment30, counting rules inside groups
Filters on one event or records rule10
Days in a "last … days" rule1 to 3,650
How often members updateEvery 15 minutes

Working with a segment#

Open a segment to see its Members list and when it was last updated. From there you can:

  • Save your changes to the name or rules. Members update a moment later
  • Refresh now to update members right away instead of waiting for the next 15 minute update
  • Copy to a list to save today's members as a regular contact list. The list doesn't change when the segment does
  • Delete the segment. Journeys that start from it stop firing

If an update fails, the reason is shown under the segment name and in the Updated column on the Segments page.

Start a journey from a segment#

In a journey's trigger, under Start from a segment, choose Enters a segment or Leaves a segment, then pick the segment. The journey runs for each contact who joins (or leaves), with their phone available as {{phone}}.

  • People who were already in the segment when you created or edited it don't start the journey. Only people who join or leave after that do.
  • With Exit when the contact leaves the segment turned on (the default), someone who leaves the segment while the journey is waiting doesn't get its remaining messages or calls.

If more than 5,000 contacts join or leave a segment in a single update, the members still update but journeys are not started for that change. This protects you from accidentally messaging a very large group after a big edit.

See Nodes and triggers for the rest of the journey setup.

Next steps#

Calculated fields

Work out one figure per contact from their events or records, like orders in the last 90 days or total spent, and use it in segments, messages and journeys.

https://docs.lemuai.com/segments/calculated-fields

A calculated field is a number or date LemuAI works out for every contact, for example "orders in the last 60 days", "total spent", "average order value" or "last order date". It's stored on the contact like any other field, so you can use it in:

  • segment rules (Contact property → the field, marked "(calculated)"),
  • message templates ({{ contact.metrics.total_spent_60d }}),
  • journeys and the contact page.

They're under Audience → Segments → Calculated fields.

Create one#

  1. Name and key

    Name (like Total spent in the last 60 days) and Key (like total_spent_60d). The key is fixed once created, because templates use it.

  2. Choose what to calculate from

    From events (a contact's events, like Purchase) or From records (a record type, like orders or loans).

  3. Choose the calculation

    From eventsFrom records
    Number of timesNumber of records
    Total of a propertyTotal of a field
    Average of a propertyAverage of a field
    Smallest value of a propertySmallest value of a field
    Largest value of a propertyLargest value of a field
    Number of different values of a propertyNumber of different values of a field
    Date of the first time
    Date of the most recent time

    Pick the event (or record type), the property or field (for events, type a property name like value, order.total or items.quantity), and a time window if you want one.

  4. Preview and create

    Preview shows sample values. Create field: values are calculated in a few minutes.

How values update#

  • Recalculated every hour, when you save the field, and when you press Recalculate now.
  • Only contacts with something to show get a value. A count or total of 0 is left empty; segments treat an empty count or total as 0.
  • Deleting a field removes its values from every contact; messages that use it show nothing in its place.

Examples#

NameFromCalculation
Orders in the last 90 daysEvents: PurchaseNumber of times, last 90 days
Total spentEvents: PurchaseTotal of a property: value
Last order dateEvents: PurchaseDate of the most recent time
Loans outstandingRecords: loans (filter status is active)Number of records
Different categories boughtEvents: PurchaseNumber of different values of a property: items.category

Then a segment "Total spent is at least 10000 and Orders in the last 90 days is 0" finds big spenders who stopped buying.

Predictions

Predicted churn risk, next order date, lifetime value and RFM segments for every buyer, recalculated nightly and usable in segments and messages.

https://docs.lemuai.com/segments/predictions

Predictions work out, for every customer who has ordered, how likely they are to keep buying and what they're worth. They appear as built-in calculated fields, so segments, journeys, templates and the contact page can use them like any other field.

Find them under Audience → Segments → Calculated fields, in the Predictions card.

Turn them on#

  1. In the Predictions card, choose where orders come from (Orders from): Purchase events (the default) or a record type of orders (Custom records, with its date field).
  2. Turn predictions on. The first run takes a few minutes ("Working out the first predictions…").
  3. Optionally create the RFM segments: one segment per RFM group, found under Segments.

Predictions are recalculated nightly (Updated nightly) and when you press Recalculate. Only buyers get values; with no orders yet the card says "No orders yet. Predictions appear once customers order."

The fields#

FieldKeyMeaning
Churn risk (%)churn_riskChance (0-100) the customer has stopped buying, from how often and how recently they ordered compared with customers like them
Churn risk levelchurn_risk_levellow (under 40%), medium (40-70%) or high (70% and above)
Predicted next order datenext_order_dateWhen the next order is expected. Empty when another order is unlikely
Expected orders, next 90 daysexpected_orders_90dOrders to expect in the next 90 days
Predicted spend, next 12 monthspredicted_clv_12mExpected orders in the next 12 months times the expected order value
Lifetime valuelifetime_valueSpent so far plus predicted spend in the next 12 months
RFM recency scorerfm_recency1-5; 5 = ordered most recently
RFM frequency scorerfm_frequency1-5; 5 = orders most often
RFM monetary scorerfm_monetary1-5; 5 = spent the most
RFM segmentrfm_segmentChampions, Loyal, Potential loyalists, New customers, Promising, Need attention, About to sleep, Can't lose them, At risk or Hibernating

Use them#

  • Segment: "Churn risk level is high and Lifetime value is at least 20000" → valuable customers about to leave.
  • Journey: start a win-back journey when a contact Enters or leaves a segment of high churn risk.
  • Template: We miss you! Your next order usually comes around {{ contact.metrics.next_order_date }}.
  • Choose channel, time and offer step uses churn risk and value to decide who gets a bigger offer or a call.

Common problems#

  • "The recalculation stopped before it finished. Try again." Press Recalculate again.
  • Values look wrong: check Orders from points at your real orders, and that each order carries its value (the value property of Purchase, or the order record's total).

Ad audiences

Keep segments in sync with Meta and Google ad audiences, and send purchases to the Meta Conversions API.

https://docs.lemuai.com/ads/overview

Audience → Ad audiences does two things:

  1. Synced audiences: a segment becomes a custom audience in Meta Ads or a Customer Match list in Google Ads, and stays up to date: people who join the segment are added, people who leave it are removed.
  2. Meta Conversions API: purchases (and other standard events you choose) are sent to Meta from LemuAI's server, so Meta can measure and optimise your ads even when the browser pixel is blocked.

Setting this up needs the config permission (Owner or Admin).

Before you start#

  • A Meta ad account (for Meta) or a Google Ads account (for Google) you can manage.
  • At least one segment of the people you want to reach.

Sync a segment to an ad audience#

  1. Connect the ad account

    Under Ad accounts, connect Meta or Google and choose the accounts LemuAI may use. For Google, you can also enter a Manager account ID (optional) such as 123-456-7890 if you manage ads through a manager account.

  2. Pick the segment and account

    Under Sync a segment to an ad audience, choose the Segment and the Ad account. Audience name (optional) defaults to Lemu: <segment name>.

  3. Create it

    LemuAI creates the audience and runs the first sync: "Audience created. The first sync is running."

How syncing works#

  • Only hashed email and phone are sent (SHA-256), never names in plain text. Meta and Google match them to their users.
  • Contacts who opted out are never sent. Contacts with neither email nor phone can't be matched and are skipped.
  • Each sync sends only the changes: new members are added, people who left the segment (or opted out) are removed, and someone whose email or phone changed is updated.
  • Synced audiences lists each audience with Sync now and Stop syncing. When you stop, the audience stays in the ad account with its current members.

Send purchases to the Meta Conversions API#

  1. Connect

    Under Meta Conversions API, enter your Dataset ID (the pixel or dataset ID from Meta Events Manager) and an Access token generated in Events Manager.

  2. Choose the events

    Under Events to send, pick the standard events to send. Purchase is the default.

  3. Test

    Enter a Test event code from Events Manager (like TEST12345) and send a test purchase. You should see it under Test events in Meta Events Manager.

Every matching event LemuAI records from then on (from Shopify, the tracking snippet, the events API or WhatsApp orders) is sent with the contact's hashed details. Turning it on doesn't send past events.

Common problems#

  • Needs a new token: the access token expired or was revoked. Generate a new one in Meta and press Reconnect.
  • The audience is small in Meta: Meta shows only matched people, and small audiences may show as "below 1,000". Add more people or check contacts have email and phone with country code.
  • No events sent yet.: no matching event has arrived since you connected. Check the Event Log for Purchase events.

Custom Records

Store things a contact can have several of, like loans, policies or bookings, and use them in journeys, segments, messages and agents

https://docs.lemuai.com/records/overview

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.

A record type page listing loan records with their amounts, due dates, status and owner contact

Create a record type#

  1. Start a new type

    Go to Custom records in the sidebar and click New record type.

  2. 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.

  3. 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.

  4. Add fields

    List the fields each record has. See Fields below.

  5. 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.

  6. Create

    Click Create record type.

Fields#

Each field has a name, a type and two switches.

TypeUse it for
TextNames, codes, short notes
NumberAmounts, counts
Yes / noFlags such as "autopay on"
DateDue dates, renewal dates
Date and timeAppointment times
ChoiceOne value from a fixed set. Type the choices separated by commas, for example active, overdue, closed
LinkA 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.

  1. Lemu suggests what each column becomes. Change any column, or set it to Don't import.
  2. Map at least one owner column: Owner: phone, Owner: email, Owner: your customer id or Owner: Shopify customer id.
  3. 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-DD or DD/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 null clears a field.
  • Name the owner with phone, email or external_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 toUse
Start a journey a few days before or after a date, like 3 days before a due dateJourney trigger Record date
Start a journey when a record is added or changesJourney trigger Record changes (events object_created and object_updated)
Call or message every matching record onceA one-time journey with Records as the source
Find people by their recordsSegment 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.

Text
{{ 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 loan

Replace 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#

LimitValue
Fields per record type50
Choices in a Choice field100
Text field length2,000 characters
Identifier length255 characters
Data in one record16 KB
Records in one batch API call1,000
Days before or after a date in a Record date triggerUp to 365

Your plan sets how many record types you can create.

Next steps#

Catalog

Keep products, branches or plans in a catalog that voice agents and journeys can look up

https://docs.lemuai.com/records/catalog

Overview#

A catalog holds items that aren't tied to one contact, like products, branches or plans. Your voice agents can look items up during a call (for example to answer "how much is it?" or "is it in stock?"), and journeys can look up an item and use its details in later messages.

Catalogs work like custom records, with two differences: items have no owner contact, and they are used through lookups rather than triggers.

A Products catalog page with Items, Import, Fields & settings and How to use tabs

Create a catalog#

  1. Start a new catalog

    Go to Catalog in the sidebar and click New catalog.

  2. 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 catalog.

  3. Name it and add fields

    Enter a Name, such as "Products", and list the fields each item has, like name, price and link. Field types are the same as for custom records.

  4. Choose the identifier

    Under Each one is identified by, pick the field that holds the ID from your own system, like a SKU or branch code. Importing an item with the same ID updates that item. The identifier must be a Text or Number field.

  5. Create

    Click Create catalog.

Add and manage items#

Open a catalog to see its tabs:

  • Items: every item in the catalog. Use Search items to find one and Add item to add one by hand. Edit or delete items from their row.
  • Import: upload a CSV or Excel file of items. This works the same as importing custom records, without the owner columns.
  • Fields & settings: rename the catalog, add a description, change fields, or archive it.
  • How to use: a ready-to-copy API example and how to use the catalog in journeys and agents.

You can also send items from your own system with the records API. Up to 1,000 items fit in one batch call.

Shopify products catalog#

If you connect Shopify, Lemu creates a Products catalog for you and keeps it in sync with your store every 30 minutes.

  • Its fields are set by Lemu and can't be changed, and it has no Import tab.
  • It doesn't count toward the number of catalogs your plan allows.
  • If you already have a catalog called products, the Shopify one is named shopify_products.
  • The catalog page shows when it last synced. If a sync fails, the reason is shown there.

If you connected Shopify with a custom app, the app needs the read_products scope for products to sync. Customers keep syncing either way.

Let a voice agent look up items#

  1. Create the tool

    Go to Agent Setup > Tools, create a new tool and choose Catalog lookup.

  2. Pick the catalog

    Give the tool a name (for example "Look up product"), choose the Catalog, and describe in When should the agent use it? when the agent should look something up, such as "when the customer asks about price, stock or details".

  3. Attach it to the agent

    Add the tool to your voice agent. During a call, the agent can look an item up by its identifier or by name.

Personal fields are never shown to the agent. See the Tools library for how tools work.

Look up an item in a journey#

Add a Look up catalog item step to a journey:

SettingWhat to enter
CatalogThe catalog to look in
Item keyThe item's identifier, usually from the event that started the journey, for example {{context.product_id}}
Save asThe name later steps use for the item. Defaults to catalog_item

The step has two paths: found and not found. Steps after found can use the item's fields, for example {{context.catalog_item.price}}.

See Nodes and triggers for building journeys.

Next steps#

Inbox

Read and answer your customers' WhatsApp messages in one place, with your team and the AI assistant

https://docs.lemuai.com/messaging/inbox

Setup required: the Inbox shows customer replies only once your WhatsApp provider sends them to Lemu. Connect a provider and set up its webhook as described in WhatsApp Messaging.

Inbox (top level in the sidebar) holds your WhatsApp conversations with customers, answered by your team and, if you turn it on, the AI assistant.

There is one conversation per contact. It holds every WhatsApp message to and from that person: their replies, what your team wrote, and what journeys, voice agents and the AI assistant sent.

The Inbox with the conversation list, search and the Open, Mine, Needs a person, AI handling and Closed filters

Find a conversation#

The list on the left shows each conversation with the contact's name or phone, the latest message and an unread count. When the latest message is one you sent, it starts with who sent it: AI, Team, Journey, Campaign or API. The total unread count is shown next to Conversations.

Search by name or phone with the box above the list, and pick a view under it:

ViewShows
OpenAll open conversations
MineOpen conversations assigned to you
Needs a personOpen conversations your team is handling, including ones the AI handed over
AI handlingOpen conversations the AI assistant is handling
ClosedConversations you closed

Filters#

Press Filters next to the search box. The button shows how many filters are on, and each one shows as a chip under the views: press × on a chip to remove it, or Clear all to remove them all.

FilterOptionsShows
Last message fromAnyone, Customer (waiting for a reply), AI, Team, Journey, campaign or APIConversations whose newest message came from them. Customer means the customer wrote last and is waiting for an answer. A reaction doesn't count, and neither does a message that failed to send.
Has repliedCustomer, AI, Team (tick any)Conversations where any one you ticked wrote at least once. With dates picked, that message has to be in those days.
Reply windowAny, Open, ClosedOpen: the customer wrote in the last 24 hours, so you can reply freely. Closed: only templates can be sent.
Unread onlyOn or offConversations with unread messages.

Sort and dates#

Under the views:

  • Sort: Newest message (the default), Oldest message, Waiting longest (conversations waiting for a reply first, the longest wait on top, then the rest newest first) or Most unread.
  • Dates: All time by default. Pick Today, Yesterday, This week, Last week, This month, Last month, Last 7 days, Last 30 days or your own days, then press Apply. The list shows conversations with a message in those days.

Example: to answer today's customers who have waited longest, press Filters, choose Customer (waiting for a reply), set Sort: Waiting longest and pick Today in the dates.

When nothing matches, the list says "No conversations match these filters." with a Clear filters button.

Read a conversation#

Open a conversation to see the full thread. The header shows the contact's phone, who is handling it (AI assistant is handling or Team is handling) and who it is assigned to.

Each message you sent shows where it came from and how far it got:

  • From: AI assistant, Team, Journey, Voice agent or Test send
  • Status: Queued, Sent, Delivered, Read or Failed

If the AI handed the conversation to your team, a note under the header says why, for example "Handed to the team: The customer asked for a person".

Reply#

WhatsApp only allows free-form messages within 24 hours of the customer's last message.

The thread looks like WhatsApp: your messages on the right with their time and ticks (one grey tick sent, two grey delivered, two blue read), the customer's on the left, and a chip for each day. Template messages show their text and buttons, not just the template name.

  • Inside the 24 hours: type in the Type a message box and press Enter to send (Shift + Enter starts a new line), as on WhatsApp. Attach a file with a caption, send products from your WhatsApp catalog, or send a template.
  • After 24 hours: the composer shows Reply window closed, because WhatsApp only allows an approved template until the customer replies. Pick a template, fill in its variables and click Send template. See Working with templates.

Replying yourself takes the conversation over from the AI, so the assistant stops answering it.

A contact who replied STOP or stopped marketing still gets your replies in a chat they start; only broadcasts and marketing templates are refused. A contact marked Opted out of everything gets nothing, from the Inbox or anywhere else.

Manage a conversation#

ButtonWhat it does
Assign to meAssigns the conversation to you, so it shows under Mine
UnassignRemoves the assignee
Take overYour team handles the conversation; the AI stops replying
Hand back to AIThe AI assistant answers again
CloseCloses the conversation
ReopenOpens a closed conversation again

When a customer writes in, a closed conversation opens again automatically and its 24-hour window restarts.

Where messages come from#

  • Customer replies arrive through your WhatsApp provider's webhook.
  • Messages sent by journeys (a message step), by voice agents (the Send Message tool) and by the AI assistant are added to the same conversation, so your team always sees the whole history.
  • Each customer message is also recorded as a whatsapp_message_received event on the contact, which you can use in segments and journeys.

Inbox AI Assistant

Let an AI assistant answer WhatsApp messages in the Inbox and hand conversations to your team when it should

https://docs.lemuai.com/messaging/inbox-assistant

Setup required: the assistant answers WhatsApp messages that reach the Inbox, so your WhatsApp provider's webhook must be set up first. See WhatsApp Messaging. The assistant is off until an admin turns it on.

The WhatsApp AI assistant answers customers automatically in conversations it is handling, using your instructions and documents. It hands the conversation to your team when a customer asks for a person, is upset, or when it isn't sure.

The WhatsApp AI assistant settings: business name, instructions, knowledge documents, handover message and reply limit

Turn it on#

  1. Open the settings

    In the Inbox, click AI assistant above the conversation list.

  2. Fill in the details

    Switch on Answer customers automatically, then fill in the settings below.

  3. Save

    Click Save. The assistant starts answering new messages in conversations it is handling.

Settings#

SettingWhat it does
Answer customers automaticallyTurns the assistant on or off
Business nameThe name the assistant answers for
InstructionsWhat you sell, delivery times, return policy, store hours, tone of voice, and what the assistant must never promise. Up to 8,000 characters
Knowledge documentsDocuments from your Knowledge Base the assistant searches for each message. Up to 50
Message when handing over to the teamSent to the customer when the conversation goes to your team. Leave empty to send nothing. Default: "Thanks! I'm connecting you with our team, they'll reply here shortly."
Most replies per conversation per hourA safety limit, from 1 to 60 (10 by default). Stops endless loops, for example with another business's bot

The assistant uses the same AI model as your voice agents.

How it answers#

  • New conversations start with the AI handling them. If the assistant is off, they simply wait for your team.
  • After a customer writes, the assistant waits a few seconds, so several quick messages get one answer.
  • It replies in the customer's language, in short, friendly WhatsApp style.
  • It only states facts from your instructions, your documents and the conversation. It does not invent order details, prices, dates, policies or links. If it doesn't know, it says a teammate will help and hands over.
  • It only replies within WhatsApp's 24-hour window. It never sends templates.

When it hands over#

The assistant hands the conversation to your team, sends your hand-over message, and shows the reason in the Inbox, when:

  • The customer asks for a person (for example "talk to a human", or "agent se baat" in Hindi)
  • The customer is upset or complaining, or wants a refund, a cancellation or anything the assistant can't do
  • The assistant isn't sure of the answer
  • It reached Most replies per conversation per hour
  • Its reply couldn't be generated or sent

Handed-over conversations appear under Needs a person. Click Hand back to AI when you want the assistant to take over again.

When your team replies#

Replying yourself takes the conversation over from the AI. The assistant stays quiet in that conversation until someone clicks Hand back to AI.

STOP and START#

Replies of STOP or START (and similar words such as "unsubscribe" or "opt in") are not answered by the assistant. They update the contact's WhatsApp consent instead. A STOP stops marketing, not replies: if the customer writes again later, the assistant answers as usual. See WhatsApp Messaging.

Voice Agent Builder

Build a voice agent by creating a new agent at https://app.lemuai.com/workflow and talking through the setup with the AI Copilot.

https://docs.lemuai.com/voice-agent/introduction

Creating a new agent opens the workflow canvas with a default flow already scaffolded — a Global node, a Start Call node, a main conversation node, and an End Call node — plus an AI Copilot panel on the right. The Copilot adds extra steps when your use case needs them (for example, finding a slot and then confirming the booking).

Talk (or type) through what you're building — the Copilot has a live call connection while you describe your use case, and fills in the canvas nodes and prompts as you speak. Be as specific as you like: deadlines, offers, what to say when a customer refuses, how firm or friendly the agent should be. Everything you ask for is written into the agent as you said it. The only exceptions are abusive language, made-up threats and harassment, which Lemu agents never use. See AI Copilot for more on what it can do beyond initial setup.

Once the starting flow is in place, you can:

  • Edit any node's prompt directly on the canvas to fit your use case
  • Test the agent with a Call right from the builder
  • Save your changes as a draft, or Publish when it's ready to take real traffic

Editing a Workflow

Learn the fundamentals of building workflows with nodes, pathways, and conversation flow in the voice agent builder.

https://docs.lemuai.com/voice-agent/editing-a-workflow

Overview#

A workflow is a graph of connected nodes representing conversation stages, with pathways defining agent movement between stages.

Global Node#

Contains instructions applicable across the entire call:

  • Company context
  • Overall agent goal
  • Tone and personality
  • Common objection handling

Node-Level Toggles#

Add Global Prompt#

  • Recommended to inject Global Node instructions into most nodes

Allow Interruption#

  • Default "On": Bot stops and responds to user interruption
  • "Off": Bot continues speaking, ignoring user input

Detect Voicemail#

  • Available only in Start Node
  • Automatically disconnects if voicemail detected

Variable Extraction#

Supported in Agent and End Call Nodes:

  • Extract structured variables
  • Define name, type, and description
  • Examples: customer name, budget, interest

Webhook Node#

  • Executed at call end
  • Sends payload to specific endpoint
  • Use for:
    • Storing call data
    • Triggering a journey
    • Syncing with CRMs

Editing Workflows#

  • Selectively delete nodes/pathways
  • Completely reset workflow

Pathways and Tool Calls#

  • Define agent node movement
  • Use tool calls to transition between nodes
  • "tool" is a reserved keyword for function calls and actions

Template Variables

You can use Template Variables in your prompts for your Agent nodes, or when constructing the payload for the Webhook Node

https://docs.lemuai.com/voice-agent/template-variables

Template Rendering#

You can reference template variables which is passed as initial_context either using the API Trigger or when uploading a Sheet for a campaign. You can also use any extracted variable as gathered_context

The template rendering can take nested values.

Example: If the initial context is

Text
{
    "initial_context": {
        "user": {
            "name": "John"
        }
    }
}

You can write your prompt to access the user's name as below

Prompt: You are Alice, who is talking to {{initial_context.user.name}}.

Nodes#

Lemu Voice Agents are composed of various nodes. These nodes can provide instructions to the voice agent, help you setup a trigger where you can trigger the voice agent to call someone, or help you setup a webhook, where you can update the results of the call in your CRM or trigger a downstream workflow in n8n. In the next steps, we will be documenting the nodes that you can use in building the voice agent.

Agent Settings

Voice, language, turn detection, call limits and background sound for one voice agent

https://docs.lemuai.com/voice-agent/agent-settings

Overview#

Each voice agent has its own settings for how it sounds and how it handles a call. Open an agent and click Configurations (the gear icon) in the editor toolbar. Click Save Configuration when you're done.

Agent name#

The name of your agent, as shown in your list of voice agents.

Voice (TTS) settings#

  • Select Agent Voice: pick from the voices in your Voice Library
  • Voice Language: the language the agent speaks
  • Speech speed and Speech volume: shown when the voice supports them. Leave them alone to use your organization's default

See Voice for more.

Transcriber (STT) settings#

  • Transcriber Language: the language the caller is expected to speak. See Transcriber

Background noise from the caller's side is filtered out automatically on every call, before the audio is transcribed. There is nothing to turn on.

Ambient noise#

Mix a quiet background sound under the agent's voice so the call feels more natural.

  1. Switch on Use Ambient Noise
  2. Choose a Sound. Click the play button next to any sound to hear a preview:
SoundWhat it sounds like
Office – TypingKeyboard typing and office sounds, no voices
Office – CalmA quieter modern office
Call CenterAn office with people talking in the background
CafeA coffee shop
RainGentle rain
NatureForest and birds
TrafficStreet traffic
FluteSoft flute music
  1. Set the Volume (0 to 100%, default 30%). Previews play at the volume you choose, so you can hear how loud it will sit under the agent's voice

Phone calls carry narrowband audio, so the sound will be a little duller on a real call than in the preview. Make a test call before going live.

Turn detection#

Turn detection decides when the caller has finished speaking and the agent can reply. Too eager and it interrupts; too patient and replies feel slow.

Detection StrategyBest for
Transcription-basedShort answers such as yes or no, amounts and dates. Ends the caller's turn after a short silence once speech is transcribed
Smart Turn AnalyzerLonger answers with natural pauses. Uses a speech model to tell a pause from a finished thought

With Smart Turn Analyzer, Incomplete Turn Timeout (seconds) sets how long to wait in silence when the caller seems to be mid-thought (0.5 to 10 seconds).

Call management#

  • Max Duration (s): the longest a call can last before the agent ends it (default 600 seconds)
  • Idle Timeout (s): how long the agent waits when the caller says nothing (default 10 seconds)

Other agent settings in the toolbar#

Toolbar buttonWhat it does
Template Context VariablesDefault values for the variables used in your prompts. See Template Variables
DictionaryWords the transcriber should recognize, such as product names and brand terms
RecordingsUpload pre-recorded audio clips the agent can play during a call
Voicemail DetectionDetect when a call reaches voicemail and handle it instead of talking to the machine
Deploy WorkflowPut the agent on your website. See Web Widget

Testing Your Agent

Try your voice agent by browser call, phone call, text chat, or against another AI agent before going live

https://docs.lemuai.com/voice-agent/testing

Overview#

Every voice agent can be tested straight from its editor. Open the agent and click Call in the top-right corner to choose a test.

TestWhat it does
Web CallTalk to the agent through your browser microphone. The quickest way to hear how it sounds
Phone CallThe agent calls a real phone number using your telephony provider
Test ChatChat with the agent by text. Useful for checking the conversation flow and tool use without speaking
Test vs AgentRun a LoopTalk test, where another AI agent plays the caller

Save your changes before testing so the test picks them up. Publish them when you're happy (see Versions below).

Web call and phone call#

A Web Call asks for microphone access the first time. A Phone Call needs a telephony provider connected under Agent Setup → Telephony; if none is set up, the dialog walks you through it.

After the call, open it from Runs in the sidebar to see the transcript, the recording, the details the agent captured, and every tool call. See Tracing.

Test Chat#

Test Chat opens a chat window where you type as the caller and the agent replies in text. It follows the same prompts, transitions and tools as a voice call, so it's a fast way to check the logic before testing by voice.

LoopTalk: test against another agent#

Test vs Agent creates a LoopTalk test. Instead of you playing the caller, another voice agent (the Adversary Agent) does. Write that agent's prompt like a customer persona, for example an impatient caller or someone who keeps changing their mind.

  • Test Type: Single Test runs one conversation; Load Test runs several at once
  • Concurrent Pairs (1 to 10): how many conversations run in parallel in a load test

LoopTalk tests and their transcripts are listed on the LoopTalk page.

Versions: draft, publish and history#

Changes you make are saved to a draft. Calls and campaigns keep using the published version until you click Publish. Use Discard draft to throw away unpublished changes.

Click the history (clock) button to see earlier published versions. While viewing an older version, click Back to Draft to return to your working copy.

Web Widget

Put your voice agent on any website as a chat window, a voice call button or both, with product buttons and support tickets.

https://docs.lemuai.com/voice-agent/web-widget

The web widget puts your voice agent on your own website. Visitors press a button and chat with the agent by text, talk to it by voice in the browser, or both in one window. You paste one piece of code into your site once; whatever you save later in LemuAI reaches your site by itself.

The widget can also show the products your agent looks up as cards with your own buttons (like Add to cart), and let the agent open support tickets in Lemu Tickets for visitors it can verify.

Before you start#

  • A voice agent to put on the site (see Voice Agent Builder).
  • For product cards: a catalog the agent looks items up in (see Catalog).
  • For support tickets: Lemu Tickets connected in Settings → Integrations (see Lemu Tickets).

Steps#

  1. Open the Deploy dialog

    Open your voice agent and press Deploy Workflow in the editor toolbar. The dialog is called Put your agent on your website, with a Live preview of the widget on the right that you can try.

  2. Setup

    Under What visitors can do, pick Chat and call (one window for both: a call carries on from the chat, and the chat from the call), Chat, or Call.

    Under Websites it works on, type your site, such as yourshop.com, and press Add. *.yourshop.com covers every subdomain, and yourshop.com also covers www.yourshop.com. Anywhere else the widget doesn't show.

  3. Button, Window and Behaviour

    Match the widget to your site. The fields are listed in Customization below. The preview changes as you go.

  4. Products & tickets (optional)

    Turn on product cards and choose their buttons, and let the agent open tickets for verified visitors. See Product cards and buttons and Support tickets.

  5. Save and get the code

    Press Save and get code. The dialog moves to Add to website.

  6. Add to website

    1. Copy the code and paste it just before the closing </body> tag of a template or footer that every page uses. Pick Your website is built with (Any website, Shopify, WordPress, Wix, Webflow, Google Tag Manager, React / Next.js) to see where that is on your platform.
    2. With tickets on, Tell the widget who's signed in (see Customers signed in on your website).
    3. Check it on your website: open a page of your site and press the widget's button.

    Email these steps to my developer opens an email with the code and the steps.

Check it worked#

  • The switch at the top of the dialog says Live on your website, and the line at the bottom says your website has the latest settings.
  • On your site, the button shows in the corner you chose and opens the chat or starts a call.
  • Each chat and call shows up in the agent's runs like any other conversation.

To take the widget off your site, turn off Live on your website and confirm Take the widget off your website?. The code can stay on your site; it shows nothing until you turn the widget back on.

Customization#

Button

FieldWhat it does
StyleCircle, Square, Pill (icon and text in one button) or Side tab (a tab on the edge of the screen).
Button textUp to 60 characters. Show the text next to the button shows it beside a Circle or Square.
IconPhone, Headset, Microphone, Voice wave, Chat bubble, Message, Sparkles, Question mark, or Your image (an Image link starting with https://).
SizeSmall, Medium or Large.
CornersSharp, Rounded or Round.
Button colourA hex colour like #664AE2.
Icon and text colourA hex colour, or Auto (black or white, whichever reads better).
ShadowNone, Soft or Strong.
Attention effectNone, Pulse or Bounce, until the visitor first uses the widget.

Window

FieldWhat it does
ThemeLight, Dark, or Match visitor's device.
Title, SubtitleThe window's header.
Avatar image linkA small picture in the header, starting with https://.
Message box placeholderThe grey text in the empty message box.
Window sizeCompact, Standard or Large. On phones the window fills the screen.

Behaviour

FieldWhat it does
PositionBottom right, Bottom left, Top right or Top left, with the Distance from the side (useful to stay clear of a cookie banner).
Greeting messageA small bubble next to the button, once per visit, after the Greeting delay in seconds.
FontStandard, or Match my website.
Show on phonesOff hides the widget on phones.
Use my own button insteadHides the floating button; open the widget from your own button with LemuWidget.open().

Product cards and buttons#

When your agent looks products up with a catalog tool, the widget can show them as cards with a photo, name, price (with the MRP struck through) and up to two buttons. Cards are built from the catalog, never from what the agent writes, so a card can't carry a made-up price or link. A product needs a name and a product page link in the catalog to get a card.

Turn on Show products as cards in Products & tickets, then set the buttons:

FieldWhat it does
Main buttonThe filled button on each card. Label up to 24 characters.
Second buttonOptional, outlined. Add a second button to add it, the bin to remove it.
When pressedOpen the product page; Open a link (built from the product, like https://yourshop.com/cart/add?id={variant_id}); Send a message to the agent (like Is {title} available in size 9?, not on Call widgets); or Run a function on your website (a function your site adds, see Product buttons from your own code).
Product pages open inSame tab (the chat stays open on the next page) or New tab. During a call a card opens a quick view instead, so the call isn't cut.

Links and messages can use these product details: {title}, {sku}, {variant_id}, {product_id}, {price}, {url}, {size}, {colour}. For a Shopify store connected to LemuAI, {variant_id} is Shopify's variant ID (what Shopify's cart takes) and {product_id} is Shopify's product ID.

Every press of a card button is recorded as a product_button_clicked event with the button's label and the product's details, so you can see it in the Event Log and start a journey from it. When the visitor is verified (see below), the event is on their contact.

Support tickets#

The agent can open a ticket in Lemu Tickets when a visitor has a problem it can't solve, in the chat and on calls, and tell them the ticket number. Only verified visitors can get a ticket. A visitor the widget can't verify gets the message you set and is shown how to verify; no ticket is opened for them, and the agent can't tell them about any tickets.

Turn on Agent can open tickets for verified visitors in Products & tickets (it needs Lemu Tickets connected). On your website these settings replace the agent's own ticket options from Tools & files for every step (see Agent Node).

FieldWhat it does
When to open a ticketPlain words the agent follows, like "A refund started more than 5 days ago that hasn't arrived. A damaged or wrong item." Up to 1,000 characters.
Priority when the agent doesn't choose oneP1 (urgent) to P4 (low). Default P3.
Project for new ticketsA Lemu Tickets project, or Default project.
Agent can tell visitors the status of their ticketsThe agent can look up the verified visitor's own tickets.
Customers signed in on your websiteAlways on. Shows the widget's secret (with Copy secret) that your server signs with.
Visitors can verify their phone with a WhatsApp codeFor visitors who aren't signed in. Pick the WhatsApp template for the code: an approved Authentication template. Each code is one WhatsApp message paid from your WhatsApp balance.
What the agent tells visitors who aren't verifiedUp to 300 characters. Default: "To raise a support request, please sign in to your account first, then come back to this chat."
Sign-in page link (optional)Shown as a Sign in button in the chat or call window. During a call it opens in a new tab, so the call isn't cut.

Use See it in the preview: Verified visitor / Not verified to see both cases in the Live preview.

How a visitor is verified#

  • Signed in on your website. Your site tells the widget who is signed in, with a signature your server makes (below). The widget sends it with the chat or call. A visitor who signs in after starting a chat is verified on the next page they open.
  • A WhatsApp code. The agent's reply shows Verify it's you to raise a request. The visitor types their number with the country code (+91 98765 43210), presses Send code, and types the 6 digits from WhatsApp. In a chat, the agent then carries on and opens the ticket. On a call, the window says "You're verified. Tell the assistant to go ahead." and the agent opens the ticket when asked again.

The ticket's requester is always the verified visitor: their email or phone, never details the page or the conversation gave. The ticket shows in the chat or call window as a card with its number and status. Tickets from the widget have the source web_chat (chat) or voice (call).

Customers signed in on your website#

Before the widget code, put the signed-in customer in window.LemuWidgetConfig.user. Make the signature on your server, never in the browser, because the secret must stay secret:

  • signature is the HMAC-SHA256, in lower-case hex, of the customer's email in lower case, made with the widget's secret.
  • With no email, sign the phone number in international format with the +, like +919876543210, and pass phone instead of email.

Shopify (Liquid)

liquid
{% if customer %}
<script>
  window.LemuWidgetConfig = {
    user: {
      email: {{ customer.email | downcase | json }},
      name: {{ customer.name | json }},
      signature: {{ customer.email | downcase | hmac_sha256: "YOUR_WIDGET_SECRET" | json }}
    }
  };
</script>
{% endif %}

Node.js

JavaScript
import crypto from "node:crypto";
 
const signature = crypto
  .createHmac("sha256", process.env.LEMU_WIDGET_SECRET)
  .update(customer.email.trim().toLowerCase())
  .digest("hex");
 
// In the page, before the widget code:
// window.LemuWidgetConfig = {
//   user: { email: "priya@example.com", name: "Priya Sharma", signature: "<signature>" }
// };

PHP

PHP
<?php $signature = hash_hmac('sha256', strtolower(trim($customer_email)), getenv('LEMU_WIDGET_SECRET')); ?>
<script>
  window.LemuWidgetConfig = {
    user: { email: <?= json_encode($customer_email) ?>, name: <?= json_encode($customer_name) ?>, signature: "<?= $signature ?>" }
  };
</script>

Python

Python
import hashlib
import hmac
import os
 
signature = hmac.new(
    os.environ["LEMU_WIDGET_SECRET"].encode(),
    customer_email.strip().lower().encode(),
    hashlib.sha256,
).hexdigest()
# Put it in the page as window.LemuWidgetConfig.user.signature, with the email and name.

Shopify's Liquid example puts the secret in your theme's code, which only your store's staff can read. Don't put the secret in JavaScript files or anywhere a visitor can download it.

Control the widget from your own code#

Product buttons from your own code#

JavaScript
// A function a card button can run ("Run a function on your website").
// product has sku, variant_id, product_id, title, url, price, mrp,
// currency, in_stock, size and colour.
LemuWidget.registerAction("addToCart", async (product) => {
  await fetch("/cart/add.js", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ id: product.variant_id, quantity: 1 }),
  });
  return { message: "Added to your cart" }; // shown to the visitor for a moment
});
 
// This page's own buttons (up to two). They replace the ones set in LemuAI on this page.
LemuWidget.setProductActions([
  { label: "Add to cart", run: "addToCart" },
  { label: "Ask about it", message: "Tell me more about {title}" },
  // { label: "Size guide", link: "https://yourshop.com/size-guide?sku={sku}" },
  // show: (product) => product.in_stock   (hide a button for some products)
]);
 
// Know when a card button is pressed
LemuWidget.onProductAction(({ label, product }) => {
  console.log(label, product.sku);
});

The same buttons can be set before the widget code with window.LemuWidgetConfig = { productActions: [...] }. A function that throws shows "Couldn't do that. Please try again." to the visitor; a button whose function your site hasn't added shows "This button isn't set up on this site yet."

Open, close and hide#

JavaScript
LemuWidget.open();
LemuWidget.close();
LemuWidget.toggle();
 
// Start or end a voice call (Call, and Chat and call)
LemuWidget.start();
LemuWidget.end();
 
// Hide it on some pages, e.g. checkout
LemuWidget.hide();
LemuWidget.show();
 
// Before the widget code: change settings for one page and
// pass visitor details to your agent's template variables
window.LemuWidgetConfig = {
  buttonText: "Ask about this product",
  context: { product_name: "Runner Lite", customer_name: "Asha" },
};

Settings in LemuWidgetConfig use the names the widget saves, such as buttonText, buttonColor, launcherShape and position. What visitors can do (chat, call or both), product cards and tickets can only be changed in LemuAI. context fills the agent's template variables; it never makes a visitor verified.

Limits#

  • Up to 2 buttons per card and 10 cards per reply.
  • A chat allows 50 messages from the visitor; after that they start a new chat.
  • WhatsApp codes: 3 per conversation a day, 5 per phone number an hour, 10 an hour from one internet address, and one every 30 seconds. A code lasts 10 minutes and allows 5 tries.

Common problems#

Start Call

The first step of every voice agent: what it says first, how it opens the conversation, and what it collects.

https://docs.lemuai.com/voice-agent/start-call

The Start Call step is where every call begins. It decides the first thing the caller hears and how the agent opens the conversation. Each voice agent has exactly one Start Call step.

Open it by clicking the step on the agent's canvas (Voice Agents → Agents, open an agent). The panel is titled Start Call.

Fields#

FieldWhat it doesDefault
NameA short name for the step, shown in call logs.Start Call
GreetingOptional. Words spoken as soon as the call connects, exactly as written, instead of letting the AI write the first line. Supports variables like {{first_name}}.Empty (the AI writes the opening line from the prompt)
PromptInstructions for this part of the call: who the agent is, why it's calling, what to find out first.Empty
Delayed StartWaits before the agent speaks, so the caller can say "hello" first. Set Delay (seconds) between 0.1 and 10.Off, 2 seconds when turned on
Allow InterruptionWhether the caller can talk over the agent and make it stop.On
Enable Variable ExtractionSaves details from the conversation into variables (for example preferred_date). Add an Extraction Prompt and each Variable with its type (String, Number or Boolean).Off
Tools, Documents, Catalogs, OffersWhat the agent can use in this step: tools, knowledge base files, catalogs to look items up in, and offers it can talk about. Items shared with every step aren't added to Start Call.None

Example#

A cash-on-delivery confirmation call:

  • Greeting: Namaste {{first_name}}, this is Riya from Asian Footwears about your order {{order_id}}.
  • Prompt: You are Riya, a polite order confirmation assistant. Ask the customer to confirm they want the order of {{order_total}} rupees delivered to {{city}} with cash on delivery. If they say yes, thank them. If they want to cancel or change something, note why.
  • Variables: confirmed (Boolean), cancel_reason (String).

The {{…}} values come from the contact, the journey or the API call that started the call. See Template Variables.

Tips#

  • Keep the greeting to one sentence. Long greetings make people hang up.
  • Use Greeting when the first line must be exact (a legal disclosure, the business name). Leave it empty when the opening should adapt to the person.
  • Put rules that apply to the whole call (tone, language, what never to say) in the Global Node instead of repeating them here.

Common problems#

  • The agent waits in silence at the start: check Delayed Start isn't set too long, and that the greeting or prompt isn't empty.
  • The greeting says {{first_name}} out loud: the variable had no value. Check the contact has the field, or write the greeting without it.

End Call

The last step of a voice agent: what the agent says before it hangs up, and what it saves from the call.

https://docs.lemuai.com/voice-agent/end-call

The End Call step closes the conversation: the agent says its final words and the call ends. Each voice agent has one End Call step. Agent steps lead to it when the conversation is done.

To end a call from inside any step instead (for example when the caller asks to stop), give that step the End Call tool.

Fields#

FieldWhat it does
NameA short name for the step, shown in call logs.
PromptWhat the agent should say before hanging up: thank the caller, confirm the next step, say goodbye.
Add Global PromptAdds the Global Node's instructions to this step's prompt.
Enable Variable ExtractionSaves details from the whole conversation into variables when the call ends, with an Extraction Prompt and a type for each Variable (String, Number or Boolean).

Example#

  • Prompt: Thank the customer by name. If they confirmed the order, tell them it will arrive in 3 to 5 days. If they cancelled, say the order is cancelled and no money was taken. Then say goodbye.
  • Variables: outcome (String: confirmed, cancelled or call_back), call_back_time (String).

Extracted variables appear on the call's run (Insights → Runs → Agent Calls), in the webhook after the call, and in the journey that placed the call.

Common problems#

  • The call ends without a goodbye: the agent used the End Call tool from another step. Add a short goodbye to that step's prompt.
  • Variables are empty: describe each variable clearly ("the date the customer asked to be called back, as YYYY-MM-DD") and turn on extraction in the step where the detail is discussed.

Agent Node

Agent steps hold the conversation: one prompt per stage of the call, with tools, files, catalogs and the paths to the next stage.

https://docs.lemuai.com/voice-agent/agent

An Agent step is one stage of a call, like "confirm the address" or "handle an objection". A voice agent is a set of these steps joined by arrows (edges), starting at Start Call and ending at End Call.

The arrows leaving an Agent step are the paths the AI can take next. Give each arrow a clear label and condition (for example "the customer agreed to pay"); the AI picks the path that fits what was said.

Fields#

The panel is titled Edit Agent.

FieldWhat it does
NameA short name for the stage, shown in call logs, like Confirm address.
PromptWhat the agent does in this stage. Write it as instructions: the goal, the questions to ask, what to do with each kind of answer.
Allow InterruptionWhether the caller can talk over the agent.
Add Global PromptAdds the Global Node's shared instructions to this prompt. Usually on.
Enable Variable ExtractionSaves details said in this stage into variables, each with a type (String, Number or Boolean) and its own extraction prompt.
ToolsTools the agent can use here, like Call Transfer or an HTTP API lookup.
DocumentsKnowledge base files it can read from (Files).
CatalogsCatalogs it can look up price, stock and details in (Catalog).
OffersOffers it can talk about, and give the caller their own code for.
Use tools & files shared with every stepAdds what's set under Available in every step. On by default.
Language & Voice OverridesUse another voice or language for this stage only: Voice Provider, Voice Model, Voice Override, Voice Language, Transcriber Provider, Transcriber Model, Transcriber Language.

Available in every step#

Some things the agent needs throughout the conversation, not in one step. Press Tools & files for every step in the editor toolbar to open Available in every step. What you add there goes to every Agent step on top of its own items. The Start, End and Global steps don't get them, and a step can turn off Use tools & files shared with every step.

SectionWhat it does
Knowledge filesFiles for FAQs, policies and price lists the caller may ask about at any point.
CatalogsCatalogs the agent looks products, sizes and stock up in.
OffersOffers the agent can tell callers about, with their personal code.
Agent can open support ticketsLets the agent open a ticket in Lemu Tickets in calls and chats, for problems it can't solve, and give the customer the ticket number. Needs Lemu Tickets connected.
ToolsOther tools. Usually better on the step that needs them.

With Agent can open support tickets on:

FieldWhat it does
When to open a ticketPlain words the agent follows, like "A refund started more than 5 days ago that hasn't arrived. A damaged or wrong item. A payment taken twice." Up to 1,000 characters. Empty lets the agent judge.
Priority when the agent doesn't choose oneP1 (urgent) to P4 (low). Default P3.
Project for new ticketsA Lemu Tickets project, or Default project.
Customers can ask about their ticketsThe agent can also look up the status of the customer's own tickets. On by default.

The ticket is for the person the agent is talking to: on a phone call, the caller's number and the contact it belongs to. On your website only verified visitors get a ticket (see Web Widget), and the widget's own ticket settings are used there when they're on. A step that has its own saved Create ticket tool uses that one instead.

Example: a support agent with When to open a ticket set to "The order hasn't arrived 7 days after the delivery date, or the item came damaged". A caller says their order SO-10422 came damaged. The agent says "I've raised ticket SUP-1042 for the damaged item. Our team will call you within a day." and carries on helping.

Example#

A payment reminder agent with three stages:

  1. Remind: "Tell the customer that EMI {{emi_amount}} is due on {{due_date}}. Ask when they will pay." Paths: "customer gives a date" → Note date; "customer has a problem paying" → Hardship.
  2. Note date: "Repeat the date back and confirm." Variable promised_date (String). Path → End Call.
  3. Hardship: "Listen, be kind, and offer a call from the collections team." Tool: Call Transfer. Path → End Call.

Tips#

  • One goal per step. A long prompt that tries to do everything is harder for the AI to follow than three short steps.
  • Name paths by what the caller said, not by what happens next.
  • Test each path with a web call before going live (see Testing Your Agent).

Global Node

Instructions every step of a voice agent follows: tone, language, rules and objection handling, written once.

https://docs.lemuai.com/voice-agent/global

The Global Node holds instructions that apply to the whole call. Its prompt is added to every step that has Add Global Prompt turned on, so you write shared rules once instead of in each step. Each voice agent has one Global Node.

What to put in it#

  • Who the agent is and the business it speaks for.
  • Tone and language, for example "Speak in simple Hindi or English, matching the customer. Be polite and brief."
  • Rules for every step: "Never promise a refund", "Don't ask for card numbers or OTPs".
  • How to handle common objections ("I'm busy", "How did you get my number?").

Example#

Text
You are Riya from Asian Footwears customer care.
Speak in the language the customer uses (Hindi, English or Hinglish).
Keep each answer under two sentences.
Never ask for OTPs, card numbers or passwords.
If the customer is busy, ask for a better time and end politely.
If asked how we got their number: they ordered from us or signed up on our website.

How to use it#

  1. Open the agent and click the Global Node (panel Edit Global Node).
  2. Write the shared instructions and save.
  3. In each step that should follow them, turn on Add Global Prompt. It's usually on for every Agent step and End Call.

Keep stage-specific instructions in the steps themselves; the Global Node is for what never changes during the call.

API Trigger

API Trigger helps you trigger your Voice Agent using external systems, like N8n or Zapier

https://docs.lemuai.com/voice-agent/api-trigger

API Payload#

The API Trigger is a POST request, which requires an API Key. It expects a valid JSON with phone_number and initial_context.

Initial Context#

initial_context is a valid JSON object, which contains any contextual information that you would want your voice agent to access. You can refer to these values in your prompts using Handle Bars, which are values enclosed in {{ and }}.

Example: If you have below JSON as your initial_context

Text
{
    "initial_context": {
        "user": {
            "name": "John"
        }
    }
}

you can refer to the user name in your prompts as {{user.name}}. The keys of initial_context are added to the call's context directly, so you don't prefix them with initial_context.

Webhook

Webhook node allow you to sync the result of Voice Agent runs to your external systems, like CRM or to other workflow orchestrator like Zapier or n8n.

https://docs.lemuai.com/voice-agent/webhook

You can have multiple Webhook Nodes for a single Voice Agent, if you want to sync the result of the call at multiple places.

Creating the Webhook Payload#

The payload can contain a valid JSON, and you can reference variables while constructing that payload. You can reference below variables while constructing the payload.

  • {{workflow_run_id}} Unique ID of the Agent run
  • {{workflow_id}} ID of the Agent
  • {{workflow_name}} Name of the workflow
  • {{initial_context.*}} Initial context variables
  • {{gathered_context.*}} Extracted variables
  • {{cost_info.call_duration_seconds}} Call duration
  • {{recording_url}} Call recording URL
  • {{transcript_url}} Transcript URL

An example of the payload is given below

Text
{
  "call_id": "{{workflow_run_id}}",
  "first_name": "{{initial_context.first_name}}",
  "rsvp": "{{gathered_context.rsvp}}",
  "duration": "{{cost_info.call_duration_seconds}}",
  "recording_url": "{{recording_url}}",
  "transcript_url": "{{transcript_url}}"
}

Call Transfer

Enable your AI agent to transfer calls to phone numbers or SIP endpoints with built-in call transfer functionality.

https://docs.lemuai.com/voice-agent/tools/call-transfer

The Call Transfer tool enables your AI agent to transfer active calls to phone numbers or SIP endpoints. When configured, your agent can seamlessly transfer callers to human operators, departments, or other systems while maintaining a professional experience.

Supported Providers#

Call transfer is available for telephony calls using Twilio or Asterisk ARI providers. Web calls do not support transfer functionality.

How It Works#

The Call Transfer tool performs blind transfers where no call context is shared with the destination. Here's what happens:

  1. Agent Decision: Your AI agent determines a transfer is needed and calls the transfer function
  2. Pre-transfer Message: (Optional) Agent plays a custom message like "Let me transfer you to our sales team"
  3. Hold Experience: Caller hears hold music while the transfer is processed
  4. Connection: Once the destination answers, the caller is connected directly
  5. Agent Handoff: The AI agent ends its involvement in the call

Configuration#

Basic Settings#

  • Destination: Phone number or SIP endpoint (see formats below)
  • Timeout: How long to wait for destination to answer (default 30 seconds)
  • Pre-transfer Message: Optional custom message played before transfer

Destination Formats#

For Twilio:

  • Phone numbers: E.164 format: +1234567890
  • Must be a valid reachable phone number

For Asterisk ARI:

  • SIP endpoints only: PJSIP/extension or SIP/endpoint
  • Examples: PJSIP/sales-queue, SIP/1001, PJSIP/conference-room

Asterisk ARI transfers only work with SIP endpoints configured on your Asterisk server. External phone numbers require additional PSTN trunk configuration.

Setup Requirements#

  1. Organization Setup: Ensure your organization has a supported telephony provider configured
  2. Tool Enablement: Add the Call Transfer tool to your agent's available tools
  3. Destination Validation:
    • Twilio: Verify phone numbers are reachable
    • ARI: Verify SIP endpoints exist on your Asterisk server
  4. Testing: Test transfers in your specific provider environment

Troubleshooting#

  • Destination not reachable: Verify destination number/endpoint is valid and reachable
  • Tool not available: Check that Call Transfer tool is added to the correct agent node
  • Transfer failures: Handle transfer failure scenarios within your agent prompts

End Call

Allow your AI agent to terminate calls when conversations reach a natural conclusion or specific conditions are met.

https://docs.lemuai.com/voice-agent/tools/end-call

The End Call tool enables your AI agent to terminate calls programmatically when conversations reach a natural conclusion, specific conditions are met, or when instructed by the caller.

How It Works#

The End Call tool provides a clean way to terminate conversations:

  1. Agent Decision: Your AI agent determines the call should end based on conversation context
  2. Optional Message: Agent can provide a closing message before ending the call
  3. Clean Termination: Call is terminated gracefully through the telephony provider
  4. Call Disposition: Call disposition is updated in the system

Configuration#

Basic Settings#

  • End Message: Optional closing message played before termination
  • Reason: Optional reason code for call termination tracking

Agent Usage#

Your AI agent can end calls during conversations:

Text
end_call(message="Thank you for calling. Have a great day!", reason="conversation_complete")

Common scenarios:

  • Conversation has reached natural conclusion
  • User explicitly requests to end the call
  • Agent has completed all requested tasks
  • Call timeout or error conditions

HTTP API

Create REST API tools that your AI agent can invoke during conversations to integrate with external systems.

https://docs.lemuai.com/voice-agent/tools/http-api

HTTP API tools allow you to attach extrernal REST API calls directly to workflow nodes, enabling your voice agents to call any internal or external system during live conversations based on LLM judgment and your prompts. This works similar to function calling on any agentic platform and is fully customizable.

What is an HTTP API Tool?#

An HTTP API Tool is a REST API definition that the LLM can invoke at runtime.

Typical use cases:

  • Call your own backend endpoints
  • Trigger n8n automations
  • Sync data with a CRM
  • Fetch data from external APIs (weather, pricing, availability, etc.)
  • Write/update/read data using Rest API

The LLM decides:

  • which tool to call
  • when to call it
  • what parameters to send

All based on:

  • Your prompts: node-level instructions in simple english (or any language)
  • Tool name
  • Tool description
  • Parameter definitions

Defining an HTTP API Tool#

1. Tool Name#

  • Must be clear and action-oriented.

  • Examples: capture_lead_interest, fetch_weather, 'create_crm_contact', etc

2. Tool Description#

  • Extremely important
  • This is how the LLM decides when to use the tool.
  • Write it in plain, explicit English.

Bad: "API to capture data"

Good: "This tool is to capture interest. Use this tool when the user clearly expresses interest in the product or wants to be contacted"

3. Endpoint Configuration#

  • Full URL (must include http:// or https://)
  • Supports REST methods
Common mistake: forgetting https:// in the URL.

4. Authentication & Headers#

  • Add custom authentication
  • Add custom headers
  • Works with internal services and third-party APIs

5. Parameters#

Each parameter must have:

  • Name
  • Type
  • Description
  • Required/Optional flag

Parameter descriptions matter more than types.

Guidelines:

  • Start with string parameters when possible
  • Be explicit in what the value represents
  • Mark only truly mandatory fields as required

Example:

  • interest (string): "Set to true if the user clearly shows intent to buy or wants follow-up. Otherwise false."


Attaching Tools to Workflow Nodes#

  • You can attach multiple tools to a single node
  • All the tools that you have created will be available for selection in the node
  • Tools are only callable when attached to that node
  • The LLM will choose which one to call

Inside the node, guide the LLM using simple English instructions.

Example:

"If the user shows interest in speaking to sales or wants a callback, immediately call the capture_lead_interest tool and set interest to true." This instruction is often the deciding factor for correct tool usage.

This instruction is often the deciding factor for correct tool usage.


Tool Invocation Logic (How the LLM Thinks)#

The LLM considers:

  • User's spoken intent
  • Node prompt instructions
  • Tool name and description
  • Parameter descriptions

If these align clearly, the tool is called automatically.

Poor naming or vague descriptions lead to:

  • Missed tool calls
  • Wrong parameters
  • Hallucinated values

Key Best Practices#

  • Name tools clearly
  • Write detailed, action-based descriptions
  • Keep parameters simple at first
  • Always include http/https in URLs
  • Use plain English in node instructions
  • Attach only relevant tools to each node

Well-defined tools + clear prompts = reliable, production-grade voice agents.

Model Configurations

How Lemu Platform handles the AI models (LLM, TTS, STT) behind your voice agents.

https://docs.lemuai.com/configurations/inference-providers

Lemu Platform ships with its own LLM, TTS (voice), and STT (transcriber) models by default, and manages which underlying providers power them. There is no separate screen for bringing your own provider account or API key for these models — this is handled by the platform.

What you can configure:

  • Voice — pick the agent's voice and language. See Voice.
  • Transcriber — pick the transcription language. See Transcriber.
  • LLM — the model itself is managed by Lemu; you shape behavior through prompts. See LLM.

API Keys under API Keys are for pushing data into your contacts and campaigns programmatically — they are not used to configure model providers.

LLM

Voice Agents use an LLM (Large Language Model) to understand conversational context and generate responses.

https://docs.lemuai.com/configurations/llm

Lemu manages the underlying LLM for your voice agents. There is no per-agent provider or model picker to configure — Lemu selects and maintains the model powering your agents so conversations stay fast and reliable as models improve.

What you do control is the agent's behavior: the Global Prompt and each node's prompt, which together are sent to the LLM to generate every response. See Workflows and Agents for how prompts are structured.

Voice

Voice Agents use TTS (Text to Speech), which generates the audio the end user hears during the call.

https://docs.lemuai.com/configurations/voice

Lemu manages the TTS engine for you — there's no provider to pick. For each agent, you choose a voice and a language.

Open the gear icon in the workflow builder toolbar to configure voice and language for that agent.

Select Agent Voice lists the voices available in your Voice Library (in the sidebar) — browse, preview, and clone voices there. If you don't pick a language for an agent, it uses your organization's default. Speech speed and volume can also be adjusted per agent; see Agent settings.

Transcriber

Voice Agents use STT (Speech to Text) to transcribe what the caller says. The transcript is sent to the LLM to generate the agent's response.

https://docs.lemuai.com/configurations/transcriber

Lemu manages the transcription engine for you — there's no provider to pick. You only choose the language transcription should run in, per agent.

Open the gear icon in the workflow builder toolbar for that agent — the same Configurations panel used for Voice settings also has Transcriber (STT) Settings.

If you don't set a language for an agent, it uses your organization's default language. See Agent settings for everything else in the Configurations panel.

Interruption Handling

Control whether users can interrupt the bot while it is speaking by configuring the Allow Interruption toggle on each node.

https://docs.lemuai.com/configurations/interruption

Overview#

Interruption handling controls whether the user can "barge in" and interrupt the bot while it is speaking. This is configured per node in the workflow editor, giving you fine-grained control over conversation flow.

How It Works#

Each node in your workflow has an Allow Interruption toggle:

  • Disabled (default) — The bot finishes its entire response before accepting user input. The user's microphone is temporarily muted while the bot speaks.
  • Enabled — The bot stops speaking as soon as the user starts talking, and immediately processes their input. This creates a natural, conversational experience.

When interruption is disabled and the user tries to speak during bot speech, a one-time warning appears in the live transcript indicating that interruption is disabled for that step.

When to Disable Interruption#

Disabling interruption is useful when the bot needs to deliver a complete message without being cut off:

  • Legal disclaimers — Ensure the full disclaimer is spoken before proceeding.
  • Critical instructions — Step-by-step directions that lose meaning if partially heard.
  • Greeting or introduction — Let the bot finish its opening before the user responds.
  • Confirmation summaries — Read back important details (appointment times, order totals) in full.

When to Enable Interruption#

Keep interruption enabled for interactive conversation stages:

  • Q&A or objection handling — Let the user jump in naturally.
  • Open-ended discussion — Feels more human when either party can interject.
  • Long responses — Allow the user to redirect if the bot goes off track.

Configuring Interruption#

  1. Open your workflow in the Voice Agent Builder.
  2. Select the node you want to configure.
  3. Toggle Allow Interruption on or off in the node settings panel.
  4. Save your workflow.

You can set different interruption behavior for each node. For example, disable interruption on your Start Node greeting but enable it on all subsequent Agent Nodes.

What the User Experiences#

InterruptionBot SpeakingUser SpeaksResult
EnabledYesYesBot stops, processes user input
DisabledYesYesBot continues, user input is ignored until bot finishes
EitherNoYesUser input is processed normally

When interruption is disabled, the platform mutes the user's audio input while the bot is speaking. Once the bot finishes, the microphone is automatically unmuted and the user can respond normally.

Tracing

See what happened during a call: the transcript, tool calls, and optionally full traces in your own Langfuse project.

https://docs.lemuai.com/configurations/tracing

Call Transcript#

Every call run has a Call Transcript panel showing the conversation as it happened, message by message. When the agent calls a tool during the conversation, it appears inline as an expandable card showing the function name, its arguments, the result, and how long the model took to decide to call it.

Open a call from Runs in the sidebar (or from the agent's run history) to see this panel alongside the recording, starting details, and collected details (extracted variables, call disposition, tags).

Full traces via Langfuse#

For a complete trace of every LLM call, prompt, and tool invocation, Lemu can send trace data to your own Langfuse project. To turn this on for your organization, create API credentials for a Langfuse project and contact us at hello@lemuai.com. New calls start sending traces to your project once it is connected.

Tips for debugging calls#

  • Debug unexpected responses — expand a tool-call card to see exactly what arguments the model sent and what came back.
  • Check transcription accuracy — review the transcript for places the agent misheard the caller.
  • Confirm tool usage — the transcript shows whether a tool was actually invoked, which helps when a workflow node has multiple tools attached.

WhatsApp Messaging

Send WhatsApp messages from a live call or a journey, and receive replies and delivery receipts, using your own WhatsApp Business provider

https://docs.lemuai.com/messaging/whatsapp

Lemu can send WhatsApp messages on your behalf, either while a voice agent is on a call or as a step inside a journey, and receive your customers' replies in the Inbox. Everything uses the same organization-level WhatsApp configuration, so you only connect a provider once.

WhatsApp sending shows up in four places:

  • A "Send Message" tool you attach to an agent node, so the model can send a WhatsApp message (a link, a confirmation, a follow-up) to the caller mid-conversation.
  • A message node inside a journey, so a workflow can text someone as one of its steps, for example after a call ends or when a trigger condition fires.
  • The Inbox, where your team and the AI assistant answer customers.
  • Your own system, through the API: Send a WhatsApp Template sends an approved template to one number with your API key, and Get a WhatsApp Message tells you whether it was delivered and read.

WhatsApp sending must go through an approved WhatsApp Business Solution Provider (BSP). Lemu does not provide WhatsApp numbers or templates itself; you connect your own provider account.

Connect a WhatsApp provider#

Configuration lives on the Integrations page (Settings → Integrations in the sidebar), in the WhatsApp messaging section. Choose one of the supported providers and save its credentials:

ProviderCredentials
WATIAPI endpoint, API token
Meta Cloud APIPhone number ID, access token, (optional) WhatsApp Business Account ID, needed to list templates, and App secret (recommended), used to check that webhooks really come from Meta
GupshupAPI key, source WhatsApp number, and (optional) app name, needed to list templates
Twilio WhatsAppAccount SID, auth token, WhatsApp-enabled from number, or reuse your existing telephony Twilio credentials

Saved secrets (API tokens, access tokens, auth tokens, app secret) are masked once stored. The dashboard shows them back as asterisks, and re-saving the form without touching a masked field keeps the existing value.

Once a provider is connected, use Test send on the same page to send a real WhatsApp template message to a number you specify. This confirms your credentials and template work before you wire them into a call or journey.

Receive replies and delivery receipts#

To see customer replies in the Inbox and know whether your messages were delivered and read, your provider must send them to Lemu. After you save a provider, the Receipts and replies section on the same page shows a Callback URL (and, for Meta, a Verify token) to copy, plus what to do at the provider:

ProviderWhere to set it
Meta Cloud APIIn your Meta app → WhatsApp → Configuration, set the Callback URL and Verify token, then subscribe to the messages field
Twilio WhatsAppDelivery receipts are requested on every send automatically. For customer replies, set the Callback URL as the "A message comes in" webhook (HTTP POST) on your WhatsApp sender
WATIIn WATI → Webhooks, add the URL and tick Message received, Template/Session message sent, Delivered, Read and Template message failed
GupshupIn your Gupshup app → Webhooks, add the URL and tick the sent, delivered, read and failed message events

The Callback URL is unique to your organization and provider. Keep it private. Lemu also checks the provider's own signature where the provider signs its webhooks (Meta with the app secret, Twilio with the auth token), and ignores anything that doesn't check out.

Once it is set up:

  • Delivery receipts update each message's status (sent, delivered, read or failed) in the Inbox, on the contact and in the Event Log (with Message updates ticked).
  • Customer replies appear in the Inbox and are recorded as a whatsapp_message_received event on the contact, which segments and journeys can use. A reply also opens WhatsApp's 24-hour window for free-form messages.

Opt-out and opt-in#

A customer stops your WhatsApp marketing when they reply with an opt-out word, tap Stop promotions on a marketing template, or choose Stop marketing for your business in WhatsApp itself. Lemu sets their WhatsApp consent to opted out. An opt-in word sets it back.

Opts outOpts in
STOP, STOP ALL, UNSUBSCRIBE, OPT OUT, STOP PROMOTIONS (Meta's opt-out button), बंद करेंSTART, SUBSCRIBE, UNSTOP, OPT IN, RESUME PROMOTIONS

Only a whole message counts: "stop" opts out, but "please don't stop my order" does not. Words like "cancel" or "end" are ignored on purpose, because customers use them about orders.

An opt-out stops marketing, as Meta's own opt-out does. Lemu doesn't send them broadcasts or marketing templates, whether the send comes from a call, a journey, a campaign or the API; the send fails with "This contact stopped marketing messages on WhatsApp". Replies in a chat they start (from the AI assistant, an agent or your team), utility templates such as order updates, and authentication codes still go.

A contact marked Opted out of everything gets nothing on any channel; the send fails with "This contact has opted out of all messages".

If Meta refuses a marketing message because the customer stopped marketing in WhatsApp (code 131050) and Lemu hadn't heard, Lemu records the opt-out then. See who opted out, and after which message, on WhatsApp analytics.

Session messages vs. template messages#

Every WhatsApp send is one of two kinds:

  • session: a free-form text message. This only works if the recipient has messaged your WhatsApp number within the last 24 hours (WhatsApp's session window).
  • template: a pre-approved WhatsApp message template. This works at any time, which makes it the right choice for anything business-initiated (outbound reminders, payment links, confirmations).

Templates must already be approved in your WhatsApp Business account. Lemu lists your approved templates by calling your provider's API. It doesn't create or submit templates for approval.

Working with templates#

Wherever you configure a WhatsApp send (the in-call tool, a journey node or the Inbox), you pick a template from a searchable picker that:

  • Loads your approved templates from the connected provider
  • Shows a WhatsApp-style preview of the template body, with {{variable}} placeholders highlighted
  • Lets you fill in a value (or a template expression like {{context.name}}) for each variable the template defines
  • Shows a URL button suffix field if the template has a URL button, so you can fill in the dynamic part of the link (for example, a payment or callback URL). For a button made with Count clicks on this button, the field asks for the whole page to open instead; see Link Click Tracking

If no approved templates are found, the picker falls back to a plain text field for the template name and shows a hint pointing back to the messaging configuration.

Sending WhatsApp during a call#

Attach a Send Message tool to an agent node so the model can send a WhatsApp message while the call is active. In the tool's configuration you set:

  • Destination: either the current caller (the tool defaults to the phone number on the call) or the model provides the number (the model must pass a phone number as an argument)
  • Message kind: session or template, and if template, which template and its variables and URL button suffix (with the same template picker described above)
  • Spoken line before sending: optional. None, or a custom line the agent says before it sends the message (for example, "I'm sending that on WhatsApp now.")

To add one, go to Agent Setup → Tools, click New, choose the Send Message type, then tick the tool in the Agent Node's tool list. See Tools Library.

At runtime, the model can still pass a link or name argument when it calls the tool. These fill in remaining template variables (a URL button suffix, or a name variable) even if you didn't set them at configuration time. If the destination is set to "current caller", Lemu resolves the recipient's number from the call itself; you don't need the model to know or repeat it.

Session messages sent from this tool only succeed if the caller has an open 24-hour WhatsApp session with your number. Otherwise, use a template.

Sending WhatsApp from a Journey#

Inside a journey, a message node sends a WhatsApp message as one step in the workflow. Its configuration includes:

FieldPurpose
to / to_fieldRecipient phone number, or a template expression that resolves to one (e.g. {{context.phone}})
kindsession or template
template_nameWhich approved template to send (required for template)
languageTemplate language code (defaults to en)
template_paramsValues for the template's variables, keyed by variable name or position (e.g. {"1": "{{context.name}}"})
button_url_suffixDynamic part of the template's URL button, if it has one

A message node fails validation (and won't run) if it's missing a recipient, a template send is missing a template, or a session send is missing a body.

See Journey Nodes & Triggers for how the message node fits alongside other journey steps.

Sending WhatsApp from your own system#

To send a template from your store, CRM or backend (an order update, a payment reminder, a login code), call Send a WhatsApp Template with an API key from Settings → API Keys. You send the template's id (the Template ID in its side panel under WhatsApp → Templates, or its name and language instead), the number, and the values for its variables:

JSON
{
  "to": "+919876543210",
  "template_id": 44,
  "variables": { "1": "Priya", "2": "SO-10422" }
}

The message is paid from your WhatsApp balance, is never sent to a contact who opted out of everything (nor a marketing template to one who stopped WhatsApp marketing), and shows in the contact's Inbox conversation labelled API. Check delivery with Get a WhatsApp Message.

Phone number format#

Recipient numbers should be in E.164 format (e.g. +919876543210). Lemu normalizes numbers before sending and rejects a number it can't send to. A 10-digit US-style number without a + is assumed to be +1; anything else without a recognizable country code is treated as invalid.

Troubleshooting#

  • "No organization on this call; cannot send a message": the call isn't associated with an organization. This shouldn't happen in normal use.
  • Messaging not configured: no WhatsApp provider has been saved for your organization yet, or the saved configuration is incomplete. Go to Settings → Integrations and save valid credentials for a provider.
  • No approved templates found: your provider account has no templates in an approved state, or a piece of provider config needed to list them is missing (Meta Cloud API needs a WABA ID; Gupshup needs an app name). Outbound WhatsApp must use an approved template outside the 24-hour session window.
  • Invalid recipient: the phone number couldn't be normalized to E.164. Check that the number (or the field or expression supplying it) includes a country code.
  • "This contact stopped marketing messages on WhatsApp": the contact replied STOP (or a similar word), tapped Stop promotions, or stopped marketing in WhatsApp, and this is a broadcast or a marketing template. They can opt back in by replying START.
  • "This contact has opted out of all messages": the contact is marked Opted out of everything.
  • Replies don't show up in the Inbox: check the webhook at your provider against Receipts and replies on the Integrations page. For Meta, make sure the messages field is subscribed and the app secret matches.
  • Provider rejected the send: Lemu shows the provider's error message as-is. Check the template's approval status and parameter count against what the provider expects.

Support#

If you run into an issue connecting a provider or sending a message, reach out to ashish@lemuai.com.

WhatsApp numbers

Add and manage WhatsApp numbers: quality and daily limits, the business profile, conversation starters, PIN, chat links and numbers you also use in the WhatsApp Business app.

https://docs.lemuai.com/whatsapp/numbers

Engage → WhatsApp → Numbers lists every WhatsApp number on the workspace with its quality and daily limit. Managing numbers needs the config permission (Owner or Admin).

Before you start#

Connect your WhatsApp Business account on Engage → WhatsApp → Setup (see WhatsApp). Without it the page shows Connect WhatsApp first.

Add a number#

There are two kinds:

  • New number: a number that isn't on WhatsApp yet. Messages go only through LemuAI. It must be able to get an SMS or a call for the code.
  • WhatsApp Business app number: keep using the app on your phone. LemuAI imports contacts and up to 6 months of chats, and both stay in sync.
  1. Enter the number

    Country code and Phone number (like 9876543210), and the Display name customers will see (like Acme Furniture; Meta reviews it).

  2. Verify

    Choose how Meta sends the code (How should Meta send the code?: SMS or voice call) and enter the Code.

The numbers list#

ColumnMeaning
QualityGreen, yellow or red, from Meta. It drops when people block or report your messages
Highest daily limitHow many different customers you may message in 24 hours (Meta's messaging limit)
DefaultThe number journeys and campaigns use unless you choose another
Business appThe number is also used in the WhatsApp Business app

Each number's ⋯ menu: Settings, Refresh from Meta, Make default, Register again, Remove number.

A number's settings#

TabWhat you set
ProfileAbout, Description (up to 512 characters), Business category, Address, Email, Websites (up to 2, starting with https://), and a New display name
StartersConversation starters shown when someone opens a chat (like "What are your opening hours?") and commands (like track → "Track your order")
PINSet a New 6-digit PIN for two-step verification
Chat linkA link that opens a chat with this number, with an optional Message typed in for the customer and Ref code to see which link they came from

Health#

Numbers and health (on the Setup page) shows each number's quality, daily limit and status, and the account's Account review, Business and Payment checks. Low quality or a restriction pauses marketing until it recovers; see WhatsApp troubleshooting.

Paying for messages#

Template messages are paid from your prepaid WhatsApp balance in LemuAI, never billed by Meta. Each template costs Meta's rate for its category and the customer's country plus a small LemuAI margin (at most 5%); a failed message is refunded. Replies inside the 24-hour window are free. Recharge under Usage & Plan → Usage & balances.

WhatsApp Flows

Create forms customers fill in without leaving the WhatsApp chat, and save their answers to the contact.

https://docs.lemuai.com/whatsapp/flows

A Flow is a form inside WhatsApp: the customer taps a button in a message and fills in screens (name, email, city, a choice) without leaving the chat. Flows are under Engage → WhatsApp → Flows and belong to your WhatsApp Business account.

Create a Flow#

  1. Start

    Press New Flow, or Start from a ready Flow. Give it a Name.

  2. Choose where answers go

    Under Save answers to the contact, map each answer: First name, Last name, Email (only if the contact has none), Company, WhatsApp opt-in (when ticked), a Custom field (give it a name like city), or Don't save.

  3. Publish

    Preview it, then Publish. Meta must accept it before you can send it.

The list shows each Flow's Status and Answers saved to. A published Flow can be Deprecated (no longer sent); a draft can be deleted (Delete draft).

Send a Flow#

Add the Flow as a button in a WhatsApp template, then send the template from a campaign, a journey's WhatsApp step or the Inbox.

Use the answers#

  • Answers update the contact as mapped, so segments and journeys can use them right away.
  • A journey can start when a customer sends a Flow: trigger WhatsApp message received (a Flow reply). A Wait for reply step gets the answers as {{context.reply.flow_response}}.

WhatsApp catalog

Show your products on WhatsApp, send them in chats and templates, and receive orders that start journeys.

https://docs.lemuai.com/whatsapp/catalog

Engage → WhatsApp → Catalog puts your products on WhatsApp. Customers can browse them in the chat, add several to a cart and send an order, which LemuAI records and journeys can act on.

Connect a catalog#

Two ways:

  • Sync from a Lemu catalog: LemuAI creates a catalog in Meta and keeps it up to date from a catalog under Audience → Catalog (including your Shopify products). Pick the Lemu catalog and an optional Name on Meta. Products need a price, an image and a link.
  • Connect a Meta catalog: use the catalog you already manage in Meta Commerce Manager (if you sell on Facebook or Instagram).

Shopping on each number#

For each number, turn on Shop (a shop icon in the chat) and Cart (customers can send several products as one order).

Products#

The Products list shows each product's price, stock and whether it's Ready or Not on WhatsApp, with the Problem for products that aren't (fix them in your catalog; the next sync picks it up). The status shows In sync, Syncing, Waiting to sync or Sync failed, with Products on WhatsApp, Last synced and the Meta catalog ID.

Orders#

When a customer sends a cart, a journey with the trigger WhatsApp order placed starts, with the items, total and currency in the run. Use it to confirm the order, ask for the address, or create the order in your store.

Send products#

From the Inbox you can send products in a chat (within the 24-hour window; otherwise use a catalog template). In templates, use a catalog or product button.

WhatsApp analytics

See how your WhatsApp messages perform, what they cost, what failed and why, how fast conversations are answered, and who opted out.

https://docs.lemuai.com/whatsapp/analytics

Engage → WhatsApp → Analytics covers the last 7, 30 or 90 days.

Messages#

FigureMeaning
SentAccepted by WhatsApp
DeliveredReached the phone
ReadBlue ticks
Replied in 24hThe contact wrote back within 24 hours
FailedNot delivered, with the top reason
Template costWhat templates cost from your WhatsApp balance

Per day charts outbound messages by the day sent (UTC). Why messages failed lists failure reasons with counts; each reason is explained in WhatsApp troubleshooting.

By template and By journey show the same figures for each template and journey, so you can see which message works. Their Opted out column counts the people who stopped your WhatsApp marketing with that message as the last one they got from you (in the 7 days before), and what share of the people it was sent to that is. Green is under 0.5%, peach under 1.5%, red above: a red message is driving people away.

Conversations#

New conversations, Customer messages, Median first response and Answered. First response time runs from a customer's message to the next reply from the AI assistant, an agent, a journey or your team.

Opt-outs#

People who stopped your WhatsApp marketing in the period. Each person counts once, even if they sent STOP twice.

FigureMeaning
Opted outThe share of the people you messaged in the period who stopped, with the numbers
Messages before stoppingHow many WhatsApp messages from you each person got before stopping (the median, and the average)
Stopped after your messageThe median time from your last message to the stop
Came backHow many sent START or tapped Resume promotions afterwards

How they stopped splits them by: Typed STOP (or another opt-out word), Tapped Stop promotions on a marketing template, Stop marketing in WhatsApp (the option in WhatsApp itself, or Meta refusing a message because of it) and Marked by your team on the contact page.

Who opted out#

At the bottom of the page, everyone who stopped in the period, newest first: when, how, how many messages they got before (and how many in the 30 days before), the last message they got from you and how long before, and whether they're still stopped. Click a name to open the contact. Phone numbers are masked unless you may see contact phone numbers.

Opt-outs are counted from 25 Oct 2026, when Lemu started keeping consent history. What an opt-out stops is on WhatsApp Messaging.

Journeys

Multi-step journeys that send WhatsApp messages and emails, place calls and call APIs, triggered by your own data and events

https://docs.lemuai.com/automation/introduction

A journey is a set of steps ("nodes") that runs when something happens: a contact adds to cart, a record changes, a schedule ticks, a webhook fires, or you click Run. Where a voice agent workflow is the conversation inside one call, a journey is the business logic around it: who to reach, on which channel, when, and what to do next.

Journeys are stored and run separately from voice agent workflows (which you build in the Voice Agent Builder). A Call step inside a journey is what connects the two: it dials out using one of your existing voice agents.

Journeys were previously called "Automations". You may still see the old name in a few places.

How it fits with voice agents#

  1. 1

    Trigger

  2. 2

    Journey steps

  3. 3

    Call step

  4. 4

    Voice Agent Workflow

  5. 5

    Call result and captured data

  6. 6

    More journey steps

  7. 7

    End

A voice agent only knows how to run one conversation. A journey decides when to start that conversation, gives it context, reacts to how the call went (answered, no answer, voicemail, busy), and carries on afterward: a WhatsApp follow-up, an email, an update to your CRM, a retry later, or a call to a different agent.

Building blocks#

Every journey is a graph of steps on a canvas, in the same style as the voice agent builder. The Add New Node panel groups them like this:

GroupSteps
TriggersTrigger (exactly one per journey, the entry point)
ActionsCall, WhatsApp, Email, HTTP Request, Emit Event, Update Contact, Load History, Schedule Follow-up, Slack, Jira, Google Calendar, Shopify
Flow ControlCondition, Wait, Wait for reaction, A/B split, Look up catalog item, End

See Journey Nodes & Triggers for what each step does and the settings it needs, and Branching and Timing for how to combine waits, reactions, splits and exit events.

Creating a journey#

From Journeys in the dashboard, click New Journey and choose:

  • One-time: dial a set of contacts once, right now. Pick a voice agent and the contacts to call, from a Contact List, a CSV File, or Records (one call per record, for example one per loan or policy). Map the source's columns to the agent's variables, set the calling hours, and click Create journey.
  • Ongoing: runs automatically on a trigger. Pick a trigger type, then describe what should happen in your own words (for example, "when someone adds to cart, wait 30 minutes, send a WhatsApp, and call if they don't order within 4 hours"). The AI Copilot turns each step into a configured node on the canvas.

You land in the canvas builder, where you can keep editing by hand, then Save.

You can also click Import on the Journeys list to upload a journey you exported earlier as JSON.

A new journey starts as a draft. Set it to active before its trigger will fire. A draft or paused journey can still be run with Test, but real triggers (events, webhooks, schedules) only fire for active journeys.

The builder#

Inside a journey, the editor has three tabs:

TabPurpose
CanvasThe step graph: add, connect and configure steps
ReportSends, orders, revenue, A/B results and call results. See Journey Reports
RunsEvery run of this journey, step by step

Use Test to run the journey straight away with your own context. Test runs ignore pause state, allowed hours, frequency caps and the call queue, so you can check a step without waiting for a real trigger. They are kept out of your report figures.

Triggers#

Every journey has exactly one trigger, set on the canvas's trigger node:

TriggerStarts a run when
EventsA contact event happens: from the API, Shopify, your websites and apps, messages, segments or records (for example InitiateCheckout, Purchase, segment_entered)
Record changesA record (a loan, a policy, a booking) is added, changes or is deleted
Record dateA date on a record is some days away or has passed (an EMI due date, a renewal)
Data ConditionA row in a contact list matches a condition. One run per row
ScheduleA cron expression matches, in the time zone you pick
WebhookAn outside system sends a POST to the journey's own URL
Workflow EventAnother journey's Emit Event step fires a matching event name
ManualSomeone clicks Run

Full settings for each are in Journey Nodes & Triggers.

Runs#

Every time a trigger fires (or you click Test), Lemu creates a run: one contact's pass through the journey. A run moves through these states:

StateMeaning
queuedCreated; no step has run yet
pendingAbout to start
runningRunning steps
waitingPaused on a step: a call in progress, a wait, a wait for reaction, or a call waiting for a free line
completedReached an End step
failedA step failed and the run could not continue
cancelledStopped by hand, or the contact left through an exit event

You can see all runs on Journeys → Runs, or one journey's runs on its Runs tab. Each run shows every step that ran, its input and output, and timing, which helps you see why a contact didn't get the result you expected.

Journey settings#

Open Settings in the journey's toolbar:

SettingPurpose
Allowed hoursDays and hours (with time zone) when the journey may send messages or place calls. A run that reaches a message or call outside the window waits for it to reopen
Respect frequency capsOn by default. Skips a message or call to a contact who already reached your sending limits. Turn off for order updates and other messages that must always go out
Count this journey's own conversionsOff by default: the journey's report counts your workspace's conversion events. Turn on and pick other events, for example Lead or a booking, to count those in this journey's report instead. Revenue on the dashboard still counts only the workspace's events
Own attribution windowsOff by default: orders are credited using your workspace's attribution windows. Turn on to set the hours per channel for this journey's messages
Track link clicksOn by default. Links in this journey's WhatsApp messages and emails go out as short links that count clicks. See Link Click Tracking
RetriesRetry calls that don't connect: how many times, how long to wait between tries, and whether to retry on busy, no answer or voicemail

Parallel calls are not set per journey. They come from a shared pool across all campaigns and journeys, set by your plan. When every line is busy, journey calls wait in line ahead of campaign calls. WhatsApp and email steps never wait for a line.

Automatic pausing when too many calls fail applies to campaigns only. A journey keeps running until you pause it.

Calling a voice agent from a journey#

The Call step is the bridge to your voice agents. It:

  • Places an outbound call through one of your active voice agents.
  • Can wait for the call to finish before continuing.
  • Passes chosen journey values into the call, renaming them if the agent's variables use different names.
  • Can bring the agent's captured data back into the journey.
  • Goes down a different path depending on how the call ended: completed, busy, no answer, voicemail, failed, or not called (when no line came free in time).

This is what makes journeys useful on top of voice agents: the journey decides who to call and when, the voice agent handles the conversation, and the journey picks up again with the result.

Next steps#

Journey Nodes & Triggers

Reference for every journey step and trigger type, with the settings each one needs

https://docs.lemuai.com/automation/nodes-and-triggers

Steps that choose the channel and offer per person, read events, chat on WhatsApp with an agent, use AI, update records and sheets, or open tickets are on AI, conversation, data and ticket steps.

When you create a journey, the trigger list offers: Events, Enters or leaves a segment, WhatsApp message received, WhatsApp order placed, Customer opted out of WhatsApp, Record changes, Record date, Catalog item changes, Data Condition, Schedule, Webhook, Workflow Event and Manual. The WhatsApp, segment and catalog choices are ready-made versions of the Events and record triggers described below. Customer opted out of WhatsApp starts when a customer stops your WhatsApp marketing: replies STOP (or a similar word), taps Stop promotions, or chooses Stop marketing in WhatsApp itself.

This page is a reference for building journeys. For what journeys are and how to create one, see Journeys first. For how to combine waits, reactions, A/B splits and exit events, see Branching and Timing.

Each step keeps its settings in the node's data. Most text fields accept {{context.*}} placeholders, which are filled in from the run's context just before the step runs.

Actions#

Trigger: the entry point

Every journey has exactly one Trigger step. When a run starts it simply passes through, because the run's starting context has already been set by whatever started it. Its real job is configuration: the node's data holds the trigger_type and that trigger's settings, described in Triggers below.

Call: place an outbound call

Dials out through one of your voice agents and, optionally, waits for the result.

FieldPurpose
agent_idRequired. The voice agent to call with
phone_number / phone_fieldRequired. The number to dial, or a placeholder that resolves to one
wait_for_completionDefault true. If true, the run waits until the call ends. If false, the step finishes as soon as the call is placed
timeout_secondsDefault 300. The longest to wait for the call
max_queue_minutesWhen every line is busy, wait at most this long for one, then take the not_called path. For example 30 for cart recovery, so a WhatsApp goes out instead. Leave empty to wait as long as it takes
agent_input_varsNames of variables the agent's prompts expect
agent_input_var_aliasesMaps an agent variable to a differently named journey value, when the names don't match
extract_outcomesWhich of the agent's captured values to bring back into the journey

Paths: with wait_for_completion on, the step goes down completed, busy, no_answer, voicemail or failed depending on how the call ended. With it off, it goes down initiated once the call is placed. It goes down not_called if no line came free within max_queue_minutes.

Phone lines: calls from journeys and campaigns share your organization's call limit. When every line is busy, journey calls wait in line ahead of campaign calls, oldest first. A waiting run holds nothing while it waits. WhatsApp, email and SMS steps never wait for a line.

Calls are skipped for contacts who opted out of calls, and are subject to the journey's allowed hours and frequency caps.

WhatsApp: send a WhatsApp message

Sends a WhatsApp message through your organization's WhatsApp setup. See WhatsApp Messaging for its full field reference (to_field, kind, template_name, language, template_params, body, button_url_suffix), alongside the WhatsApp setup it depends on.

Use a template (kind: template) for the first message to someone outside the 24 hour session window. Use a plain session message only when replying inside an open session.

Email: send an email

Sends one of your email templates to the contact. Setup required: a sending domain and sender in Email Setup.

FieldPurpose
template_idRequired. The email template to send
template_versionOptional. Pin a version. Leave empty to always send the latest
sender_idOptional. The from address. Leave empty for your default sender
subjectOptional. Overrides the template's subject. Merge tags allowed
kindmarketing (default) or transactional
to_fieldOptional. A placeholder for the address. Defaults to the contact's email

Marketing emails need email consent and get an unsubscribe footer. Transactional emails are for order updates, receipts and similar messages the contact expects.

Paths: success, skipped (the contact unsubscribed, is suppressed, has no address, or reached a frequency cap) and error.

SMS: send an SMS

Sends one of your SMS templates to the contact's Indian mobile number. Setup required: your DLT entity id and a sender in SMS Setup, and SMS credits.

FieldPurpose
template_idRequired. The SMS template to send
sender_idOptional. The sender (header). Leave empty for the default sender that fits the template
variablesOptional. Values for the template's {#var#} slots, in order. Merge tags allowed. Leave empty for the template's own
to_fieldOptional. A placeholder for the number. Defaults to the contact's phone

Promotional and service-explicit templates go only to contacts who opted in to SMS; service-implicit and transactional templates go unless the contact unsubscribed from SMS. Each value holds at most 30 characters once filled in. While SMS credits are empty, the step waits and tries again.

Paths: success, skipped (no opt-in, unsubscribed, no Indian mobile number, a value too long, or a frequency cap) and error.

HTTP Request: call an external API

Sends an HTTP request to any URL, with retries and response extraction.

FieldPurpose
methodGET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS. Default GET
urlRequired. Must start with http:// or https:// unless it's a placeholder
headers, body, query_paramsAll accept {{context.*}} placeholders. A body that is an object or list is sent as JSON
timeout_secondsDefault 30, max 300
retry_config{ "max_retries": 0-10, "retry_on_status": [502,503,504], "backoff_seconds": 1 }. The wait grows with each try (backoff_seconds times the attempt number)
success_status_codesDefault [200, 201, 202, 204]
response_pathA dot path (for example data.result.id) to keep one field of a JSON response instead of the whole body

Paths: success or error. A status code outside success_status_codes, a timeout, or a network error all count as failure once retries run out.

Emit Event: start other journeys

Sends a named event that other journeys can start from, using the Workflow Event trigger.

FieldPurpose
event_nameRequired. The name other journeys' triggers listen for
payloadExtra data added to the event

Every other active journey with an active Workflow Event trigger for this exact event_name gets a run, with the current context plus payload. The output lists how many journeys were started. This journey does not wait for them; it moves to its next step straight away.

Update Contact: write fields onto a contact

Finds the run's contact by phone number and saves the given fields onto it.

FieldPurpose
fieldsRequired. { "field_name": "value or {{placeholder}}" }

first_name, last_name, email, company, title, tags and opted_out are set directly on the contact. Anything else is saved as a custom field. Values like now() + 5d (units d, h, m, s; days if no unit) are turned into a date and time first, which is handy for a hold_until or next_contact_date field. If no contact can be found for the run, the step succeeds without changing anything.

Load History: bring in past runs

Loads earlier completed runs for the same contact or row and adds a summary to the context, so a follow-up call can refer to what happened last time.

FieldPurpose
limitHow many earlier runs to load. Default 2
output_keyWhere to store the list. Default previous_calls
include_fieldsWhich fields to keep per past run. Leave empty for the default set (disposition, call tags, captured values, transcript URL, duration, call summary)
answered_onlyOnly include past runs where the call captured values
flatten_last_extracted / flatten_prefixAlso save the most recent run's captured values as their own context keys, with this prefix (default last_call_)
output_mappingCopy specific fields from the loaded history into context keys you choose
lookup_context_keyField to match past runs by, if the current run has no dedupe key

Newest first: previous_calls[0] is the most recent earlier run. Also sets previous_calls_count.

Schedule Follow-up: wait, then start over or continue

Not a trigger. When the time is up picks what happens after the delay:

  • Start the journey over (the default): creates a brand new run of the same journey for the same contact, after the delay. Use it for "call back in N days" cycles.
  • Continue from here: the same run waits, then carries on down the after wait path. Connect that path back to the step you want to try again, for example the call. Once Max attempts are used up, the run goes down attempts used up instead.
FieldPurpose
delay_days / delay_hours / delay_minutesRequired (at least one above 0). Placeholders allowed, for example {{context.promised_days}}
forward_context_varsWhich context values to copy into the new run. Leave empty to copy everything
dedupe_keyOverride for the new run's dedupe key. Defaults to the current run's, so Load History keeps finding the same contact's history
max_reschedule_countStart over: how many times the chain may reschedule itself before it stops. Continue: how many times the step waits and carries on (Max attempts)

Use Wait instead to pause inside the same run. See Branching and Timing.

Slack: post to a Slack channel

Posts a message through your connected Slack integration.

FieldPurpose
channelRequired. A channel name (for example #general) or channel ID
messageRequired. Message text. Markdown supported

Paths: success or error. Fails straight away if Slack isn't connected.

Jira: create a Jira issue

Creates an issue through your connected Jira integration.

FieldPurpose
project_keyRequired. The short project key shown in issue IDs, for example SUP
summaryRequired. Issue title
issue_typeRequired. Must be valid for that project, for example Task, Bug or Story
descriptionOptional. Issue description

Paths: success or error. Fails straight away if Jira isn't connected.

Google Calendar: book a meeting

Creates an event through your connected Google Calendar integration, on the connected account's primary calendar, always with a Google Meet link.

FieldPurpose
summaryRequired. Event title
start_datetimeRequired. ISO 8601, for example 2026-09-20T15:00:00
end_datetimeOptional. ISO 8601. A default length applies if empty
attendeesOptional. Email addresses, separated by commas
descriptionOptional. Event description
locationOptional. Event location

Paths: success or error. Fails straight away if Google Calendar isn't connected.

Shopify: act on an order

Acts on a Shopify order through your connected store. Setup required: a connected Shopify store.

FieldPurpose
actionRequired. get_order (read the order's current status), confirm_order (tag and note the order as confirmed), cancel_order (cancel an unpaid, unshipped order; never refunds) or tag_order (add tags)
orderOptional. Order id. Leave empty to use the order from the Shopify event that started the run
noteOptional. A note written on the order, for example what the customer said
confirm_tagconfirm_order only. Default cod-confirmed
cancel_tagcancel_order only. Default cancelled-by-call
reasoncancel_order only. customer_changed_mind, wrong_address, duplicate_order or other
restockcancel_order only. Return items to stock. Default on
notify_customercancel_order only. Let Shopify email the customer. Default off
tagstag_order only. Tags to add, separated by commas

The step acts whenever the journey reaches it, so put confirm_order and cancel_order behind a Condition on the customer's answer from the call.

Paths: success or error. Refusals (already shipped, paid or cancelled) and Shopify errors go down error.

Flow control#

Condition: branch the journey

Checks one comparison, or a group of comparisons joined with AND / OR, and goes down true or false (you can rename them with handles).

Single check:

FieldPurpose
fieldValue to check, for example {{context.call_result}}
operatorSee the operator table below
valueValue to compare against (not needed for operators like is_empty)
handlesOptional { "true": "...", "false": "..." } to rename the paths

Grouped checks (nested AND / OR):

JSON
{
  "logic": "and",
  "conditions": [
    { "field": "{{context.status}}", "operator": "equals", "value": "active" },
    { "logic": "or", "conditions": [ { "...": "..." } ] }
  ]
}

Operators:

KindOperators
Equalityequals / eq, not_equals / ne
Comparisongreater_than / gt, greater_than_or_equals / gte, less_than / lt, less_than_or_equals / lte (compares as numbers, then dates, then text)
Textcontains, not_contains, starts_with, ends_with, matches (regular expression)
In a listin / in_list, not_in / not_in_list
Empty or trueis_empty, is_not_empty, is_true, is_false, is_null, is_not_null
Datedate_eq, date_before, date_after, date_before_or_eq, date_after_or_eq (compares by day)
Callback timecallback_due / time_due, callback_not_due / time_not_due (compares a saved callback time with now)

value also accepts now(), today(), and offsets like now() + 3 days or now() - 2 hours.

Wait: pause before continuing

Pauses the run for a set time, or until a set date and time, then continues to the next step.

FieldPurpose
duration_seconds / duration_minutes / duration_hours / duration_daysHow long to wait (you can combine them)
until_timestampISO 8601 date and time, or a callback time, to wait until
async_waitPauses the run in the background instead of holding it. Chosen for you if empty: waits over 60 seconds always pause in the background

A wait can be up to a year long, and long waits use no capacity while they wait. If until_timestamp is already past, the step finishes straight away.

Wait for reaction: wait for the contact to act

Waits until the contact does one of the listed things, or until a time limit passes.

FieldPurpose
eventsRequired. Contact event types that count as a reaction, for example link_clicked, email_clicked or Purchase
duration_days / duration_hours / duration_minutesThe time limit. Up to 30 days

Only events after the step starts count. Clicks (link_clicked, email_clicked) count only on messages this journey sent the contact.

Paths: reacted (straight away, when a listed event happens) or no_reaction (when the time limit is up). The output includes reaction_event, the event the contact reacted with.

A/B split: test different branches

Sends each contact down one of 2 to 5 branches, by weight.

FieldPurpose
variants2 to 5 branches, each { "key": "a", "label": "Discount", "weight": 50 }. Keys are a to e and must be different. Weights must be above 0 and are relative to each other

The same contact always gets the same branch. The output includes variant and variant_label.

Paths: one per branch key (a, b, and so on). The journey report compares branches on orders.

Catalog lookup: load a product

Loads one item from a catalog so later steps can use its details.

FieldPurpose
object_typeRequired. The catalog, for example products
keyRequired. The value to look for, for example {{context.product_id}}
Find the item by (match_fields)Which columns to look for the value in. Default: the item's key. Pick others, like title to find a product by its name, or sku then group_id. Exact match, ignoring case; the first listed column that matches wins, and the run records it as matched_field
output_keyWhere to store the item. Default catalog_item

Later steps use {{context.catalog_item.title}}, {{context.catalog_item.price}}, {{context.catalog_item.url}}, {{context.catalog_item.image_url}} and any other field of the item.

Paths: found or not_found.

End: finish this path

Marks a path of the journey as finished. Every journey needs at least one End step it can reach.

FieldPurpose
dispositionOptional outcome label. Default "completed"
messageOptional note
outputOptional extra data saved with the result

Triggers#

Set on the journey's single trigger step with trigger_type and the fields below.

Events: a contact event happens

Starts a run when a contact event happens, from any source: your app through POST /api/v1/events, Shopify, your tracking sources, messages, segments or custom records. In the API this is trigger_type: contact_event.

FieldPurpose
event_typeRequired. The event type to match, for example InitiateCheckout, Purchase or segment_entered. Meta's standard event names match whatever their case, and older names still match: order_placed matches Purchase, cart_added matches InitiateCheckout
filtersOptional (Only when). Conditions on the event's data, for example total_price at least 1000 or is_cod is true. Operators: is, is not, greater than, at least, less than, at most, contains, does not contain, is one of, is none of, is present, is empty
delay_minutesDefault 0. How long to wait after the event before the journey starts, for example 60 for cart abandonment
cancellation_eventsOptional (Exit events). A list of event types. If any of them happens for the contact, they leave the journey: during the delay, or later while the journey is waiting. For example Purchase for cart abandonment. Older journeys may have a single cancellation_event, which still works
exit_on_segment_exitsegment_entered only. On by default. A contact who leaves the segment leaves the journey
contact_list_idOptional. Only start for contacts in this list
context_mappingOptional. Maps fields from the event's data to context keys. Leave empty to pass all fields through

Available when the run starts: {{phone}}, {{event_type}}, {{event_id}}, the event's data fields, and for Shopify events, {{shopify_order_items}} (the live order items, total and status at call time).

cURL
curl -X POST https://app.lemuai.com/api/v1/events \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "event_type": "InitiateCheckout",
    "phone": "+14155550100",
    "data": { "product_id": "8812", "value": 1499, "currency": "INR" }
  }'

Record changes: a record is added, changed or deleted

Starts a run when a custom record (a loan, a policy, a booking) changes. In the API this is an Events trigger on object_created, object_updated or object_deleted.

FieldWhat to choose
Record typeRequired. Which kind of record to watch
When a recordIs added, changes, or is deleted
Field that changedFor changes: one field, or any field
And the record nowOptional. Conditions on the record after the change, for example status is overdue
Delay (minutes)Optional. How long to wait before the journey starts

See Records for how to set up record types.

Record date: days before or after a date on a record

Starts a run a set number of days before, on, or after a date on each record, for example 3 days before an EMI due date. In the API this is trigger_type: object_date.

FieldPurpose
object_typeRequired. The record type
fieldRequired. A date (or date and time) field on the record
days0 to 365
directionbefore, on or after
atTime of day to start, for example 10:00
timezoneTime zone for at
filtersOptional (Only records where). For example status is not closed

Each record starts at most once per date. If the date on the record changes, it can start again for the new date.

Data Condition: check a contact list

Keeps checking the rows of a contact list and starts one run per matching row. The same row doesn't start again and again.

FieldPurpose
contact_list_idRequired. Which contact list to check
dedupe_fieldThe column that identifies a row. Defaults to phone number. One run per value
dedupe_window_hoursOptional (Repeat After). Start again for the same row after this many hours (for example 24 for once a day). Leave empty to start only once per row, ever
condition_groupConditions on the row's columns, in the same shape as the Condition step. No conditions means every row starts a run
context_mappingMaps list columns to context keys. Leave empty to pass all columns through

Each row's run has the dedupe key {trigger_id}:{dedupe value}, which is what lets Load History find that row's earlier runs.

Schedule: run on a cron expression

Starts a run on a repeating schedule.

FieldPurpose
cronRequired. A standard 5-field cron expression, for example 0 9 * * 1-5
timezoneDefault UTC in the API. The builder starts new triggers on Asia/Kolkata
start_date / end_dateOptional dates when the schedule is active

It runs once per scheduled time, even if the check happens a little late.

Webhook: start with an HTTP POST

Gives the journey its own hard-to-guess URL. Any POST to it starts a run, with the request body as the starting context. No API key is needed: the URL itself is the secret.

FieldPurpose
secretOptional. If set, requests must include X-Webhook-Signature: sha256=<HMAC-SHA256 of the raw body with this secret>

The URL is created with the trigger and shown in the trigger's settings panel.

Workflow Event: started by another journey

Starts a run when another journey's Emit Event step sends a matching event name. Use it to chain journeys together.

FieldPurpose
event_nameRequired. Must exactly match the other journey's event_name
filterOptional. A condition (same shape as the Condition step) on the event's data. The run only starts if it matches

The trigger panel lists event names your other active journeys already send, so you can pick one instead of typing it.

Manual: someone clicks Run

Starts a run only when someone starts it.

FieldPurpose
allowed_user_idsOptional. Only these members can start it. Leave empty for anyone with access to the journey
initial_context_schemaOptional. { "field_name": { "type": "string", "required": true } }. The dashboard asks for these fields when someone clicks Run, and won't start without the required ones

A One-time journey (from New Journey → One-time) doesn't need a trigger you set up yourself. It calls everyone in a contact list, CSV file or set of records once. See Creating a journey.

Next steps#

AI, conversation, data and ticket steps

Journey steps that choose the channel and offer per person, read a contact's events, chat on WhatsApp with an agent, use AI on replies, update records and sheets, and open tickets.

https://docs.lemuai.com/automation/more-steps

These journey steps are added from the Add New Node panel in the journey editor, like the steps in Journey Nodes & Triggers. Each section gives what the step does, its settings, and the paths (exits) it can leave by. Values marked {{…}} are variables from the run.

Choose channel, time and offer#

Picks, for each contact, which channel to try first (email, SMS, WhatsApp, and optionally a call), waits for that person's best hour, and picks an offer tier: no offer for loyal low-risk buyers, high for at-risk big spenders, otherwise standard.

SettingMeaningDefault
ChannelsWhich of email, SMS (Indian mobile numbers), WhatsApp and call it may use
TimingTheir best hour, or nowBest hour
OffersAn offer head per tier (standard, high). Leave a tier out to send no offer
Follow-up hoursHours to wait for a response before trying the next channel (1-72)24
Max attemptsMost channels to try per contact (1-3)2
Who may be calledAt-risk big spenders, contacts above a lifetime value, or anyoneAt-risk big spenders
Call firstAllow a call as the first tryOff (calls are follow-ups only)
ExploreShare of contacts (0-50%) given a random tier, to compare offers10%
Cheaper channel withinUse the cheaper channel when its response is within this percent of the best20%

Exits: email, sms, whatsapp, call (connect each to the step that sends on that channel), then responded (they read, clicked, replied, answered or ordered; for SMS, a link click), no_response (after the last attempt) and unreachable (no channel can reach them).

Connect each send step's outcomes back to this step, so it can wait for a response and try the next channel. Templates use {{offer.chosen.code}} and {{offer.chosen.headline}}.

Look up events#

Reads the contact's own events of one type (website views, add to carts, orders, any custom event) over a time window, and saves a summary for later steps under {{context.events}}.

SettingMeaning
EventLike ViewContent, AddToCart or Purchase
FiltersOn the event's properties (equals, contains, is in, greater than…), values can be variables
Look backHow far back (default 30 days); empty for all time
Group byA property to group by (like content_ids or items.id) to find the most frequent value
Add upA number property (like value) for sum, average, min and max
Minimum countEvents needed to leave by found (default 1)

Results: count, first_at, last_at, last (the newest event's properties, like {{context.events.last.content_name}}), recent (newest 10); with group by, {{context.events.top.value}} and {{context.events.top.count}}; with add up, sum, avg, min, max.

Exits: found, not_found.

Example: a journey started by Enters or leaves a segment looks up ViewContent grouped by content_ids, then a Catalog lookup with key {{context.events.top.value}} to message about the product they viewed most.

Catalog lookup#

Fetches one item from a catalog (like your Shopify products) or a record type by its key, usually from the event ({{context.product_id}}), so later steps can use {{context.catalog_item.title}}, .price, .url and .image_url.

Find the item by lets you look for the value in other columns instead of only the key, for example the title to find a product by name, or sku then group_id. The match is exact, ignoring case, and the first listed column that matches wins. The run records which column matched.

Exits: found, not_found.

Update record#

Changes fields on a custom record: by default the record the journey is about (from Record changes, Record date and Catalog item changes triggers), or another one by record type and key. Values can be variables, and dates like now() or now() + 3d.

Use it to mark a back-in-stock alert as notified, a lead as contacted, or a loan as reminded.

Exits: updated, not_found.

Update Google Sheet#

Writes values into a row of your connected Google Sheet. The row is found by the contact's phone number (the column you mapped to phone when connecting) and added if missing.

  • Columns: sheet column header → value. Values can be variables and dates like now() - 1d. The headers must already exist in the sheet.
  • Sheet: which connected sheet (only needed when you have more than one).

Exits: default, error.

Wait for reply#

Waits for the contact's next WhatsApp message and saves it as {{context.reply}}: reply.text, reply.button_text, reply.button_payload, reply.media, reply.order, reply.flow_response, reply.message_type.

  • Timeout: how long to wait (default 24 hours).
  • Number: only count replies to one business number (empty = any).

Exits: one per button (or list row) of the WhatsApp message before it, text for any other reply, timeout when nothing arrives.

AI step#

One AI call using your workspace's model, usually on the customer's reply. Three modes:

ModeWhat it doesExits
ClassifyPicks one of your labels for the text, like wants_refund, delivery_question, complaintOne per label, plus other
ExtractSaves fields from the text into the run, like order_id and city ({{context.order_id}})default
WriteWrites text from your instructions into the run (default {{context.ai_text}}), for example a personal replydefault
  • Input: the text to work on; default the WhatsApp reply ({{context.reply.text}}).
  • Instructions: what to do, in plain words.
  • Knowledge base documents can be added for it to search.

Exits also include error when the AI fails or the AI balance is empty.

Agent conversation#

Hands the contact's WhatsApp chat to one of your agents until it finishes. The agent answers every message with its prompt, knowledge base and tools, like a call but in chat.

SettingMeaningDefault
AgentThe agent that chats
First turnReply (answer the message that started the journey) or Greet (the agent opens)Reply
Silence hoursLeave by timeout after this long without a customer message24
NumberThe business number; empty = the one the contact last wrote to
Pass variablesJourney variables the agent can use

Exits: completed, handed_off (the agent or customer asked for a person: follow it with Assign to team), timeout and window_closed. Needs an open 24-hour window (the customer wrote recently). The agent's extracted variables join the run like a call's.

Assign to team#

Hands the contact's WhatsApp conversation to your team in the Inbox, optionally to one teammate, with a Note shown in the thread. Then: end the journey (default) or continue.

Use it after an Agent conversation's handed_off exit, or when an AI step classifies a complaint.

Ticket steps (Lemu Tickets)#

Need Lemu Tickets connected.

StepWhat it doesMain settings
Create ticketOpens a ticket for the journey's contact. Later steps can use {{nodes.<step id>.ticket_key}} and ticket_urlTitle (required), description, project (empty = default), type, priority (p1 urgent to p4 low)
Update ticketChanges status (by name), priority, title or labels, with an optional internal noteTicket key (empty = the ticket that started the journey)
Ticket commentAdds a comment: internal (a team note, the default) or public (a reply the customer receives)Ticket key, comment text (required), visibility

Exits: default, error.

Branching and Timing

Control when each step of a journey runs and which path each contact takes: waits, reactions, A/B splits, exit events and catalog lookups

https://docs.lemuai.com/automation/branching-and-timing

A journey rarely sends everything at once. Most good journeys pause, check what the contact did, and only then decide the next step. This page covers the steps that control timing and branching:

StepWhat it does
WaitPauses the contact for a fixed time, or until a date and time
Wait for reactionWaits until the contact does something (clicks, orders) or a timeout passes
A/B splitSends each contact down one of 2 to 5 branches, by weight
ConditionPicks a path based on data the journey already has
Look up catalog itemLoads a product (or other catalog item) so later steps can use its details
Exit eventsRemoves a contact from the journey as soon as a chosen event happens

All of these are in the Flow Control group of the Add New Node panel, except exit events, which you set on the trigger. For the full field reference of every step, see Journey Nodes & Triggers.

Wait#

The Wait step holds the contact at that point in the journey, then continues to the next step in the same run.

  • Set a duration in minutes, hours or days (you can combine them), or a date and time to wait until.
  • A wait can be as long as a year. Long waits do not use up any calling or sending capacity while they wait.
  • If the date you wait until is already in the past, the step finishes straight away.

Use Wait to space out steps inside one run, for example "send a WhatsApp, wait 1 day, then call". Use Schedule Follow-up when you want to try a step again a few times: set When the time is up to Continue from here, connect after wait back to the call, and set Max attempts. Use its Start the journey over mode when you want a fresh run later, for example "call back in 3 days and check what happened last time".

Wait for reaction#

Wait for reaction waits until the contact does one of the things you list, or until a time limit passes. It has two exits:

ExitWhen the contact takes it
reactedStraight away, as soon as one of the listed events happens for this contact
no_reactionWhen the time limit is up and none of the events happened

Counts as a reaction takes one or more contact event types. Only events that happen after this step starts count. Common choices:

  • link_clicked: a click on a link in a WhatsApp message or email this journey sent. See Link Click Tracking.
  • email_clicked: a click on a link in an email this journey sent.
  • Purchase: an order from your connected store, your website, your app or your own system. Older journeys may show order_placed, which matches the same orders.
  • Any event type you send yourself through the events API.

Wait at most sets the time limit in days, hours and minutes. The limit is 30 days.

The step also records which event the contact reacted with, so later steps can use it.

Example: one channel at a time#

A common pattern is to try the cheapest channel first and only fall back if the contact does not respond:

  1. Send a WhatsApp

    Add a WhatsApp step with your offer.

  2. Wait for a reaction

    Add Wait for reaction with Purchase as the reaction and a limit of 4 hours.

  3. Follow up only if needed

    Connect no_reaction to an Email or Call step. Connect reacted to an End step.

A/B split#

A/B split sends each contact down one of 2 to 5 branches so you can compare messages, offers or channels.

  • Each branch has a key (a to e), a label (for example "Discount" or "Free shipping") and a weight.
  • Weights are relative. A total of 100 is easiest to read, but 1 and 1 also gives a 50/50 split.
  • The same contact always goes down the same branch, even if they come through the journey again.
  • Connect each branch's handle (below the node) to the steps for that branch.

The step records which branch the contact got, so later steps and reports can use it.

The journey's Report tab compares branches on how many contacts placed an order. See Journey Reports.

A split needs at least two branches with a weight above 0, and each branch key must be different.

Condition#

Condition checks data the journey already has (from the trigger, a call, a lookup, or an earlier step) and routes to true or false. You can combine several checks with AND / OR. Use it to branch on things like call outcome, order value, or a contact field.

For the list of operators, see the condition step reference.

Use Condition for data you already have. Use Wait for reaction when you need to wait for the contact to do something.

Exit events#

Exit events end the journey for a contact as soon as something happens. You set them on the trigger, under Exit events (optional).

  • Add one or more event types, for example Purchase for a cart recovery journey.
  • If any of them happens for the contact, they leave the journey. This works during the trigger's delay and at any later step while the journey is waiting (for example during a Wait or Wait for reaction).
  • A contact who leaves does not get any of the remaining messages or calls.

For journeys started by a contact entering a segment, you can also turn on Exit when the contact leaves the segment.

Look up catalog item#

Look up catalog item loads one item from a catalog (such as your Products catalog) so later steps can use its details in messages and calls.

FieldWhat to enter
CatalogThe catalog to look in. Shopify stores get a Products catalog automatically
Item keyThe item's key, usually from the trigger, for example {{context.product_id}}
Save asWhere to store the item. Default catalog_item

Later steps use the item's fields, for example {{context.catalog_item.title}}, {{context.catalog_item.price}} or {{context.catalog_item.url}}.

The step has two exits: found and not_found. Use not_found to skip a message that would otherwise go out with empty product details.

Putting it together: cart recovery#

  1. Trigger on the event

    Use an Events trigger on InitiateCheckout with a 30 minute delay, and add Purchase as an exit event.

  2. Load the product

    Add Look up catalog item with the product id from the event.

  3. Test two offers

    Add an A/B split with "Discount" and "Free shipping" branches, each going to its own WhatsApp step.

  4. Wait, then call

    After each WhatsApp, add Wait for reaction on Purchase for 4 hours. Connect no_reaction to a Call step.

Anyone who orders at any point leaves the journey because of the exit event, so they never get the call.

Next steps#

Journey Reports

See what a journey sent, what it skipped, the orders, revenue and ROI credited to it, and which A/B branch is winning

https://docs.lemuai.com/automation/reports

Every journey has a Report tab next to Canvas and Runs. It shows how the journey performed over the date range you pick (or All time).

The report has two parts:

  • Messages and revenue: what the journey sent on each channel, and the orders, revenue and ROI credited to it. This part appears once the journey has sent something.
  • Call results: how the journey's calls went, if it has a Call step.

Messages and revenue#

The top row gives the totals for the period:

FigureMeaning
SendsMessages, emails and answered calls the journey sent. The hint below shows how many were skipped by sending limits
OrdersOrders credited to this journey's sends
RevenueThe value of those orders, per currency
Revenue per sendRevenue divided by sends
Contacts who exitedContacts who left early because of an exit event, out of all runs started

Revenue and ROI#

Once the journey has credited orders or message spend in the period, a row of four tiles shows what it earned against what it cost:

TileMeaning
OrdersConversion events credited to this journey's messages: the journey's own if it counts its own conversions (see Journey settings), otherwise your workspace's (Purchase by default). If some arrived without a value, the hint says how many, because revenue and ROI are then understated. Otherwise it says how many came after a link in the message was clicked
RevenueThe value of the credited orders, per currency
Message spendWhat the journey's messages cost: WhatsApp charges from your WhatsApp wallet. Email credits and call minutes are not priced here
ROIRevenue for each 1 of message spend, for example 3.5x. Shows – when there was no message spend in the period

ROI only counts revenue in the same currency as the spend. See How ROI is calculated.

Per step#

Below the totals, a table lists every sending step (WhatsApp, Email, Call) with:

ColumnMeaning
SentSends from this step
DeliveredReached the contact
ReadOpened or read, where the channel reports it
ClickedA person opened a tracked link in the message (WhatsApp and email). See Link Click Tracking
SkippedNot sent, for example because of a frequency cap, an unsubscribe or a missing address
FailedThe channel rejected the send
OrdersOrders credited to this step
RevenueThe value of those orders

Use this table to find the step that earns the most, or the one that is mostly skipped.

When the journey's messages carry tracked links, a Links table lists each link with the step that sent it, how many messages carried it (Sent), how many of those a person opened (Clicked), the Click rate and All clicks. Link previews and mail scanners are not counted.

How orders are credited#

An order is credited to the last journey or campaign send the contact got, on any channel, as long as it came within that channel's attribution window (the journey's own windows when it sets them).

  • Answered calls count as a send. Unanswered calls do not.
  • One order counts once, even if your store reports it more than once.
  • Which events count as orders, and how long each channel's window is, are set in Sending Limits. By default an order is the Purchase event (older names such as order_placed still match).
  • An order needs a value and currency to add revenue, and an order_id to be counted once. See Standard and conversion events.

Because only the last send gets credit, an order a contact places after a journey message and then a campaign email is credited to the campaign email.

A/B split results#

For each A/B split in the journey, the report shows every branch with:

  • How many contacts went down it.
  • How many of them placed a credited order, and the order rate.
  • The revenue credited to that branch.
  • The chance that this branch has the best order rate.

The branch most likely to be best is marked Leading. Once a branch has a 95% chance of the best order rate, it is marked Winner. The comparison starts once every branch has some contacts.

Small numbers swing a lot. Wait for a few hundred contacts per branch before you act on a result, then turn the losing branch's weight down to 0 or remove it.

Call results#

If the journey places calls, the Report tab also shows call figures:

FigureMeaning
ConversationsCalls where someone picked up
Connect rateConversations divided by call attempts
Qualified outcomesConversations where the agent captured data
Minutes per outcomeBilled minutes divided by conversations with captured data
Data capturedShare of connected calls where the agent captured usable data
Avg call durationAverage length of a connected call

Charts below these figures show conversations over time, where contacts drop off between the trigger and a qualified outcome, the outcome mix, the best hours to call, how many calls it takes to connect, and how call length relates to results.

Download the details#

Click Download CSV to export every contact the journey handled, with their call history, outcome and captured data.

Next steps#

Email Campaigns

Send one-off emails to segments and lists, with A/B tests, throttling and revenue reporting

https://docs.lemuai.com/email/campaigns

Setup required: sending campaigns needs LemuAI's email service enabled for your account (contact hello@lemuai.com), a verified domain and a sender in Email Setup, and at least one template.

Campaigns (Email → Campaigns in the sidebar) sends a one-off email to the people in your segments and lists. Use a campaign for newsletters, launches and announcements. For emails that react to what a person does (a cart left behind, a first order), use an Email step in a journey instead.

The campaign list shows each campaign's status, schedule and results. Click New campaign to start one.

The campaign editor showing the Audience section with segments and lists to send to or exclude, and the Message section

Build a campaign#

A campaign has four sections. It is saved as a Draft until you send or schedule it; click Save draft at any time.

Audience#

  • Send to segments and Send to lists: everyone in any of the chosen segments or lists gets the email. A person in more than one is emailed once.
  • Exclude segments and Exclude lists: anyone in these is left out, even if they are in the audience above.

The audience is worked out when sending starts, so people who join a segment between now and then are included.

Message#

  • Template: the email template to send. Click Edit template to open it.
  • Subject (optional): leave empty to use the template's subject, or write a different one for this campaign.
  • From: the sender. If you have none yet, add a sender in Email Setup.

Delivery#

  • Send now, or Or schedule for a date and time.
  • Spread sending over (hours): 0 sends as fast as possible. Spread big sends from a new domain over a few hours; mailbox providers trust a steady flow more than a sudden spike.
  • Ignore frequency caps: for announcements that must reach everyone. Leave it off for normal marketing.
  • Track link clicks: on by default. Links go out as short links that count clicks; the report then lists each link. See Link Click Tracking.

Review and send#

Click Check recipients and content before you send. You see:

  • How many of the audience will get the email, for example "9,412 of 10,000 contacts will get this email".
  • Why the rest are skipped, by reason.
  • The template checks. Errors must be fixed before you can send; warnings can be sent anyway.
Skip reasonWhy
No email addressThe contact has no email
UnsubscribedThe person unsubscribed from marketing email
No email consentNo recorded consent, and your account does not email contacts with unknown consent
Suppressed (bounced or complained)The address is on the suppression list
Frequency capThe person already got as many messages as your caps allow
Sending pausedMarketing email is paused for your account
Domain not verifiedThe sender's domain is not verified
Template errorA merge tag couldn't be filled in for this person
Provider errorThe email service refused the message

Then click Send now or Schedule.

A/B test the subject#

Send two to four variants to a test group first; the winner goes to everyone else.

  1. Add variants

    Click Add variant. Each variant has its own subject (and can use a different template version). You can have up to four, A to D.

  2. Set the test

    • Test group (%): how much of the audience gets the test, from 5% to 50% (20% by default). It is split evenly between the variants.
    • Pick the winner after (hours): how long to wait before choosing, from 1 to 72 hours (4 by default).
    • Winner by: Click rate, Revenue per email or Open rate (approximate).
  3. Send

    While the test runs the campaign shows A/B testing. When the wait is over, the variant that did best is sent to everyone who was not in the test group.

Prefer click rate or revenue. Open rates are approximate, because some mail apps (Apple Mail in particular) open every email automatically.

Campaign status#

StatusMeaning
DraftNot sent or scheduled yet
ScheduledWaiting for the scheduled time
StartingWorking out the audience
A/B testingThe test group has been sent; waiting to pick the winner
SendingEmails are going out
SentFinished
CancelledStopped before it finished
FailedSomething went wrong; the campaign shows why

You can Cancel campaign while it is scheduled, testing or sending. Emails that already went out are not recalled. A draft can be deleted.

Results#

Once a campaign starts, its page shows:

  • Sent, Delivered (with the number bounced), Opened, Clicked (with unsubscribes and spam complaints)
  • Revenue and the number of Orders attributed to the campaign
  • For an A/B test, the same numbers for each variant and which one won
  • The skip reasons, with counts

Opens are approximate for the reason above. Bounces, complaints and unsubscribes also feed the Deliverability page.

Email Templates

Design emails once in the drag-and-drop editor, personalize them with merge tags, and use them in campaigns and journeys

https://docs.lemuai.com/email/templates

Setup required: you can design and preview templates right away. Sending them (test sends, campaigns, journeys) needs LemuAI's email service enabled for your account (contact hello@lemuai.com) and a verified domain in Email Setup.

Templates (Email → Templates in the sidebar) is where you design emails once, then send them from campaigns and from journey Email steps.

The email template editor with content blocks on the left, the email preview in the middle and email settings on the right

Create a template#

Click New email template, give it a name (for example "Cart reminder"), choose a type, and pick what to start from:

StarterWhat you get
BlankAn empty email with your brand kit applied
WelcomeA greeting for new subscribers
Cart reminderA cart items list and a button back to checkout
NewsletterA header, an intro and two product highlights
Order thank-youA thank-you note for after a purchase
Win-backA note to bring back customers who have gone quiet

Starters contain placeholder links (https://). Replace them before you send; the link check flags them otherwise.

Marketing or transactional#

Every template has a Type:

  • Marketing (needs consent, has unsubscribe): newsletters, offers, reminders. Only goes to contacts who agreed to email, always shows your postal address and an unsubscribe link, and counts toward frequency caps.
  • Transactional (orders, accounts): order confirmations, receipts, account messages. Goes to anyone with an email address who is not suppressed, does not need marketing consent, and does not count toward frequency caps.

Use transactional only for messages the person needs, not for promotions.

The editor#

The editor has three parts: the block list on the left, the email in the middle, and the settings for the selected block on the right.

Across the top you set the Subject, the Preview text (shown next to the subject in most inboxes) and the Sender (defaults to your Default sender).

Blocks#

BlockUse it for
HeadingTitles
TextParagraphs, with bold, italic and links
ButtonA call to action, with its label, link, colors and shape
ImageUpload an image or paste a URL. Add alt text and an optional link
DividerA line between sections
SpacerEmpty space
ColumnsTwo or three columns side by side
ContainerA box that holds other blocks, with its own background, border and padding
HTMLYour own HTML, for anything the other blocks can't do. Only admins can add or edit it

Under Commerce there are three ready-made blocks:

  • Product: a product card with image, name, price and a button. Fill in the product name, price, image and product link.
  • Cart items: a loop over the items in the event that started the email, for cart and order emails sent from a journey.
  • Footer: your postal address and unsubscribe link.

Each block can be moved up or down, duplicated or deleted. Select a block to change its text, colors, font size, alignment, padding and so on.

Saved blocks#

Built a header or footer you want to reuse? Select it and click Save as a reusable block, then name it. It appears under Saved blocks in every template. Changing a saved block later does not change emails that already use it.

Personalize with merge tags#

Merge tags fill in details for each person when the email is sent. Write them anywhere in text, links or subjects:

Text
Hi {{ contact.first_name | default("there") }},
Your {{ event.product_name }} is waiting in your cart.
TagWhat it holds
contact.first_name, contact.last_name, contact.full_nameThe person's name
contact.email, contact.company, contact.title, contact.tagsOther contact fields
contact.custom.<field>A custom field on the contact, for example contact.custom.city
event.<field>Data from the event that started the journey, for example event.order_id
objects.<type>The person's custom records of that type: count, latest and items
organization.name, organization.addressYour business details
unsubscribe_url, preferences_urlLinks to unsubscribe or manage email preferences

Useful extras:

  • | default("there") shows a fallback when the value is empty. Empty values otherwise show nothing.
  • | money("INR") formats a number as a price, for example {{ event.total | money("INR") }}.
  • Loops work too: {% for item in event.items %}{{ item.title }}{% endfor %}. The Cart items block writes this for you.

Phone numbers are never available in email templates. Values are made safe automatically, so a name with special characters can't break your layout.

Preview#

Click Preview to see the email as a sample person or as one of your contacts (enter a contact id to fill merge tags with their details). Switch between Desktop, Mobile and Dark mode. Unsaved changes are included in the preview.

Checks#

Click Checks to review the email before sending. Errors stop a campaign from sending; warnings are worth a look.

CheckLevelWhat it means
Add a subject lineErrorThe subject is empty
A merge tag doesn't workErrorA merge tag has a typo or can't be filled in
Add your postal addressErrorMarketing email needs your postal address in Email Setup
Domain isn't verified yetErrorThe sender's domain is not verified
Links or images don't loadErrorA link or image returns an error (placeholder links included)
No DMARC recordWarningGmail and Yahoo may junk bulk mail without one
The email is too largeWarningGmail clips messages over 102 KB
Images have no alt textWarningAdd alt text for screen readers and blocked images
Mostly images and little textWarningSpam filters and screen readers prefer more text
Phrases spam filters dislikeWarningWords that often trigger spam filters
Link shortenersWarningUse full links; shorteners hurt deliverability
Subject over 80 characters, or all capsWarningLong subjects get cut off; all caps looks like spam
Add preview textWarningInboxes show it next to the subject

Send a test#

Click Send test, enter up to 10 addresses (comma separated), and optionally a contact id to fill merge tags with that contact's details. Test emails:

  • Have [TEST] at the start of the subject
  • Skip consent and frequency caps
  • Don't count in reports
  • Are limited to 100 a day per account

Save and versions#

Click Save to save a new version (the header shows Saved v3, for example, or Unsaved changes). Open Versions to see every saved version and Restore an older one.

Campaigns and journey steps use a specific version of a template, so a campaign that is already scheduled or sending is never changed by edits you make later.

Manage templates#

From the template list you can open, Duplicate or archive a template. Archived templates are hidden; tick Show archived to see them and restore one.

Use a template#

  • In a campaign: choose it under Message.
  • In a journey: add an Email step and choose the template, the sender and, optionally, a different subject. The step sends to the contact the journey is running for and reports whether the email was sent, skipped (for example because the person unsubscribed) or failed.

Deliverability

How mailbox providers treat your email, how bounces, complaints and unsubscribes are handled, and when sending pauses

https://docs.lemuai.com/email/deliverability

Setup required: this page fills in once you send email, which needs LemuAI's email service enabled for your account (contact hello@lemuai.com) and a verified domain in Email Setup.

Deliverability (Email → Deliverability in the sidebar) shows how mailbox providers treat your email: bounces, spam complaints and delivery by provider. Good deliverability means your email lands in the inbox, not in spam.

The Deliverability page showing bounce rate, spam complaint rate and a per-provider table

What the page shows#

  • Reputation, last 7 days: your Bounce rate and Spam complaint rate, each with the level at which marketing email pauses (5% and 0.2%). Rates count once at least 200 emails went out in the period, so a handful of early bounces can't pause you.
  • Daily volume: emails sent per day, with days that had bounces or complaints marked in red. Hover a day for its numbers.
  • By mailbox provider, last 30 days: the same numbers for Gmail, Yahoo, Outlook and others, so you can spot one provider treating you badly.

Automatic pause#

To protect your sending reputation, Lemu pauses marketing email for your account when, over the last 7 days and at least 200 emails:

RatePauses at
Bounce rate5%
Spam complaint rate0.2%

While paused, campaigns and marketing journey emails are skipped with the reason Sending paused. Transactional email (order confirmations, receipts) keeps going.

A red Marketing email is paused banner on this page and on Email Setup shows the reason. Fix the cause first: usually an old or bought list (bounces) or email people didn't expect (complaints). Then click Resume sending.

Bounces and the suppression list#

When an email can't be delivered, Lemu adds the address to the suppression list so you stop sending to it:

What happenedWhat Lemu does
Hard bounce (the address doesn't exist)Suppressed for good. An admin can remove it
Soft bounce (mailbox full, temporary problem)Three soft bounces within 7 days suppress the address for 30 days
Spam complaintSuppressed for good and unsubscribed from marketing email. Can't be removed
Added by handSuppressed until an admin removes it

Suppressed addresses get no email at all, transactional included.

Unsubscribes#

Every marketing email has an unsubscribe link, and supports one-click unsubscribe from the mailbox itself (the Unsubscribe button Gmail and Yahoo show next to the sender).

  • The link opens a page with an Unsubscribe button. Opening the link alone never unsubscribes anyone, because security scanners open links in email automatically.
  • Unsubscribing sets the contact's email consent to unsubscribed. They get no more marketing email; transactional email still arrives.
  • The email preferences link (preferences_url in templates) lets a person subscribe again.

Marketing email goes only to contacts whose email consent is subscribed, or, if you turned on Email contacts with no recorded consent in Email Setup, also to contacts with no recorded consent. Unsubscribed contacts are always skipped.

Transactional email does not need marketing consent, but is still never sent to suppressed addresses.

Tips for good deliverability#

  • Send from a subdomain, and get your domain to Ready (DMARC and the link domain set up).
  • Only email people who asked to hear from you. Never use bought lists.
  • Spread big sends from a new domain over a few hours with Spread sending over (hours) on the campaign.
  • Fix template warnings: add preview text and alt text, avoid link shorteners and all-caps subjects.
  • Judge results by clicks and revenue. Open rates are approximate because some mail apps open every email automatically.

SMS Setup

Add your DLT entity id and sender ids so you can send SMS to Indian mobile numbers

https://docs.lemuai.com/sms/setup

Setup required: SMS is sent through LemuAI's SMS partner and needs SMS turned on for your account. Contact hello@lemuai.com to enable it. You also need your business registered on DLT (see below).

SMS Setup (SMS → Setup in the sidebar) is where you get your account ready to send SMS. Do this once before you add SMS templates, send SMS campaigns or add an SMS step to a journey.

SMS goes to Indian mobile numbers only. Contacts with a number from another country are skipped.

What DLT is#

In India, every business SMS is checked against the DLT (Distributed Ledger Technology) register that TRAI runs with the telecom operators. Before you can send, you register three things on a DLT portal (Jio, Airtel, Vi, BSNL and others run one):

On DLTWhat it isWhere it goes in LemuAI
Principal entityYour registered business. You get a principal entity idSMS → Setup, Principal entity id
HeaderThe sender id people see, for example ACMECOSMS → Setup, Senders
Content templateThe exact text of each message, with {#var#} where values goSMS → Templates

Operators reject any SMS whose entity, header or text doesn't match what you registered. If your DLT portal asks which telemarketer you send through, ask LemuAI support.

Principal entity id#

Under DLT registration, enter the Principal entity id from your DLT portal (digits only) and click Save. Your account has one entity id; it is sent with every SMS. You can add as many senders (headers) as you registered under it.

Senders#

Click Add sender and enter:

FieldWhat to enter
TypeTransactional or Service (a 6-letter header, for example ACMECO), or Promotional (a 6-digit header, for example 123456)
HeaderThe header exactly as registered
DLT header idOptional. The header's id from your DLT portal
ActiveInactive senders are never used

Promotional templates go from a promotional (numeric) header. All other templates go from a letter header.

Each sender row has Edit and Delete. The Used by column shows how many templates are registered with it.

  • Edit changes the header, type, DLT header id or whether it is active. A sender's type can't change while a template that needs the current type is registered with it.
  • Delete removes the sender. Templates registered with it no longer name it and go from any active sender of the right type.

The first sender you add becomes the default (marked with a star). If you delete or turn off the default, the next active sender becomes the default. Use Make default to change it. When a journey or campaign doesn't name a sender, LemuAI uses the default if it fits the template, otherwise the first active sender that fits.

Contacts with no SMS answer#

Promotional and service-explicit SMS need the person's opt-in. This setting decides what happens for contacts who never said yes or no to SMS:

  • Skip them (recommended): only contacts who opted in to SMS get promotional and service-explicit SMS.
  • Send to them: for when you collected consent somewhere LemuAI doesn't know about.

Service-implicit and transactional SMS (one-time passwords, order and delivery updates) go to everyone who hasn't unsubscribed from SMS.

A contact's SMS consent is set by hand (SMS consent on the contact), through the contacts API, or with an SMS opt-in field in a form on your website. SMS is send-only: replies to your SMS don't reach LemuAI.

SMS credits#

Each SMS uses one SMS credit per part:

TextOne partEach part when longer
English and other plain text160 characters153 characters
Hindi and other scripts, or emoji70 characters67 characters

Buy SMS credits under Usage & Plan. A message the operator refuses before sending is refunded, and test sends are free. When credits run out, journey SMS steps and campaigns wait and carry on after you recharge.

Paused sending#

If LemuAI pauses SMS for your account, a banner at the top of SMS → Setup says why. Click Resume sending once the reason is fixed.

SMS Templates

Add the SMS templates you registered on DLT and choose what fills each value

https://docs.lemuai.com/sms/templates

Setup required: add your DLT entity id and at least one sender in SMS Setup first.

SMS Templates (SMS → Templates in the sidebar) lists the templates you registered on your DLT portal. Journeys and campaigns can only send these templates, because operators reject any text that doesn't match a registered template.

Click Add template to add one.

Template fields#

FieldWhat to enter
NameA name for you, for example "Order shipped"
DLT template idThe template's id from your DLT portal
Content typeAs registered: Service implicit, Service explicit, Transactional or Promotional
Registered textThe text exactly as approved, with {#var#} where each value goes. Insert {#var#} adds one at the end
What fills each {#var#}One line per {#var#}, in order
Registered with these sendersThe headers this template was registered with. Leave all off to allow any sender of the right type

Content types#

Content typeUse it forWho gets it
Service implicitOne-time passwords, order, delivery and account updatesEveryone who hasn't unsubscribed from SMS
Service explicitService messages that need the person's consentOnly contacts who opted in to SMS
TransactionalBank one-time passwordsEveryone who hasn't unsubscribed from SMS
PromotionalOffers and marketingOnly contacts who opted in to SMS. Sent from a numeric header

Values#

Each {#var#} is filled when the SMS is sent. Write fixed text or merge tags, for example:

ValueExample result
{{ contact.first_name | default("there") }}Asha
{{ order.number }}#1042
{{ event.tracking_url }}A link from the event that started the journey
{{ offer.welcome.code }}A code from the welcome offer head

DLT allows at most 30 characters in each value once it is filled in. A value that is longer, or a merge tag that fails, stops that SMS (it is skipped, not charged). Line breaks inside a value become spaces.

Links inside values are sent as tracked short links in journeys and campaigns, so you can see clicks. Ask LemuAI support for the link domain to whitelist on DLT.

Journeys and campaigns can replace these values with their own for that send.

Preview and parts#

While you edit, the preview shows the message filled in with a sample contact, its length and how many parts it uses. Text in Hindi or other scripts (or with emoji) is sent as Unicode, which fits 70 characters in a part instead of 160. Each part uses one SMS credit.

Send a test#

Open a template's menu and click Send a test to send it to up to 5 Indian mobile numbers with sample values. Test sends skip consent and frequency caps, use no credits, and up to 20 can be sent a day.

Delete a template#

Delete hides the template from journeys and campaigns. SMS already sent keep their history.

SMS Campaigns

Send a one-off SMS to segments and lists, at once or at each person's best hour

https://docs.lemuai.com/sms/campaigns

Setup required: SMS needs to be enabled for your account (contact hello@lemuai.com), your DLT entity id and a sender in SMS Setup, at least one SMS template, and SMS credits under Usage & Plan.

SMS campaigns live in Campaigns (open the SMS tab). A campaign sends one SMS template to the people in your segments and lists. For SMS that react to what a person does (an order shipped, a cart left behind), use an SMS step in a journey instead.

Click New SMS campaign to start one. It is saved as a Draft until you send or schedule it; click Save draft at any time.

Audience#

  • Send to segments and Send to lists: everyone in any of them gets the SMS once.
  • Exclude segments and Exclude lists: anyone in these is left out.

Only contacts with an Indian mobile number are included. Promotional and service-explicit templates go only to contacts who opted in to SMS (see SMS Setup).

Message#

  • DLT template: the SMS template to send.
  • Sender: leave on Default sender that fits, or choose one of the template's senders.
  • Values: change what fills each {#var#} for this campaign. Use the template's values goes back to the template's own.

The preview shows the message with a sample contact and its number of parts.

Delivery#

SettingWhat it does
Send at each person's best hourOver the 24 hours after the start, each person gets it at the hour they usually read, click, reply or order
Spread sending over (hours)Sends evenly over this many hours. 0 sends as fast as possible
Ignore frequency capsFor announcements that must reach everyone. See Sending Limits
Track link clicksLinks in the values go out as short links that count clicks

Review and send#

Click Check recipients to see how many contacts will get the SMS, how many parts each uses, the SMS credits it needs, and why the rest won't get it (no opt-in, unsubscribed, not an Indian mobile number, frequency cap).

Then click Send now, or pick a date and time and click Schedule. To change a scheduled campaign, cancel it first.

If credits run out while sending, the campaign waits and carries on as soon as you recharge.

Results#

Once sending starts, the campaign shows:

FigureMeaning
SentSMS handed to the operators, and how many are still waiting to go
DeliveredShare of sent SMS the operator confirmed as delivered
FailedSMS the operator couldn't deliver (number switched off, on the do-not-disturb list, a DLT mismatch and so on)
ClickedShare of delivered SMS whose link was clicked

Below that are the clicks per link and the reasons some contacts weren't sent the SMS.

Cancel or delete#

Cancel sending stops a scheduled or sending campaign. SMS that already went out are not affected. Delete removes a draft, cancelled, sent or failed campaign and its report.

Offers

Set up discount codes once and use them in emails, WhatsApp messages, journeys and voice agents, with unique codes per customer and rules for who gets what.

https://docs.lemuai.com/offers/overview

Engage → Offers keeps your discounts in one place. Messages don't contain the code itself; they link to an offer head (like "Welcome offer"), and the offer head decides which offer and code each person gets. Change the offer under a head and every template, journey and agent that uses it follows.

The three parts#

PartWhat it isExample
Offer headThe slot messages link to, by its Key. Picks the live offer.Key welcome, used as {{ offer.welcome.code }}
OfferWhat the customer is told: Headline, Details, One line for WhatsApp, How a voice agent says it, Terms, and where its code comes from."10% off your first order"
CodesWhere codes come from (see below).DIWALI20, or one unique code per customer

Where codes come from#

OptionUse when
No codeThe offer applies without a code, like free delivery this week
One code for everyoneEveryone gets the same code, like DIWALI20
Unique codes you uploadYou upload a list from your store or billing system
Unique codes Lemu makesLemuAI generates them (with an optional Code prefix like WEL-); download them and import them into your store
Shopify discount codesLemuAI adds codes to a discount you set up in Shopify, and tops it up when it runs low. Needs your store connected with its own app and the Shopify discount ID (the number at the end of the discount's page address)

Unique-code settings:

  • When someone already has a code: Give them the same code again (one code per person across email, WhatsApp and calls), or Give a new code if theirs was used or expired.
  • Codes expire: optional date; no codes are given out after it.
  • Warn when this many are left: owners and admins get an email when the pool runs low (default 10% of all codes, at least 10) and when it's empty.

Create an offer#

  1. Create the offer

    On Engage → Offers, add an offer. Pick the discount type (Percent off, Amount off, Free shipping, Buy X get Y or Something else), what it Applies to (The whole order, Some products or Some categories), any Minimum order, and the codes.

  2. Write the lines

    Fill in Headline (main line in emails, like 10% off your first order), One line for WhatsApp (no line breaks), and How a voice agent says it (as spoken: ten percent off your first order).

  3. Create an offer head

    Give it a Name (Welcome offer) and a Key (welcome). The key can't change later, because messages link to it. Choose its Offer and what happens When no offer can be used: another Fallback offer, send without an offer, or skip the send.

  4. Use it in messages

    In an email template or WhatsApp template value, use the insert offer button or type {{ offer.welcome.code }}. Voice agents get offers in the Offers section of a step.

Rules: different offers for different people#

An offer head can have rules, checked top to bottom. Each rule gives an offer when:

  • The message is about these products (names or SKUs) or products in these categories, and/or
  • The contact is in segment (or Any contact), and
  • today is between From and Until (optional).

The first matching rule whose offer is live wins; otherwise the default offer; otherwise the fallback.

Codes and redemptions#

The Codes list shows every code with its status: Not given out, Given out, Used or Stopped, and who got it. Codes are marked used when an order with that code reaches LemuAI (Shopify, the tracking snippet, or the API). Stop handing out unused codes? stops codes nobody has yet (for example if a list leaked); codes people already have keep working in your store.

Codes are claimed only for real sends. Previews and test sends show SAMPLE-CODE for unique codes.

Common problems#

  • "No codes found" or the pool is empty: upload or generate more codes. Until then the head's fallback applies.
  • A message showed no code: the head had no live offer (outside its dates, or archived). Check the head's Live offer column.
  • Code marked unused but the customer used it: the order didn't include the code, or didn't reach LemuAI. Check the order event in the Event Log.

Experiences

Show popups, bars, blocks and widgets on your website that match your design, target the right visitors, collect details into contacts and records, and start journeys.

https://docs.lemuai.com/website/experiences

Engage → Website → Experiences puts things on your own website: a welcome popup with an offer, a "notify me when back in stock" button, a call-back request, a bar announcing a sale. Each experience can collect details (phone, email, size) into a contact and a record, and start a journey that follows up on WhatsApp, email or a call.

Before you start#

Your site needs the LemuAI tracking snippet (or an SDK) from Settings → Tracking Sources. Experiences run through the same snippet; there's nothing else to add. See Tracking Sources.

Start from a template#

The Templates tab has ready experiences: a welcome offer, back-in-stock alerts, exit intent on the cart, a call-back button and more. Use this creates the experience, plus the record type and journey it needs (both as drafts for you to check, the journey with WhatsApp steps waiting for you to pick your approved template).

To start blank: New experience, give it a Name (like Diwali welcome popup) and pick a Format.

Formats#

FormatWhat it looks like
PopupA box in the middle of the page
Slide-inSlides in from a corner
BarA strip at the top or bottom
Teaser tabA small tab that opens the full experience
Floating buttonA button that stays on screen
Inline blockContent placed inside the page
Widget on an elementAttached to an element you choose (CSS selector, like .product-form__buttons)
ToastA short notice in a corner

Tabs in the editor#

Content#

Steps and blocks (text, images, forms, buttons, product rows) and Look. The look starts from your theme (Site setup); change colours, fonts and corners here for this experience only.

Where and when#

  • Where: Show on and But not on page rules, and for inline formats where on the page.
  • Who: rules about the visitor, combined with all rules match or any rule matches. No rules means everyone on those pages. Rules marked "Lemu data" are checked against your contacts, segments, records and catalog:
RuleChecked
Visitor is, Number of visits, Pages seen this visit, Seconds on site this visit, Device, UTM source / medium / campaign, Came from (referrer), Cart value, Items in cart, This product is in stock, This product's price, Browser language, Logged in on the site, Country (ISO code)In the browser
Known contact in Lemu, Subscribed on (a channel), In segment (ID), Has a record, This product's catalog field, Did event, times, Contact fieldWith Lemu data

Hide from people Lemu already knows keeps signup popups away from contacts who already gave a phone or email.

  • When it appears: When the page loads, After a few seconds, After scrolling down, When they're about to leave, After no activity, When an element is clicked, When an element comes into view, When an event happens, After adding to cart, When a sold-out size is picked, or Only from code.
  • How often: Every time it matches, Once per visit, Once a day, Once every few days or Only once ever, plus Stop after this many closes, Wait after a close (hours) and Stop showing once they've sent the form.
  • Schedule: optional dates, days and hours.
  • Priority: when two popups could show, the lower number wins. At most one popup shows per page.

Form answers#

Where answers go: each form field can update the contact (phone, email, name, a field), create a record (for example a back-in-stock request with the product), and start a journey. Answers create or update the contact, so journeys can follow up. The submissions list can be exported as CSV; personal answers are masked for people who can't read contacts.

A/B test#

Variants with weights (each visitor always sees the same one), an optional Holdout (a share of visitors who see nothing, to measure the real lift), a Goal event (like Purchase), and Pick the winner automatically after (days).

Results#

Views, submits and rate (the list shows Views 7d, Submits 7d and Rate), and orders and revenue per variant.

Go live#

  1. Preview on my site: enter a Page address (like https://yourbrand.com/products/classic-runner) and Open preview.
  2. Go live. Visitors start seeing it. Pause stops it; Back to draft returns it to editing.

Example: back-in-stock alert#

  1. Templates → back in stock → Use this.
  2. When: When a sold-out size is picked on product pages.
  3. Form: WhatsApp number, with the tick box "Send me updates and offers on WhatsApp."
  4. Where answers go: the contact's phone, a record of the product and size.
  5. The journey (trigger Catalog item changes, back in stock) sends a WhatsApp template to everyone waiting for that item.

Common problems#

  • It doesn't show on my site: check the tracking snippet is on the page, the page matches Show on, the Who rules match you (try a private window), and How often hasn't already hidden it for you.
  • Two popups compete: set Priority; only one popup shows per page.

Landing pages

Build landing pages with forms from a template, from scratch or with Copilot, and publish them on your own site or a LemuAI address.

https://docs.lemuai.com/website/landing-pages

Engage → Website → Landing pages builds pages for a sale, a lead form or a launch. Form answers become contacts that journeys can follow up, and each page reports views, visitors, submits, contacts and revenue.

Create a page#

  1. Start

    Press New page: From a template, blank, or built by Copilot (Ask Copilot builds it from a brief or a design you describe).

  2. Name and address

    Name (only you see it, like Diwali sale), Address (the path, like diwali-sale) and the Site it belongs to.

  3. Edit

    Add and order sections, set colours and fonts (Main colour, Text colour, Background, Font, Heading font, corner rounding), and under Search and sharing set the Title, Description and Social image (an https:// link, about 1200 × 630). Preview at desktop and phone width.

  4. Publish

    Publish to the site's destination (below). The editor shows Draft differs from live while you have unpublished changes.

Where pages are published#

Each site has destinations:

DestinationWhat you get
Lemu addressHosted by LemuAI at a LemuAI address. Nothing to set up
SubdomainYour own subdomain, like offers.brand.com, with a CNAME record pointing to LemuAI (apex domains like brand.com aren't supported)
Native Shopify pageCreated as a page in your Shopify store
Shopify app proxyShown at a path on your store, starting with apps/, a/, tools/ or community/ (Shopify's rule)
A path on your own siteServed on a path of your website
Embed with the Lemu SDKEmbedded into a page of your site

Pages work best on your own site, so visitors stay on your domain. For a second brand or store, add another site with its own destinations.

Results#

The report shows Views, Visitors, Submits, Submit rate, Contacts and Revenue for the last 7, 30 or 90 days or year, and per version (A/B) the buyers, rate, revenue and the difference against version A.

Common problems#

  • The custom domain doesn't work: check the CNAME record at your domain provider points exactly where LemuAI shows. DNS changes can take a few hours.
  • Unpublish: the page stops showing at all its addresses right away; links to it show a not found page.

AI Copilot

Build voice agents, journeys, tools, files and contact lists from one chat, refine them with an AI copilot, and ask questions about your whole workspace.

https://docs.lemuai.com/copilot/overview

AI Copilot is a chat assistant built into Lemu. Inside a voice agent or a journey, you describe what you want in plain language, and Copilot proposes the change as edits you can review, apply, and undo. On its own Copilot page, it answers questions about your whole workspace and builds new things for you from one conversation: voice agents, journeys, tools, files and contact lists, already connected to each other.

Inside an editor, Copilot works from what you currently have open. It sees your nodes, connections, prompts, and settings automatically, so you don't need to paste anything in.

Opening Copilot in an agent or journey#

Inside a voice agent or a journey, click the Sparkles button in the bottom-right corner to open the AI Copilot panel. It opens as a side panel next to the editor, and Lemu remembers whether you left it open.

  • It opens instantly. Your previous conversation for that agent or journey is loaded in the background as soon as the editor opens, so it is already there when you open the panel.
  • Nothing runs on its own. If there is no conversation yet, you see a short hint and a Review this agent (or Review this journey) button. Click it when you want Copilot to look over the whole thing and suggest improvements.
  • You can type right away. The message box is only locked while Copilot is answering a message you sent.

The Copilot page#

Copilot in the sidebar opens a full-page chat for your whole workspace. Use it to ask how things fit together, find an agent or journey, check how something is performing, plan what to build, or build it.

Your past conversations are listed in the history panel. Start a new one with New chat, reopen an old one by clicking it, or delete it.

Build everything from one chat#

Describe what you want in plain language, for example "Build an outbound agent that confirms cash-on-delivery orders, give it a tool that looks up the order in our system, and a journey that calls every new COD order 10 minutes after it is placed." Copilot works out everything that's needed and proposes it in one reply:

What Copilot can createWhere it opens
Voice agentsThe agent editor
Journeys, including one-time journeys for a listThe journey editor
Tools (an HTTP API call, end call, or transfer call)Tools
Files for the knowledge baseFiles
Contact lists, from contacts you describe or a CSV you attachContacts, filtered to the new list

Items made in the same reply are linked for you: a new tool and file are attached to the new agent, and a new journey calls the new agent and uses the new contact list. Copilot can also attach existing tools and files to an existing agent.

Nothing is created until you click Create. Click Show Diff first to see each item and its settings. After you click Create, the reply shows a Created list with a link to each new item. The links stay in the conversation, so you can come back to them later.

Attach files#

Click the attachment button in the chat box to add up to five files to your message:

FileWhat Copilot does with it
.docx, .md, .txt (up to 20 MB)Uploads it to Files so a new or existing agent can use it as knowledge, and reads it to understand what you want.
.csv (up to 5 MB and 5,000 rows)Reads the contacts and can turn them into a contact list. For larger files, use Import contacts.

Ask about your workspace#

Copilot can look things up before it answers, so you can ask questions like "How did the COD confirmation journey do last week?" or "Why did the call to Priya end early?". It can read:

  • your voice agents, journeys and tools, and search them by name;
  • your WhatsApp templates;
  • a journey's results and the contacts in it;
  • a voice agent's call results;
  • a call's transcript.

Copilot only shows what your role allows. For example, phone numbers stay hidden if you can't view personal data.

Guided setup with New Agent and New Journey#

The New Agent button on the Voice Agents page and the New Journey button on the Journeys page still open the guided setup, a short set of questions that builds one agent or one journey step by step. Use the Copilot page when you want several things built and connected at once.

Modes#

A mode selector at the bottom of the chat box controls how Copilot treats your next message:

ModeWhat it's for
AutoCopilot decides how to help: answer, suggest, or propose edits
Just discussTalk it through. Copilot answers in words only and never proposes edits

You can also click the microphone in the chat box to speak instead of typing.

Reviewing and applying changes#

When Copilot's reply includes proposed edits, it shows:

  • Show Diff / Hide Diff: preview exactly what would change before committing to it
  • Apply Changes: apply the edits to your canvas and save
  • Undo: revert the last applied Copilot change
  • Confirm risky change: required before Copilot can delete nodes or replace the whole graph; a confirmation dialog explains what's about to happen

Small changes you ask for directly, such as a setting, a template variable, or a rename, are made right away and reported in the reply, with an Undo button. Suggestions from a review always wait for you to click Apply Changes.

Deleting nodes or replacing an entire workflow/journey always requires this explicit confirmation step. Copilot never removes nodes or overwrites your graph silently.

Copilot's replies also include a short row of suggested follow-up chips (e.g. "Add extraction for the caller's name and phone") tailored to what it just found or changed. Click one instead of typing to continue the conversation.

Copilot for voice agent workflows#

Inside a voice agent workflow, Copilot can act as an AI workflow engineer for the whole graph or, if you have a node or edge selected on the canvas, for just that node or edge. Requests it can act on include, for example:

  • Rewriting a node's prompt or greeting (tone, length, language)
  • Adding, renaming, or deleting nodes (start, agent, end call, global, webhook, QA, or trigger nodes)
  • Adding, editing, or removing edges and their transition conditions
  • Turning on or updating variable extraction on a node
  • Updating the Global Node prompt (agent name, company name, primary goal, tone, language)
  • Updating template variables
  • Renaming the workflow
  • Attaching tools and files to the whole agent, or to the selected node
  • Fixing problems that involve the journeys that call this agent
  • Generating a full replacement flow for the current agent, or generating a brand-new agent as a separate workflow (both ask for confirmation first)

Some example prompts you can send it:

  • "Review this workflow and suggest improvements"
  • "Make the greeting warmer and more concise"
  • "Add extraction for the caller's name and phone"
  • "Simplify the flow and remove redundant nodes"

In Just discuss mode, try things like "What does this workflow do end-to-end?" or "Where are the riskiest failure points?" Copilot will discuss and critique without changing anything.

Guided setup for new agents#

When you click New Agent, Copilot opens a guided setup panel instead of the general chat above. It asks you a short, fixed sequence of questions (your use case and agent name, whether the agent is inbound or outbound, what should happen on the call, and whether to capture any extraction variables) and fills in the canvas as you answer, without requiring you to click Apply for each step.

You can type your answers or speak them using the microphone. See Voice Agent Builder for more on creating a new agent.

Copilot for journeys#

Inside the journey builder, Copilot understands journey-specific node types: trigger, call (place a voice call through a Lemu voice agent), message (WhatsApp), condition (branch on a field/operator/value, with true/false paths), wait (delay), http (HTTP request), emit event, load history, schedule, slack_message, jira_issue, calendar_event (see Integrations for those three), and end. Requests it can act on include:

  • Updating a node's configuration (e.g. a condition's field/operator, an HTTP request's URL, a WhatsApp template) or its label
  • Adding, renaming, or deleting steps
  • Adding or removing branches and connections, including the true/false paths out of a condition node
  • Simplifying a flow by removing redundant steps or improving field mappings between steps
  • Updating journey-level settings, such as retries and calling hours
  • Checking the voice agents this journey calls
  • Replacing the entire journey with a new one (asks for confirmation first)

Some example prompts:

  • "Review this journey and suggest improvements"
  • "Add clearer error handling after failed steps"
  • "Rename nodes so the flow is easier to follow"
  • "Explain what this journey does end-to-end"

As with agents, Just discuss mode ("Explain this journey step by step", "Where could this flow get stuck?") is discussion-only and never proposes edits.

See Journeys for how journeys work.

Starting over#

Use the New chat button (pencil icon) at the top of the Copilot panel to start a fresh conversation. The previous conversation is kept and can be reopened from the Copilot page history. Starting a new chat does not undo edits you've already applied.

Business profile, weekly brief and autopilot

Tell Copilot about your business, get a weekly brief, and let it launch and run campaigns on its own within a budget and limits you set.

https://docs.lemuai.com/copilot/autopilot

Copilot plans and builds campaigns from a chat. Three pages decide how it works for your business. They're linked from the Copilot page: Business profile, Campaigns and Autopilot.

Business profile#

Copilot → Business profile tells Copilot what it needs to suggest the right campaigns. Fill in as much as you can:

SectionFields
The businessBusiness name, Industry, Website, Price band (like ₹500 to ₹3,000), What you sell (a few sentences), Products or categories (one per line)
Customers and marketsAudiences (one per line, like "Working women 25-40 in metros"), Country (two letters, like IN), Time zone (Asia/Kolkata), Languages (en, hi), Competitors
Brand and offersBrand voice ("Warm, simple, a little playful. Hinglish is fine on WhatsApp."), Words to avoid, Offers you allow (Copilot only uses offers listed here or given in the chat), Discount rules ("Never more than 15% off"), Compliance notes
Goals, budget and channelsGoals, KPIs (like repeat purchase rate, COD confirmation rate), Monthly budget and currency, Quiet hours (21:00-09:00), Channels Copilot may use (WhatsApp, Email, Voice calls)
Things Copilot remembersFacts Copilot noted from your chats, like "Fridays are our slowest day". Forget this removes one

How Copilot works for you#

  • Weekly brief: every Monday, last week's results and the top things to do, in Copilot. Email the brief to owners and admins sends it by email too.
  • In chat, Copilot builds drafts when you click Build. Anything that sends messages, goes live or spends money always asks you to confirm first.

Campaigns#

Copilot → Campaigns lists campaigns planned and built with Copilot, with Sent, Read, Clicked, Orders, Revenue, Message spend and ROI, and what each is made of (segments, templates, journeys, agents).

Autopilot#

Copilot → Autopilot lets Copilot launch and run campaigns on its own, within the budget and limits you set. It's off until you turn it on (Let Copilot run campaigns on its own? → Turn on autopilot).

SettingWhat it allows
BudgetMonthly spend for the campaigns it manages. At 80% it tells you; over budget it pauses their journeys until next month
Launch new campaignsAt most one a day, from your top ideas. Choose Campaigns it may launch (like Abandoned cart recovery, Browse abandonment, Post-purchase cross-sell, Win back lapsed customers, COD order confirmation), Time to review before it goes live, and Campaigns running at once
Roll out A/B winnersWhen one branch has a 95% chance of being best and 100+ contacts per branch, the other branches stop getting contacts
Pause campaigns that misbehaveA journey whose messages mostly fail, or a campaign with no orders after a week that used a quarter of the budget
Add AI callsCall steps in launched campaigns, with the Voice agent that makes the calls. Call minutes aren't counted in the budget

How a launch works:

  1. Copilot builds the campaign as drafts (segments, WhatsApp templates sent to Meta for approval, journeys) and tells you in a Copilot conversation; owners and admins also get an email.
  2. It waits for the review time. The campaign shows under Waiting to go live; cancel it there to keep it a draft.
  3. When the time has passed and Meta approved its templates, it goes live.

What it did lists every action. Launches waiting to go live can be cancelled; A/B winners and pauses can be undone. Turning autopilot off cancels launches that hadn't gone live.

AI Assistants (MCP)

Let AI assistants like Claude and Cursor use your Lemu AI voice agents through the Model Context Protocol

https://docs.lemuai.com/mcp/overview

Lemu AI runs a remote Model Context Protocol (MCP) server. Once you connect an AI assistant to it, the assistant can look up your voice agents, request phone calls with them, and read how those calls went, all from a normal chat.

Server address:

Text
https://mcp.lemuai.com/mcp

It uses the standard streamable HTTP transport, so any MCP client that supports remote servers with OAuth can connect.

What an assistant can do#

You ask the assistant to...It uses
See which agents it may use and what details a call needslist_agents, get_agent
Place a call with one of those agentsstart_call
Check the status and outcome of its callsget_call, list_calls
Cancel a call that hasn't been dialed yetcancel_call
Draft a new voice agent from a short briefcreate_agent_draft, update_agent_draft, test_agent, archive_agent

See Tools for the full list and what each tool accepts.

How it's kept safe#

An assistant never gets more access than a person in your organization gives it:

  • An admin approves every connection. When an assistant connects, you're sent to a Lemu AI consent screen. Only someone with admin rights in the organization can approve it.
  • You choose the permissions. Each connection gets only the permissions ticked on the consent screen, such as reading agents or requesting calls.
  • You choose the agents. For calls, you pick exactly which agents the assistant may use. Agents you create later are not added automatically.
  • Daily limits. Each connection has a cap on calls per day (at most 200), plus limits on concurrent and pending calls.
  • A person confirms every call. Calls an assistant requests wait for confirmation by someone in your organization before anything is dialed.
  • Your calling policy always applies. Who may be called, local calling hours, the do-not-call list and the AI disclosure are enforced by Lemu AI, whatever the assistant sends.
  • Everything is logged. Every request is recorded in an audit log.

Anything a person says on a call is returned to the assistant as data, never as an instruction.

See Permissions & limits for the details.

Next steps#

Connect an Assistant

Add the Lemu AI MCP server to Claude, Claude Code or Cursor and approve the connection

https://docs.lemuai.com/mcp/connect

Connecting takes two parts: you add the Lemu AI server to your assistant, then you approve the connection on a Lemu AI consent screen. There is no API key to copy. The assistant signs in with OAuth, the same way you'd connect it to any other service.

Server address:

Text
https://mcp.lemuai.com/mcp

Before you start#

  • You need a Lemu AI account with admin rights in the organization you want to connect. Other members can't approve a connection.
  • To let the assistant request calls, the organization needs at least one active agent and a configured telephony provider.

Add Lemu AI to your assistant#

These steps follow each client's standard setup for remote MCP servers. The Lemu AI side (discovery, client registration and the consent screen) works with any client that supports MCP over OAuth. Menu names in third-party apps can change, so check your client's own docs if a step looks different.

Claude

  1. In Claude, open Settings → Connectors.
  2. Click Add custom connector.
  3. Enter a name (for example Lemu AI) and the server address https://mcp.lemuai.com/mcp, then add it.
  4. Click Connect. Claude opens the Lemu AI consent screen (see below).

On Claude Team and Enterprise plans, only an organization owner can add custom connectors. Ask your owner to add it, then each member connects it.

Claude Code

Run:

Shell
claude mcp add --transport http lemuai https://mcp.lemuai.com/mcp

Then start Claude Code, run /mcp, choose lemuai and authenticate. Your browser opens the Lemu AI consent screen.

Cursor

Add the server to your mcp.json (Cursor Settings → MCP → Add new MCP server, or ~/.cursor/mcp.json):

JSON
{
  "mcpServers": {
    "lemuai": {
      "url": "https://mcp.lemuai.com/mcp"
    }
  }
}

Cursor shows the server as needing login. Click Login to open the Lemu AI consent screen.

Approve the connection#

Your assistant sends you to app.lemuai.com/mcp/authorize. Sign in if asked, then review what the assistant is asking for.

  1. Check who is asking

    The screen shows the name the assistant gave itself and the address you'll be sent back to after approving. The name is chosen by the app, so only approve if you started this connection and recognise that address.

  2. Choose the organization

    If you're an admin in more than one organization, pick the one the assistant should work in.

  3. Choose what it may do

    Tick the permissions to grant, for example "See which voice agents you allow it to use" or "Request phone calls". See Permissions & limits for what each one allows.

  4. Choose agents and a daily cap

    If you allow calls, pick which agents it may use and the most calls per day (up to 200). Agents you create later are not included automatically.

  5. Approve

    Click Approve. You're sent back to the assistant and it can use Lemu AI right away.

Click Cancel instead to refuse the connection.

After you connect#

  • Ask the assistant something like "Which Lemu AI agents can you use?" to check the connection.
  • The assistant renews its access automatically: access tokens last 1 hour and refresh on their own. A connection stays valid for up to 90 days, after which you approve it again.
  • Calls the assistant requests wait for a person in your organization to confirm them. See Call confirmation.

Disconnect#

Remove Lemu AI from the assistant's connector or MCP settings. Assistants that support it revoke their access when you do.

Viewing and revoking connections from the Lemu AI dashboard isn't available yet. To cut off a connection immediately, contact support.

MCP Tools

Every tool the Lemu AI MCP server offers, the permission it needs and the arguments it takes

https://docs.lemuai.com/mcp/tools

Your assistant discovers these tools automatically when it connects, so you don't call them yourself. This page explains what each one does so you know what to ask for and what to approve.

A tool only works if the connection was granted its permission on the consent screen. See Permissions & limits.

ToolPermissionWhat it does
list_agentsagents:readLists the agents this connection may use
get_agentagents:readDescribes one agent and the details a call needs
start_callcalls:startRequests an outbound call with an agent
get_callcalls:readStatus and outcome of one call
list_callscalls:readRecent calls made through this connection
cancel_callcalls:cancelCancels a call that hasn't been dialed
create_agent_draftagents:writeDrafts a new agent from a brief
update_agent_draftagents:writeChanges a draft it made
test_agentagents:writeReviews a draft before it can go live
archive_agentagents:writeRetires an agent it made
search_docsnoneSearches the LemuAI docs (how-tos, settings, error messages)
read_docnoneReads one docs page as Markdown

Docs#

search_docs and read_doc read the public docs at docs.lemuai.com, so every connection has them, whatever its permissions. An assistant uses them to explain how to do something in LemuAI or what an error means while it works in your workspace.

search_docs#

ArgumentTypeRequiredDescription
querystringYesA question, a feature, or an error message as written, up to 500 characters
limitintegerNoHow many sections to return, 1 to 10. Default 5

Returns the best matching sections, each with its page title, section heading, url (with the section's anchor) and text.

read_doc#

ArgumentTypeRequiredDescription
pagestringYesA page path like segments/overview, or a url from search_docs

Returns the page as Markdown (markdown), its url, and truncated when the page was longer than 40,000 characters.

Agents#

list_agents#

Lists the voice agents this connection may use: the agents you ticked on the consent screen. Takes no arguments. Each agent comes back with its agent_id, name and the context variables a call can fill in.

get_agent#

Describes one agent: its name and the context variables a call accepts.

ArgumentTypeRequiredDescription
agent_idintegerYesThe id from list_agents

Calls#

start_call#

Requests an outbound phone call with an agent. It returns straight away with a call_id. The call then waits for a person in your organization to confirm it (see Call confirmation) before it's dialed. Read the outcome with get_call.

ArgumentTypeRequiredDescription
agent_idintegerYesThe id from list_agents
phone_numberstringYesWho to call, in international format, like +919876543210
counterparty_classstringYesWho this person is to your organization: employee, customer, distributor, supervisor, prospect or other. Your calling policy decides which are allowed
idempotency_keystringYesA unique key for this call, 8 to 120 letters, digits or _ . : -. Retrying with the same key returns the original call and never dials twice
contextobjectNoValues for the agent's context variables (see get_agent), up to 30
callee_timezonestringNoIANA timezone like America/Chicago. Only needed for countries that span several timezones
correlationobjectNoYour own ids (for example a ticket number), kept in the audit log next to the call

Result webhooks (callback_url) are not available for assistant connections. Assistants read results with get_call.

The call is checked against the connection's limits and your organization's calling policy before it's accepted. If something is wrong, the tool returns an error code such as OUTSIDE_CALLING_HOURS. See Error codes.

get_call#

Gets the status and outcome of a call made through this connection.

ArgumentTypeRequiredDescription
call_idstringYesThe id returned by start_call

It returns:

FieldDescription
call_id, agent_idWhich call and agent
statusSee the statuses below
calleeThe number called, partly masked
created_at, finished_atWhen the call was requested and when it ended
outcomeHow the call ended, once it's over
duration_sCall length in seconds
Captured detailsAny information the agent was set up to collect during the call
transcript_urlA link to the transcript, only if the connection has calls:transcripts:read

Call statuses:

StatusMeaning
pending_confirmationWaiting for a person in your organization to confirm it
initiatingConfirmed and being dialed
in_progressThe call is live
completedThe call finished
failedThe call could not be placed or did not connect
cancelledCancelled before it was dialed
rejectedA person in your organization declined it

list_calls#

Lists recent calls made through this connection.

ArgumentTypeRequiredDescription
statusstringNoOnly calls with this status
limitintegerNoHow many to return, 1 to 100 (default 20)

cancel_call#

Cancels a call that hasn't been dialed yet, for example one still waiting for confirmation. A call that is already ringing or live can't be cancelled this way.

ArgumentTypeRequiredDescription
call_idstringYesThe call to cancel

Drafting agents#

With the agents:write permission, an assistant can write a new voice agent from a short brief. Lemu AI writes the agent's script from the brief and adds fixed safeguards the brief can't remove. A connection can create at most 5 agents a day.

Agents made over MCP are drafts. They can't place calls until they're published, and publishing isn't available to assistant connections. To publish a draft an assistant made, contact support.

create_agent_draft#

ArgumentTypeRequiredDescription
briefobjectYesWhat the agent is for (see below). Not a prompt
idempotency_keystringYesA unique key for this request. Reusing it returns the agent it already created

Brief fields:

FieldRequiredDescription
objectiveYesWhat the call should achieve (10 to 500 characters)
counterparty_classYesWho the agent will call: employee, customer, distributor, supervisor, prospect or other
languageYesprimary language as a tag like hi-IN or en-US, plus up to 5 more it also_understands
personaYesThe agent's name and who it calls on_behalf_of
captureNoUp to 20 details to collect, each with a name, type (string, number, boolean or date), whether it's required and an optional prompt
authorityNoWhat the agent may and may_not agree to on the call (up to 10 each)
off_limits_topicsNoTopics the agent must not discuss (up to 20)
escalationNoWhen to end the call politely and flag it, for example when the person asks for a human
limitsNomax_duration_s (30 to 900, default 300) and max_attempts_per_callee_per_day (1 to 5, default 2)
context_schemaNoUp to 20 context variables a call can pass in, each with a sensitivity class (public, internal or confidential) and a description
expires_in_daysNoHow long the draft lives before it expires (1 to 90, default 7)

update_agent_draft#

Changes a draft this connection made. Send the draft_version you last read. If the draft has changed since, the update is refused with STALE_DRAFT so nothing is overwritten.

ArgumentTypeRequiredDescription
agent_idintegerYesThe draft to change
base_versionintegerYesThe draft_version you read
briefobjectYesThe full updated brief

test_agent#

Reviews the draft as it will run: safeguards present, nothing forbidden, only declared context used. A draft needs a passed review of its exact version before it can be published.

ArgumentTypeRequiredDescription
agent_idintegerYesThe draft to review

archive_agent#

Retires an agent this connection made. Calls already in progress finish normally.

ArgumentTypeRequiredDescription
agent_idintegerYesThe agent to archive

Permissions & Limits

What each MCP permission allows, how calls are confirmed, the calling policy and the error codes assistants can get

https://docs.lemuai.com/mcp/permissions

Every assistant connection is limited to what an admin approved on the consent screen, and Lemu AI enforces those limits on every request, whatever the assistant sends.

Permissions#

These are the permissions (OAuth scopes) an assistant can ask for. The consent screen lists the ones it asked for, and you can untick any of them before approving. An assistant that doesn't ask for specific permissions gets agents:read and calls:read.

ScopeOn the consent screenAllows
agents:readSee which voice agents you allow it to uselist_agents, get_agent
calls:readRead the status and outcome of calls it placesget_call, list_calls
calls:transcripts:readRead call transcripts (may contain personal data)A transcript link in get_call
calls:startRequest phone calls (a person in your organization confirms each one)start_call
calls:cancelCancel calls that have not been dialed yetcancel_call
agents:writeCreate and edit draft voice agents (it cannot publish them)create_agent_draft, update_agent_draft, test_agent, archive_agent

An assistant can only see and read the calls it placed itself, never other calls in your organization.

Call confirmation#

Every call an assistant requests is created with the status pending_confirmation. Nothing is dialed until a person in your organization confirms it. If they decline, the call becomes rejected. When a call is confirmed, the calling policy and limits are checked again, since time may have passed since the request.

Confirming or declining assistant calls from the Lemu AI dashboard isn't available yet. Until it is, calls requested by an assistant stay in pending_confirmation. Contact support if you need to confirm calls now. The assistant can cancel its own pending calls with cancel_call.

Connection limits#

LimitDefaultNotes
Agents it may useChosen on the consent screenAgents created later are not added
Calls per dayChosen on the consent screenAt most 200
Calls in progress at once3
Calls waiting for confirmation20
Agents it may create per day5Only with agents:write
Connection lifetime90 daysAfter that, approve the connection again

Calling policy#

Your organization's calling policy applies to every call an assistant requests:

  • Who may be called. Each call says who the person is: employee, customer, distributor, supervisor, prospect or other. Only classes the policy allows can be called. By default, a prospect can be called at most twice in total (one call and one follow-up).
  • Calling hours. Calls are only placed inside the allowed hours in the callee's local time. Lemu AI works out the timezone from the phone number. For countries that span several timezones (like the US), the assistant must pass callee_timezone.
  • Do not call. People who asked not to be called, are on your do-not-call list, or opted out of calls (or of everything) on their contact in Lemu AI are never called.
  • AI disclosure. The agent must tell the person they're talking to an AI. Its opening greeting needs to include the {{ai_disclosure}} variable, which Lemu AI replaces with your organization's wording.

Until your organization sets its own policy, a default applies: only employees and supervisors can be called, between 09:00 and 20:00 local time, every day, with the AI disclosure on.

Changing the calling policy or the do-not-call list from the dashboard isn't available yet. Contact support to change them.

Error codes#

When a tool can't do what was asked, it returns an error with a code and a short message. The common ones:

CodeMeaning
SCOPE_MISSINGThe connection wasn't granted the permission this tool needs
INVALID_ARGUMENTSAn argument is missing or has the wrong format
AGENT_NOT_FOUNDThe agent doesn't exist or isn't active
AGENT_NOT_ALLOWEDThe connection may not use this agent
INVALID_PHONEThe phone number isn't valid. Use international format like +919876543210
COUNTRY_NOT_ALLOWEDCalls to this country aren't allowed for this connection
CLASS_NOT_PERMITTEDYour calling policy doesn't allow calls to this class of person
OUTSIDE_CALLING_HOURSIt's outside the allowed hours in the callee's timezone. The error says when the next window opens
TIMEZONE_REQUIREDThe country spans several timezones, so callee_timezone is needed
TIMEZONE_INVALIDcallee_timezone isn't a known timezone name
NUMBER_OPTED_OUTThe person asked not to be called, is on the do-not-call list, or opted out of calls in Lemu AI
CALL_LIMIT_FOR_PERSONThis person has already been called the maximum number of times
DISCLOSURE_MISSINGThe agent's opening greeting doesn't include {{ai_disclosure}}
DAILY_CALL_LIMITThe connection reached its calls-per-day limit
CONCURRENCY_LIMITThe connection already has the maximum calls in progress
PENDING_LIMITToo many calls are waiting for confirmation
DAILY_MINUTES_LIMITThe connection used its daily call minutes
QUOTA_EXCEEDEDYour organization has no call minutes left on its plan
TELEPHONY_NOT_CONFIGUREDTelephony isn't set up for your organization
DIAL_FAILEDThe telephony provider couldn't start the call
CALL_NOT_FOUNDNo such call, or it wasn't made through this connection
CANNOT_CANCELThe call has already been dialed, so it can't be cancelled
INVALID_BRIEFThe agent brief isn't valid. The error lists the problems
STALE_DRAFTThe draft changed since you read it. Read it again and retry
AGENT_QUOTAThe connection already created its 5 agents for today
REVIEW_FAILEDThe draft review found problems to fix
AGENT_EXPIRED / AGENT_ARCHIVEDThe draft expired or was archived
TOKEN_INVALIDThe connection was revoked or expired. Reconnect the assistant

Audit log#

Every request an assistant makes is recorded: which connection, which tool, the outcome, the call it touched and how long it took. Arguments are stored as a fingerprint, not in full, and phone numbers are masked. If you need a copy of the log for a connection, contact support.

Telephony Integration

Connect a phone provider so your voice agents can make and answer calls

https://docs.lemuai.com/integrations/telephony/overview

Overview#

Your voice agents place and receive phone calls through a telephony provider that you connect to Lemu AI. Each organization uses one provider at a time. You can switch providers later without changing your agents.

Supported providers#

Connect a provider#

  1. Go to Agent Setup → Telephony in the sidebar
  2. Choose your provider under Select telephony provider
  3. Enter the credentials and caller ID numbers from your provider's console (each provider page lists exactly what you need)
  4. Save the configuration
  5. Make a test call from any voice agent to confirm it works

Saving a provider replaces your organization's active telephony configuration. The page shows which provider is currently active.

How many calls run at once#

Below the provider form, the Telephony page shows how many outbound calls your organization can run at the same time. This pool is shared by every campaign and journey, and its size comes from your plan.

  • Exotel and Asterisk ARI limit calls by the number of channels on your trunk. Enter your Trunk channel limit, and calls are capped at the lower of that number and your plan.
  • Twilio and the other providers limit calls per second rather than by channel, so there is nothing to set.

Inbound calls#

To have an agent answer calls to one of your numbers, follow Inbound Calling.

Troubleshooting#

Calls are not connecting

  • Check that the credentials were pasted exactly from your provider's console
  • Write phone numbers in international format, for example +919876543210
  • Make sure your provider account has enough balance and the caller ID is verified or owned by you

Poor audio quality

  • Phone calls carry narrowband audio (8 kHz on most providers, 16 kHz on Vonage), so voices sound less crisp than in browser tests
  • Try a shorter, clearer voice and check the agent's speech speed in its settings

Calls queue instead of starting

  • You have reached your concurrent call limit. Check the limit card on the Telephony page, and for Exotel or Asterisk set your trunk channel limit

Inbound Calling

Let your voice agent answer calls to your phone numbers

https://docs.lemuai.com/integrations/telephony/inbound

Overview#

Lemu AI can answer inbound calls with Twilio, Plivo, Cloudonix, Vobiz and Asterisk ARI. When someone calls your configured phone number, your voice agent automatically answers and handles the interaction. The inbound calling configuration in Lemu AI uses the same telephony settings as outbound calling.

Supported Providers for Inbound Calls#

Vonage is supported for outbound calls only. For Exotel inbound calls, contact us at hello@lemuai.com and we will help you route your Exotel number to your agent.

How Inbound Calling Works#

When someone calls your configured phone number:

  1. Call Received: The telephony provider receives the incoming call
  2. Webhook Triggered: The provider sends a webhook to Lemu AI
  3. Agent Activated: Lemu AI activates your configured voice agent workflow
  4. Audio Streaming: Real-time audio streams between caller and agent via WebSocket
  5. Conversation Handled: Your voice agent manages the entire conversation

Configuration in Lemu AI#

Setting up inbound calling requires three simple steps:

Step 1: Configure Telephony Provider#

The telephony configuration for inbound calling is identical to outbound calling. Follow the Configuration section in your provider's documentation page:

Step 2: Get Your Workflow Webhook URL#

  1. Find Your Workflow ID:

    • Navigate to your workflow page (e.g., https://app.lemuai.com/workflow/3)
    • Note the workflow ID from the URL (in this example: 3)
  2. Construct Webhook URL:

    Text
    https://app.lemuai.com/api/v1/telephony/inbound/{workflow_id}

    For example, if your workflow ID is 3:

    Text
    https://app.lemuai.com/api/v1/telephony/inbound/3

Step 3: Configure Provider-Specific Inbound Settings#

Each telephony provider requires additional configuration to route incoming calls to your Lemu AI webhook. Follow the provider-specific inbound setup instructions:

Testing Inbound Calls#

After completing both the Lemu AI configuration and provider-specific setup:

  1. Test Call: Call your configured phone number from another phone
  2. Verify Connection: Ensure your voice agent answers and responds appropriately
  3. Check Logs: Monitor call logs in both Lemu AI and your provider's dashboard
  4. Audio Quality: Verify clear two-way audio communication

Troubleshooting Common Issues#

Calls go to voicemail instead of agent

  • Verify webhook URLs are correctly configured at your provider
  • Check the webhook URL was pasted exactly, including the workflow ID
  • Ensure phone numbers are properly linked to your application

Agent doesn't respond to incoming calls

  • Confirm your voice agent workflow is properly configured
  • Check webhook signature validation is working
  • Verify WebSocket connections are established successfully

Provider mismatch error

  • Error: "Configuration error: This phone number is configured for a different telephony provider"
  • Solution: Check your dashboard settings and update your webhook URL configuration to match the correct provider
  • Ensure the phone number is configured for the same provider in both Lemu AI and your telephony console

Workflow not found error

  • Error: "Workflow not found"
  • Solution: Verify the workflow ID in your webhook URL is correct and the workflow exists in your dashboard
  • Double-check the webhook URL format: https://app.lemuai.com/api/v1/telephony/inbound/{workflow_id}

Account validation failed

  • Error: "Authentication error: Account credentials do not match"
  • Solution: Verify your account SID/credentials configuration in Lemu AI matches your telephony provider settings
  • Re-enter your provider credentials in the telephony configuration page

Phone number not configured

  • Error: "Phone number not configured: This number is not set up for inbound calls"
  • Solution: Add this phone number to your telephony configuration in Lemu AI
  • Ensure the phone number is properly linked to your provider account

Signature validation failed

  • Error: "Security error: Webhook signature validation failed"
  • Solution: Verify your auth token configuration in Lemu AI matches your provider settings
  • Ensure webhook requests are coming from your telephony provider's verified IP ranges
  • Check that your webhook URL is accessible and responding correctly

Quota exceeded error

  • Error: "Service temporarily unavailable: Your account has exceeded usage limits"
  • Solution: Contact your administrator or upgrade your plan to continue receiving calls
  • Check your provider account billing and usage limits

General authentication failed

  • Error: "Authentication failed"
  • Solution: Check your webhook URL configuration and ensure your telephony provider settings match your dashboard configuration
  • Verify all credentials are entered correctly and haven't expired

Poor audio quality on inbound calls

  • Check network bandwidth and latency from provider to Lemu AI
  • Verify audio pipeline configuration matches provider requirements
  • Review WebSocket connection stability

Best Practices#

  • Single Configuration: Use the same telephony configuration for both inbound and outbound calls
  • Testing: Always test inbound calling after configuration changes
  • Monitoring: Monitor both Lemu AI logs and provider dashboards for call analytics
  • Backup Numbers: Configure multiple phone numbers for redundancy
  • Security: Ensure webhook signature verification is enabled for security

Next Steps#

  1. Choose your telephony provider and complete the basic configuration
  2. Follow the inbound setup steps on your provider's page
  3. Test your inbound calling setup
  4. Configure your voice agent workflow for optimal caller experience

Twilio Integration

Configure Twilio for voice communication in Lemu AI

https://docs.lemuai.com/integrations/telephony/twilio

Overview#

Twilio is a cloud communications platform that enables voice calling, messaging, and video capabilities. Lemu AI's Twilio integration provides seamless connectivity for your voice agents.

Prerequisites#

Before setting up Twilio integration, you'll need:

  • A Twilio account
  • Account SID and Auth Token from your Twilio Console
  • At least one Twilio phone number

Video Tutorial#

Watch this step-by-step guide to set up Twilio with Lemu AI:

Configuration#

Step 1: Get Twilio Credentials#

  1. Log in to your Twilio Console
  2. Find your Account SID and Auth Token on the dashboard
  3. Navigate to Phone Numbers → Manage → Active Numbers
  4. Copy your phone number(s)

Step 2: Configure in Lemu AI#

  1. Go to Agent Setup → Telephony in the sidebar
  2. Watch the Twilio setup video tutorial above for detailed guidance
  3. Select Twilio as your provider

4. Enter your credentials:

  • Account SID
  • Auth Token
  • From Phone Number (with country code, e.g., +1234567890)
  1. Click Save Configuration

Step 3: Test Your Configuration#

  1. Create a test workflow
  2. Click "Test Call" to verify connection
  3. Check call logs for successful connection

Inbound Calling Setup#

To enable inbound calling with Twilio:

  1. Complete Telephony Configuration: Use the same Configuration steps above
  2. Get Your Workflow Webhook URL: Find your workflow ID and construct the webhook URL as: https://app.lemuai.com/api/v1/telephony/inbound/{workflow_id}

Configure Webhook in Twilio Console#

  1. Configure Phone Number Webhook:

    • Go to Phone Numbers → Manage → Active Numbers in Twilio Console
    • Click on the phone number you want to use for inbound calls
    • In the "Voice Configuration" section:
      • Set Webhook to: https://app.lemuai.com/api/v1/telephony/inbound/{workflow_id}
      • Set HTTP Method to: POST
    • Click Save Configuration

    Replace {workflow_id} with your actual workflow ID.

    Twilio phone number voice configuration showing webhook URL setup for inbound calls
  2. Verify Setup:

    • Verify any firewalls allow Twilio's IP ranges

Test Inbound Calling#

  1. Call your configured Twilio phone number from another phone
  2. Verify your Lemu AI voice agent answers and responds
  3. Check call logs in both Lemu AI dashboard and Twilio Console

Troubleshooting#

Invalid phone number error

Ensure phone numbers include country code in E.164 format: +1234567890

Authentication failed

  • Verify Account SID and Auth Token are correct
  • Check for extra spaces in credentials
  • Ensure credentials haven't been regenerated in Twilio Console

Webhook signature validation failing

  • Confirm your Auth Token matches exactly
  • Verify the webhook URL matches what Twilio sends
  • Check if you're behind a proxy that modifies requests

No audio on calls

  • Verify WebSocket connection is established
  • Check firewall rules for WebSocket traffic
  • Ensure audio pipeline is configured correctly

Inbound calls go to voicemail

  • Verify webhook URL is correctly configured in Twilio Console
  • Check the webhook URL was pasted exactly, with no spaces or missing characters
  • Check that phone number is properly linked to webhook

Voice agent doesn't respond to inbound calls

  • Confirm voice agent workflow is properly configured
  • Check webhook signature validation is working
  • Verify WebSocket connection establishes successfully
  • Review call logs for error messages

Best Practices#

  • Store credentials securely in the database
  • Test your configuration with a single call before running campaigns
  • Monitor Twilio Console for usage and billing

Plivo Integration

Connect Plivo to place and answer calls with your voice agents

https://docs.lemuai.com/integrations/telephony/plivo

Overview#

Plivo connects your voice agents to the phone network. Lemu AI streams call audio through Plivo, so several calls can run in parallel. You can add more than one caller ID, and outbound calls are spread across them.

Prerequisites#

  • A Plivo account
  • Your Auth ID and Auth Token from the Plivo console
  • At least one Plivo phone number to use as a caller ID

Configuration#

Step 1: Get your Plivo credentials#

  1. Sign in to the Plivo console
  2. Copy the Auth ID and Auth Token shown on the overview page
  3. Under Phone Numbers, note the numbers you want calls to come from

Step 2: Configure in Lemu AI#

  1. Go to Agent Setup → Telephony in the sidebar
  2. Select Plivo as your provider
  3. Enter your credentials:
    • Auth ID (starts with MA)
    • Auth Token
    • Outbound caller IDs: one or more of your Plivo numbers, in international format such as +918035088454
  4. Click Save Plivo configuration

After saving, the Auth Token is shown masked. Leave it masked when you edit other fields and the saved token is kept.

Step 3: Test your configuration#

Open any voice agent and start a phone test call to your own number. See Testing your agent.

Inbound calling setup#

To let an agent answer calls to a Plivo number:

  1. Find the agent's workflow ID in the address bar when you open it, for example https://app.lemuai.com/workflow/42 has the ID 42
  2. In the Plivo console, go to Voice → Applications and create an application
  3. Set the Answer URL to https://app.lemuai.com/api/v1/telephony/inbound/{workflow_id} (for example .../inbound/42) with method POST
  4. Save the application, then attach your Plivo number to it under Phone Numbers
  5. Call the number to test

More detail and troubleshooting is on Inbound Calling.

Troubleshooting#

Outbound calls fail immediately

  • Check the Auth ID and Auth Token were copied exactly
  • Make sure the caller ID numbers belong to your Plivo account
  • Check your Plivo account balance

Inbound calls are not answered by the agent

  • Check the Answer URL contains the right workflow ID and uses POST
  • Make sure the number is attached to the application
  • Make sure Plivo is the active provider on the Telephony page

Exotel Integration

Connect Exotel to place calls with your voice agents in India

https://docs.lemuai.com/integrations/telephony/exotel

Overview#

Exotel is a cloud telephony provider in India. Lemu AI places outbound calls through your Exotel account and streams the conversation through Exotel's Voicebot.

Prerequisites#

  • An Exotel account with voice enabled
  • Your Account SID, API Key and API Token from the Exotel dashboard
  • An Exotel number (ExoPhone) to use as the caller ID

Configuration#

Step 1: Get your Exotel credentials#

  1. Sign in to the Exotel dashboard
  2. Open Settings → API Settings
  3. Copy your Account SID, API Key and API Token
  4. Note the ExoPhone you want calls to come from

Step 2: Configure in Lemu AI#

  1. Go to Agent Setup → Telephony in the sidebar
  2. Select Exotel as your provider
  3. Enter:
    • Account SID
    • API Key
    • API Token
    • Caller ID: the number calls appear to come from, for example +919876543210 (an Exotel number without the + also works)
  4. Click Save telephony configuration

Step 3: Set your channel limit#

Exotel limits how many calls run at once by the number of channels on your account. On the Telephony page, enter your Trunk channel limit so Lemu AI never starts more calls than Exotel allows. Calls are capped at the lower of this number and your plan.

Exotel calls run through a Voicebot flow on your Exotel account. If your first test call does not connect, contact us at hello@lemuai.com and we will help you finish the Exotel setup. Inbound calls on Exotel are set up the same way, with our help.

Step 4: Test your configuration#

Open any voice agent and start a phone test call to your own number. See Testing your agent.

Troubleshooting#

Calls fail with an authentication error

  • Check the Account SID, API Key and API Token were copied exactly from API Settings

Calls wait in a queue

  • You have reached your trunk channel limit or your plan's concurrent call limit. Raise the channel limit if your Exotel account has more channels

Vonage Integration

Configure Vonage (Nexmo) for voice communication in Lemu AI

https://docs.lemuai.com/integrations/telephony/vonage

Overview#

Vonage (formerly Nexmo) is a cloud communications platform that provides global voice, messaging, and video capabilities. Lemu AI's Vonage integration enables high-quality voice interactions with your agents using Vonage's robust infrastructure.

Prerequisites#

Before setting up Vonage integration, you'll need:

  • A Vonage account
  • Vonage Application with Voice capability enabled
  • Application ID and Private Key from your Vonage Dashboard
  • At least one Vonage phone number

Video Tutorial#

Watch this step-by-step guide to set up Vonage with Lemu AI:

Configuration#

Step 1: Create Vonage Application#

  1. Log in to your Vonage Dashboard
  2. Navigate to Applications → Create a new application
  3. Enable Voice capability
  4. Generate a private key (save this securely - you'll need it)
  5. Note your Application ID

Step 2: Get API Credentials#

  1. Find your API Key and API Secret in the dashboard under API Settings
  2. Navigate to Numbers → Your Numbers
  3. Copy your phone number(s)
  4. Link your numbers to your application

Step 3: Configure in Lemu AI#

  1. Go to Agent Setup → Telephony in the sidebar
  2. Watch the Vonage setup video tutorial above for detailed guidance
  3. Select Vonage as your provider
  4. Enter your credentials:
    • Application ID
    • Private Key (entire key including BEGIN/END lines)
    • API Key (Optional - for some operations)
    • API Secret (Optional - for webhook verification)
    • From Phone Number (without '+' prefix, e.g., 14155551234)
  5. Click Save Configuration

Step 4: Test Your Configuration#

  1. Create a test workflow
  2. Click "Test Call" to verify connection
  3. Check call logs for successful connection

Inbound Calling#

Coming Soon: Inbound calling support for Vonage is currently under development and will be available in a future release. For now, Vonage integration supports outbound calling only.

Vonage integration currently supports outbound calling. Inbound calling functionality is being developed and will include:

  • Webhook configuration for incoming calls
  • NCCO response handling
  • Event tracking for call lifecycle management
  • WebSocket audio streaming for inbound calls

For inbound calling needs, consider using Twilio, Cloudonix, or Vobiz which have full inbound support.

Audio Quality Optimization#

Vonage uses higher quality audio (16kHz) which provides:

  • Clearer voice reproduction
  • Better speech recognition accuracy
  • More natural-sounding TTS output
  • Reduced transcription errors

Troubleshooting#

Voice application capabilities error

  • Ensure "Voice" is enabled in your Vonage application
  • Verify the application ID matches your configuration
  • Check that your phone numbers are linked to the application

JWT authentication failed

  • Verify your private key is complete (including BEGIN/END lines)
  • Check the Application ID is correct
  • Ensure the private key hasn't been regenerated in Vonage Dashboard

Invalid phone number error

  • Remove the '+' prefix for Vonage (use 14155551234 not +14155551234)
  • Ensure numbers are in E.164 format without the '+'
  • Verify numbers are active in your Vonage account

No audio on calls

  • Verify WebSocket connection is established
  • Check audio pipeline is configured for 16kHz PCM
  • Monitor WebSocket for binary audio frames
  • Review VAD (Voice Activity Detection) settings

Calls disconnecting early

  • Check WebSocket heartbeat/ping-pong frames
  • Verify no timeout in load balancer/proxy
  • Monitor for audio pipeline errors
  • Review max call duration settings

Inbound calls not reaching voice agent

  • Verify Answer URL is correctly configured in Vonage application
  • Check the Answer URL was pasted exactly, including the workflow ID
  • Check that phone numbers are linked to the correct application
  • Verify Event URL is configured for call tracking

Voice agent doesn't respond to inbound calls

  • Confirm NCCO response includes correct WebSocket endpoint
  • Check that organization_id in Event URL matches your setup
  • Verify voice agent workflow is properly configured
  • Review webhook logs for error responses

Best Practices#

  • Security: Private keys are stored securely in the database
  • Testing: Use Vonage Voice Inspector for debugging call issues
  • Numbers: Configure multiple numbers for redundancy
  • Monitoring: Set up alerts in Vonage Dashboard for failures
  • Cost Management: Monitor usage to control costs

Cost Considerations#

Vonage pricing includes:

  • Per-minute charges for calls
  • Phone number rental fees
  • Optional features (recording, transcription)

Check Vonage pricing for current rates.

Advanced Configuration#

Custom Headers#

Add custom headers to WebSocket connections:

Python
# In your webhook response
"headers": {
    "X-Custom-Header": "value",
    "Authorization": "Bearer token"
}

Call Recording#

Enable call recording via NCCO:

JSON
{
  "action": "record",
  "eventUrl": ["https://your-domain/recording-webhook"],
  "format": "mp3"
}

API Differences from Twilio#

FeatureTwilioVonage
Audio Format8kHz μ-law16kHz Linear PCM
Control FormatTwiML (XML)NCCO (JSON)
AuthenticationBasic AuthJWT
WebSocket DataBase64 textBinary frames
Phone FormatWith '+'Without '+'

Next Steps#

  • Test your Vonage integration with a simple workflow
  • Configure VAD settings for optimal voice detection
  • Set up monitoring and alerts
  • Explore advanced features like call recording

Cloudonix Integration

Configure Cloudonix for voice communication in Lemu AI

https://docs.lemuai.com/integrations/telephony/cloudonix

Overview#

Cloudonix is a cloud communications platform that enables Lemu voice agents to connect to SIP communications platform, either on-premise or in the cloud. In addition, Cloudonix exposes a full set of voice APIs, that provide a full suite of call-control capabilities and more.

Prerequisites#

Before setting up Cloudonix integration, you'll need:

  • A Cloudonix account
  • A Cloudonix domain UUID (or the domain name)
  • A Cloudonix domain API Key
  • A Cloudonix outbound voice trunk service provider connection

Configuration#

Step 1: Get Cloudonix Credentials#

  1. Log in to your Cloudonix Console
  2. Find your Domain UUID and Domain API Key on the dashboard

Step 2: Configure in Lemu AI#

  1. Go to Agent Setup → Telephony in the sidebar
  2. Watch the Cloudonix setup video tutorial above for detailed guidance
  3. Select Cloudonix as your provider
  4. Enter your credentials:
    • Domain UUID
    • Domain API Key
  5. Click Save Configuration

Step 3: Test Your Configuration#

  1. Create a test workflow
  2. Click "Test Call" to verify connection
  3. Check call logs for successful connection

Inbound Calling Setup#

The Lemu AI configuration for inbound calling is identical to outbound calling - use the same credentials configured above. However, you need additional setup in your Cloudonix Console to route incoming calls to Lemu AI.

Configure Inbound Trunk and Application#

  1. Set Up Inbound Trunk:

    • Log in to your Cloudonix Console
    • Navigate to Trunks → Create Inbound Trunk
    • Configure your inbound trunk with your voice service provider
    • Ensure the trunk can receive calls to your desired phone numbers
  2. Create Application for Your Domain:

    • Select your domain in the Cloudonix Console
    Cloudonix console showing domain selection
    • Create a new application for your domain
    • Set the webhook URL in the application:
      Text
      https://app.lemuai.com/api/v1/telephony/inbound/{workflow_id}

    Replace {workflow_id} with your actual workflow ID.

    Cloudonix application creation with webhook URL configuration
  3. Verify Configuration:

    • Test that webhook URL responds correctly
    • Verify any firewalls allow Cloudonix's IP ranges
    • Confirm your inbound trunk is active and receiving calls

Test Inbound Calling#

  1. Call your configured phone number from another phone
  2. Verify your Lemu AI voice agent answers and responds
  3. Check call logs in both Lemu AI dashboard and Cloudonix Console
  4. Confirm clear two-way audio communication

Troubleshooting#

Invalid phone number error

Ensure phone numbers include country code in E.164 format: +1234567890

Authentication failed

  • Verify Domain UUID and Domain API Key are correct
  • Check for extra spaces in credentials
  • Ensure credentials haven't been disabled or deleted in Cloudonix Console

No audio on calls

  • Verify WebSocket connection is established
  • Check firewall rules for WebSocket traffic
  • Ensure audio pipeline is configured correctly

Inbound calls not reaching voice agent

  • Verify inbound trunk is properly configured and active
  • Check routing rules point to correct Lemu AI webhook endpoint
  • Check the webhook URL was pasted exactly, with no spaces or missing characters
  • Confirm phone numbers are correctly routed to your trunk

Voice agent doesn't respond to inbound calls

  • Verify organization_id in webhook URLs matches your setup
  • Check that voice agent workflow is properly configured
  • Ensure SIP connection instructions are correctly returned
  • Review webhook logs for error responses

Best Practices#

  • Store credentials securely in the database
  • Test your configuration with a single call before running campaigns
  • Monitor Cloudonix Sessions for usage

Vobiz Integration

Configure Vobiz for voice communication in Lemu AI

https://docs.lemuai.com/integrations/telephony/vobiz

Overview#

Vobiz is a cloud-based telephony service provider that offers global reach with competitive pricing. Lemu AI's Vobiz integration provides reliable voice connectivity for your conversational AI agents.

Prerequisites#

Before setting up Vobiz integration, you'll need:

  • A Vobiz account
  • Auth ID from your Vobiz dashboard
  • Auth Token generated for your account
  • At least one configured phone number in your Vobiz account

Configuration#

Step 1: Get Vobiz Credentials#

  1. Sign up for a Vobiz account
  2. Log in to your Vobiz dashboard
  3. Navigate to your account settings to find your Auth ID
  4. Generate an Auth Token for API access
  5. Configure phone numbers in your Vobiz account for outbound calling

Step 2: Configure in Lemu AI#

  1. Go to Agent Setup → Telephony in the sidebar
  2. Select Vobiz as your provider
  3. Enter your credentials:
    • Auth ID
    • Auth Token
    • From Phone Number (with country code, e.g., +1234567890)
  4. Click Save Configuration

Vobiz provides cloud-based telephony services with global reach and competitive pricing.

Step 3: Test Your Configuration#

  1. Create a test workflow
  2. Click "Test Call" to verify connection
  3. Check call logs for successful connection

Inbound Calling Setup#

To enable inbound calling with Vobiz:

  1. Complete Telephony Configuration: Use the same Configuration steps above
  2. Get Your Workflow Webhook URL: Find your workflow ID and construct the webhook URL as: https://app.lemuai.com/api/v1/telephony/inbound/{workflow_id}

Configure Application in Vobiz Console#

Vobiz requires creating an XML application to handle inbound calls. Follow these steps:

  1. Navigate to Applications:

    • Log in to your Vobiz Console
    • Navigate to the Applications section
    Vobiz console showing Applications section navigation
  2. Create New Application:

    • Click Create New Application
    • Configure the XML application with the following URLs:
      • Answer URL: https://app.lemuai.com/api/v1/telephony/inbound/{workflow_id}
      • Hangup URL: https://app.lemuai.com/api/v1/telephony/vobiz/hangup-callback/workflow/{workflow_id}
      • Fallback Answer URL: https://app.lemuai.com/api/v1/telephony/inbound/fallback
    • Save the application

    Replace {workflow_id} with your actual workflow ID.

    Vobiz XML application configuration showing Answer URL, Hangup URL, and Fallback Answer URL
  3. Attach Phone Number:

    • After saving the application, edit it to attach a phone number
    • Select the phone number you want to use for inbound calls
    • Link it to your created application
    Vobiz application showing phone number attachment interface
  4. Verify Setup:

    • Verify any firewalls allow Vobiz's webhook requests

Test Inbound Calling#

  1. Call your configured Vobiz phone number from another phone
  2. Verify your Lemu AI voice agent answers and responds
  3. Check call logs in both Lemu AI dashboard and Vobiz dashboard

Troubleshooting#

Invalid phone number error

Ensure phone numbers include country code in E.164 format: +1234567890

Authentication failed

  • Verify Auth ID and Auth Token are correct
  • Check for extra spaces in credentials
  • Ensure credentials haven't been regenerated in Vobiz dashboard

Webhook requests failing

  • Confirm your Auth Token matches exactly
  • Verify the webhook URL is accessible from Vobiz servers
  • Check if you're behind a proxy that modifies requests

No audio on calls

  • Verify WebSocket connection is established
  • Check firewall rules for WebSocket traffic
  • Ensure audio pipeline is configured correctly

Inbound calls not connecting

  • Verify webhook URL is correctly configured in Vobiz dashboard
  • Check the webhook URL was pasted exactly, with no spaces or missing characters
  • Check that phone number is properly linked to webhook

Voice agent doesn't respond to inbound calls

  • Confirm voice agent workflow is properly configured
  • Check webhook processing is working correctly
  • Verify WebSocket connection establishes successfully
  • Review call logs for error messages

Best Practices#

  • Store credentials securely in the database
  • Test your configuration with a single call before running campaigns
  • Monitor Vobiz dashboard for usage and billing
  • Keep your Auth Token secure and rotate it periodically

Asterisk ARI Integration

Connect Lemu AI to your Asterisk PBX using the Asterisk REST Interface (ARI)

https://docs.lemuai.com/integrations/telephony/asterisk-ari

Overview#

Asterisk ARI (Asterisk REST Interface) allows you to connect Lemu AI voice agents to your existing Asterisk PBX. ARI provides a WebSocket-based event model for controlling calls via Stasis applications, giving Lemu full control over call flow and audio streaming.

This guide focuses on the Lemu-specific configuration. For general Asterisk installation and administration, refer to the official Asterisk documentation.

Prerequisites#

Before setting up the ARI integration, ensure you have:

  • A running Asterisk instance (version 16 or later recommended)
  • ARI module enabled in Asterisk
  • chan_websocket (WebSocket channel driver) enabled in your Asterisk build
  • Your Asterisk server can reach app.lemuai.com over the internet (HTTPS and secure WebSockets)

If you compiled Asterisk from source, ensure chan_websocket is included during the build. This module is required for external media streaming between Asterisk and Lemu. Refer to the Asterisk build system documentation for details on enabling modules.

Asterisk Configuration#

The following Asterisk configuration files need to be set up to work with Lemu. These are minimal examples focused on the Lemu integration -- refer to the Asterisk documentation for full configuration details.

Enable ARI (ari.conf)#

Create an ARI user that Lemu will use to authenticate:

ini
[general]
enabled = yes
 
[lemu]
type = user
read_only = no
password = your_secure_password

The username (section name, e.g., lemu) and password here must match the Stasis App Name and App Password you configure in Lemu.

Enable the HTTP Server (http.conf)#

ARI requires the Asterisk HTTP server to be enabled:

ini
[general]
enabled = yes
bindaddr = 0.0.0.0
bindport = 8088

Configure the Stasis Dialplan (extensions.conf)#

Route incoming calls to your Stasis application so Lemu can handle them:

ini
[from-external]
exten => _X.,1,NoOp(Incoming call to ${EXTEN})
 same => n,Stasis(lemu)
 same => n,Hangup()

Replace lemu with the app name you configured in ari.conf and in Lemu.

Configure External Media Streaming (websocket_client.conf)#

Lemu uses Asterisk's external media streaming to send and receive audio over WebSocket. Configure a WebSocket client connection that points to Lemu AI:

ini
[lemu_staging]
type = websocket_client
uri = wss://app.lemuai.com/api/v1/telephony/ws/ari
protocols = audio

The section name (e.g., lemu_staging) is the WebSocket Client Name you'll enter in the Lemu telephony configuration. This name tells Asterisk which WebSocket connection to use for external media streaming during calls.

Refer to the Asterisk WebSocket documentation for additional websocket_client.conf options and TLS configuration.

Configuration in Lemu#

Step 1: Navigate to Telephony Settings#

  1. Go to Agent Setup → Telephony in the sidebar
  2. Select Asterisk (ARI) as your provider

Step 2: Enter Your ARI Credentials#

Configure the following fields:

FieldDescriptionExample
ARI Endpoint URLHTTP base URL of your Asterisk ARI serverhttp://asterisk.example.com:8088
Stasis App NameThe ARI username configured in ari.conflemu
App PasswordThe ARI password configured in ari.confyour_secure_password
WebSocket Client NameThe connection name from websocket_client.conflemu_staging
Inbound Workflow IDThe workflow to activate for inbound calls (optional)42
SIP Extensions / NumbersOptional SIP extensions or trunk numbers for outbound callsPJSIP/6001 or 6001

Step 3: Save and Test#

  1. Click Save Configuration
  2. Create a test workflow
  3. Initiate a test call to verify the connection

Inbound Calling#

Unlike other telephony providers that use HTTP webhooks for inbound calls, ARI delivers inbound calls as StasisStart events on the ARI WebSocket. Lemu automatically detects these events and activates the configured workflow.

How It Works#

  1. An external call arrives at Asterisk and the dialplan routes it to Stasis(lemu)
  2. Asterisk fires a StasisStart event over the ARI WebSocket with the channel in Ring state
  3. Lemu identifies this as an inbound call, validates your quota, and creates a workflow run
  4. The call is answered, bridged to an external media channel, and your voice agent workflow begins

Setting Up Inbound Calls#

Step 1: Configure the Asterisk dialplan

Ensure your dialplan routes inbound calls to the Stasis application as shown in the dialplan configuration above.

Step 2: Set the Inbound Workflow ID in Lemu

  1. Go to Agent Setup → Telephony in the sidebar
  2. In the ARI configuration, enter the Inbound Workflow ID — this is the ID of the workflow you want to activate when an inbound call arrives
  3. Click Save Configuration

You can find a workflow's ID in the URL when viewing it (for example, /workflow/42 means the ID is 42).

If no Inbound Workflow ID is configured, inbound calls will be hung up immediately. You must set this field for inbound calling to work.

Step 3: Test an inbound call

Place a call to a number or extension routed to your Stasis application. You should see the workflow activate and the voice agent respond.

Inbound Call Context#

When an inbound call activates a workflow, the following context is available to your workflow:

FieldDescription
caller_numberThe caller's phone number or extension
called_numberThe dialed number or extension
directionAlways inbound
call_idThe Asterisk channel ID
providerAlways ari

Troubleshooting#

Cannot connect to ARI endpoint

  • Verify the ARI endpoint URL is correct and reachable from the internet (Lemu AI connects to it from the cloud)
  • Check that the Asterisk HTTP server is running (http.conf has enabled = yes)
  • Ensure firewall rules allow traffic on the ARI port (default: 8088)
  • Confirm the ARI module is loaded: run module show like res_ari in the Asterisk CLI

Authentication failed

  • Verify the Stasis App Name matches the ARI user section name in ari.conf
  • Check the App Password matches the password in ari.conf
  • Ensure there are no extra spaces in the credentials

No audio during calls

  • Verify chan_websocket is loaded: run module show like chan_websocket in the Asterisk CLI
  • Check that websocket_client.conf is correctly configured with the right Lemu URI
  • Ensure the WebSocket Client Name in Lemu matches the section name in websocket_client.conf
  • Verify network connectivity and firewall rules allow WebSocket traffic between Asterisk and Lemu

Calls not reaching Lemu

  • Ensure the dialplan routes calls to Stasis(your_app_name)
  • Verify the app name in the dialplan matches the ARI user in ari.conf
  • Check Asterisk CLI for errors: asterisk -rvvv
  • Confirm the ARI WebSocket connection is active

Inbound calls are immediately hung up

  • Verify the Inbound Workflow ID is set in your ARI telephony configuration
  • Confirm the workflow ID exists and belongs to the same organization as the ARI config
  • Check that your organization has available quota
  • Review Lemu logs for warnings mentioning "no inbound_workflow_id configured"

WebSocket client connection issues

  • Check the URI in websocket_client.conf is wss://app.lemuai.com/api/v1/telephony/ws/ari
  • Make sure your firewall allows outbound secure WebSocket (port 443) connections from Asterisk
  • If using TLS, ensure certificates are correctly configured on both sides

Best Practices#

  • Host Asterisk on a server with a stable, low-latency internet connection for the best audio quality
  • Use strong passwords for ARI authentication
  • Restrict ARI access to known IP addresses using firewall rules
  • Monitor Asterisk logs alongside Lemu logs when debugging call issues
  • Keep Asterisk updated to the latest stable version for security and compatibility

Further Reading#

Voice Library

Browse, preview, favourite, clone, and set default TTS voices for your voice agents

https://docs.lemuai.com/voice-library/overview

Voice Library (Agent Setup → Voice Library) is the catalog of text-to-speech voices your organization can use on any voice configuration, across every agent. It's separate from picking a voice on a specific agent — this is where the full catalog lives, and where you manage your own cloned voices.

Voice Library catalog with language filters and the voice list

Browsing voices#

The catalog lists every available voice with its provider, language, gender, use case, and accent, and a Preview button to hear a sample before committing to it. Use the language filters in the sidebar or the search box to narrow the list — the catalog runs into the hundreds of voices across dozens of languages, so filtering by language is usually the fastest way to find a fit.

Three tabs organize the view:

  • All Voices — the full catalog.
  • Favourites — voices you've starred with the heart icon, for quick access when configuring an agent.
  • My Cloned Voices — voices your organization has cloned (see below).

Each voice has a Set default action; the current org-wide default is marked Default. This is the voice new agents fall back to before you explicitly pick one on their Voice configuration.

Re-sync Voices pulls in any new voices your TTS providers have added since the catalog was last refreshed — the page shows how long ago it last synced.

Cloning a voice#

If your plan includes voice cloning (Growth and above), Clone Voice lets you create a custom voice from an audio sample:

Clone Voice dialog with provider, name, language, and audio sample upload
FieldDescription
ProviderThe TTS provider to clone through (currently Cartesia)
Voice NameA name for the cloned voice
LanguageA language code, e.g. en, es, fr, hi
DescriptionOptional, free text
Audio SampleRecord directly or upload an MP3, WAV, OGG, or FLAC file, up to 25 MB. At least 5 seconds of clean speech is required; 30 seconds is recommended for the best clone quality

Cloned voices appear under My Cloned Voices and can be used on any agent's voice configuration exactly like a catalog voice — set as the org default, favourited, and previewed the same way.

Voice cloning is gated by the voice_cloning entitlement. On a plan without it, Clone Voice shows an upgrade prompt — see Usage & Plan for what each plan includes.

Tools Library

Create reusable HTTP API, call transfer, end call, message, Shopify order and catalog lookup tools once, then attach them to any agent

https://docs.lemuai.com/tools-library/overview

Tools (Agent Setup → Tools) is your organization's library of reusable agent tools. A tool defined here can be attached to any Agent Node in any voice agent, so you don't have to set it up again on every workflow that needs it. This is useful when several agents all need, say, to look up an order status against the same backend.

Tools library list with a Send Distributor Ledger HTTP API tool

Each tool in the list shows its name, type and description, and can be removed with the delete icon. Click New to create one.

Tool types#

New Tool dialog with the Type dropdown expanded
TypeWhat it does
External HTTP APICalls a REST endpoint you define. See HTTP API for how the agent decides when and how to call it
End CallLets the agent end the call. See End Call
Transfer CallLets the agent transfer to another phone number or SIP endpoint. See Call Transfer
Send MessageSends a WhatsApp message during a call. See WhatsApp Messaging
Shopify order actionConfirms, cancels, tags or looks up the Shopify order the call is about. Setup required: a connected Shopify store
Catalog lookupLooks up a product or other catalog item during a call, by its key or by name. Setup required: at least one catalog
NativeComing soon

Every tool starts with a Name and Description. That is what the agent sees when deciding whether to use it, so write them the way you would for a node-level tool: action-focused and specific. The fields after that depend on the type. An HTTP API tool asks for the same method, URL, headers and parameters described in HTTP API, for example.

Some types fill in a starting name and description for you when you pick them. Change them to match how your agent should use the tool.

Shopify order action#

Use this tool to let the agent act on the order a call is about, for example confirming a cash on delivery order once the customer agrees to receive it.

  • Pick the connected Shopify store and the action: confirm, cancel, tag, or look up the order.
  • The order is the one the call was started for, usually from a Shopify event.
  • Write the description so the agent only uses it at the right moment, for example "Confirm the customer's order only after they clearly agree to receive it."

Shopify refuses some actions, for example cancelling an order that has already shipped or been paid. The agent is told when that happens.

Catalog lookup#

Use this tool to let the agent answer questions like "Is the blue kurta in stock?" or "How much is the large size?" from your catalog.

FieldWhat to enter
Tool NameA short name, for example "Look up product"
CatalogThe catalog to look in. Shopify stores get a Products catalog automatically. If you have none yet, create one first
When should the agent use it?When the agent should look something up, for example "when the customer asks about price, stock or details"

The agent can look an item up by its exact key (such as a product id or SKU), or search by words when it doesn't know the key. A search returns up to 5 matches. Personal fields are never shown to the agent.

Using a library tool on an agent#

Tools aren't defined inline on a node. Every tool an Agent Node can use is created here first, then picked by checkbox in the node's tool list. If your organization has no tools yet, the node's tool picker links back to this page. A node can have several tools, and the agent decides which one to use and when, based on the node's instructions and each tool's name and description (see HTTP API for how that works).

Because a tool lives here rather than on any one workflow, editing it (its endpoint, description or parameters) updates every agent node it's attached to at once. Renaming or reconfiguring a shared tool affects every agent that uses it the next time it runs.

Knowledge Base

Upload documents and let your voice agent search them for answers during a call

https://docs.lemuai.com/knowledge-base/overview

A knowledge base is a set of documents you upload to your organization that a voice agent can search while a call is in progress. Upload a PDF, Word document, or text file once, and any conversation step you attach it to can pull relevant passages from it to answer a caller's question.

Behind the scenes, Lemu splits each document into chunks, generates an embedding for every chunk, and stores them so they can be searched by meaning rather than exact keywords — the agent can find the right passage even if the caller phrases their question differently from the document's wording.

Uploading documents#

Documents live under Agent Setup → Files in the sidebar (https://app.lemuai.com/files).

The Upload tab accepts:

  • File types: PDF, DOCX, DOC, TXT
  • Max size: 5 MB per file

Drag a file onto the upload area or use Choose File. Once the file finishes uploading, processing starts automatically — the All tab lists every document with its filename, size, chunk count, and processing status, polling for updates every few seconds while a document is still processing.

StatusMeaning
pendingUploaded, waiting to be processed
processingBeing converted, chunked, and embedded
completedReady to be selected and searched
failedProcessing hit an error (see the document's error detail)

Only documents with status completed can be attached to a conversation step — a document that's still processing or failed won't show up as selectable.

Processing embeds each chunk with an OpenAI-compatible embedding model (text-embedding-3-small by default). Configure an embeddings provider under Model Configurations > Embedding before uploading — without it, processing fails.

You can delete a document from the All tab at any time; this also removes its chunks from search results.

Using a knowledge base in a voice agent#

Knowledge base documents are attached per conversation step, not globally to the whole agent. Open the Start Call node or an Agent Node in the workflow builder, and scroll to the Documents section below Tools — it lists every completed document as a checkbox so you can select which ones this step can reference.

Text
Agent Node
├── Prompt
├── Tools           (HTTP API tools, etc.)
└── Documents        ← knowledge base documents for this step
    ☑ refund-policy.pdf
    ☐ product-catalog.docx

If a step has no documents selected, the agent has no knowledge base access on that step. If it has one or more, Lemu registers a retrieve_from_knowledge_base function with the LLM for the duration of that step, scoped only to the documents you checked.

What happens during a call#

  1. 1

    Caller asks a question

  2. 2

    retrieve_from_knowledge_base tool

  3. 3

    Vector similarity search (org + selected docs)

  4. 4

    Chunks returned with filename + score

  5. 5

    LLM answers using the retrieved text

The LLM itself decides when to call the tool — based on your node prompt and the conversation so far — and what search query to send. It isn't a fixed keyword match: write your prompt so the model understands when a caller's question should be looked up (for example, "if the caller asks about pricing, policies, or anything that might be in the uploaded documents, use the knowledge base tool before answering").

A few things worth knowing about the search itself:

  • Each call returns a small number of the most relevant chunks (three, by default) — not the whole document.
  • Results aren't filtered by a similarity cutoff before reaching the LLM; the model sees the best matches available and judges relevance itself.
  • The search is always scoped to your organization and to the documents selected on that node — a document isn't visible to a step unless it's checked on that step.

Knowledge base documents can be attached to voice agent nodes (Start Call and Agent Node). Journeys don't search documents directly; to use your documents in a journey, call a voice agent from it.

Runs

Find any call or journey run, see what happened step by step, and why it failed.

https://docs.lemuai.com/runs/overview

A run is one go through an agent or a journey for one person: one call, or one contact's trip through a journey. Insights → Runs lists them in two tabs.

Agent Calls#

Every call your voice agents made or answered.

  • Filters: agent (All agents or one), status (Completed or In progress), duration, and date. The live switch shows calls in progress right now and keeps the list refreshing.
  • Totals: Total runs (matching the filters), Total duration, and Avg duration (per connected call, leaving out 0-second calls).
  • Each row: status, inbound or outbound, the phone and name, the call's Disposition and extracted Variables.

Open a call to hear the recording, read the transcript and see the variables it captured. A call that couldn't be placed shows the reason; see Calls and telephony for each one.

"Completed" means the run finished, not that someone answered: check the call's outcome and duration.

Journey Runs#

Every contact's trip through a journey.

  • Filters: journey (All workflows or one), state, and date. Turn on Include queued and pending runs to also see runs that haven't started.
  • Counts at the top: Successfully finished, Ended with errors and Active.
  • States (the state filter):
StateMeaning
In Queue, PendingWaiting to start, for example for a free phone line
RunningA step is happening now
WaitingPaused at a Wait step, outside allowed hours, or waiting for a reply or reaction
FailedA step failed; the Error column says why

Finished runs show as completed.

Open a run (Details) to see each step, when it ran, and what it sent, skipped or waited for. The reasons are explained in Journeys troubleshooting.

Find one person's history#

To see everything that happened to one customer (events, messages, calls), open them under Audience → Contacts: the contact's Timeline tab shows it all in one place.

Reports & Usage

Where to find call, campaign, and journey reporting, and where billing and plan usage live

https://docs.lemuai.com/reports-and-usage/overview

Every call Lemu makes or receives feeds two things you can go back and look at: reports, which summarize and export what happened, and usage, which tracks the voice minutes it used against your organization's plan.

Reports#

Reporting is available at three levels: an organization-wide dashboard, per-campaign and per-agent CSV exports, and a detailed report for each automation.

Dashboard overview#

The dashboard aggregates every run across your organization for a date range you choose: outcome and disposition breakdown, a connect-to-qualified conversion funnel, best hours to dial, and a leaderboard of your automations. Pick a workflow or leave it set to all agents.

From the dashboard you can export the underlying run records for that date range as a CSV (phone/web, disposition, duration, and a link to each run) using the Export CSV control.

Campaign and voice agent reports#

Each campaign and each voice agent has a Download Report action that generates a CSV of every completed call for that campaign or agent: run ID, timestamps, phone number, call disposition, duration, any extracted variables your agent captured, call tags, and links to the transcript and recording. Campaign reports can additionally be scoped to a date range.

Journey reports#

Each journey has a Report tab with its own analytics, scoped to the contacts/rows that journey has dialed:

  • Conversations over time — daily call volume
  • Row journey — a funnel from rows triggered, to called, to connected, to qualified
  • Outcome mix — call disposition breakdown
  • Best hours to dial — call and qualification counts by hour
  • Calls needed to connect — how many attempts it typically takes to reach someone
  • Conversation length — talk-time distribution
  • Row details — a table with one row per contact, showing attempt count, last call outcome, last call duration, extracted variables, and the total call time for that row

Row details can be exported to CSV, and you can drill into any row to see the full history of calls made against it, each with its recording, transcript, and per-call duration.

What a report row contains#

Whether you're looking at a campaign report, an agent report, or the dashboard's exported runs, each row is backed by the same run record:

FieldDescription
Run IDUnique identifier for the run
Created atWhen the run started
Phone numberThe number dialed or the caller's number
Call dispositionHow the call ended (e.g. connected, no answer, voicemail)
Call durationTalk time in seconds
Extracted variablesStructured data your agent pulled out of the conversation
Call tagsAny tags your agent's workflow attached during the call
Transcript / recordingLinks to download the conversation transcript and audio

Usage & billing#

Every call debits against your organization's monthly voice-minute commitment, not a per-call charge — see Usage & Plan for how plans, entitlement limits, the minute commitment, and invoicing work.

For a billing-focused view of the same call data as the reports above, the Account usage tab (app.lemuai.com/usage-pricing) shows a day-by-day breakdown of calls, talk time, and minutes billed for the current billing period, alongside how much of every other plan entitlement (voice agents, journeys, CRM contacts, and so on) you've used.

Event Log

Every event about your contacts and website visitors, where it came from, and how events trigger journeys

https://docs.lemuai.com/event-log/overview

Event Log is a live feed of what your contacts (and, where available, your website visitors) did: events your own systems send to POST /api/v1/events, storefront events from Shopify, website and app activity from your Tracking Sources, WhatsApp replies, segment changes and custom record changes. It is also the entry point for the Events trigger that starts a journey run from an event.

Event Log page with the Send Test Event panel open

Where events come from#

Each event shows its Source. Filter by source with the source menu above the table.

SourceWhat it records
APIEvents your systems send to POST /api/v1/events, and test events from Send Test Event
ShopifyOrders, checkouts and other events from your connected Shopify store
WebsitePage views, app screens and tracked actions from your Tracking Sources (websites and apps), including Shopify storefront events
MessagesCustomer replies (whatsapp_message_received) and, when Message updates is ticked, delivery updates for messages you sent
SegmentsA contact entering (segment_entered) or leaving (segment_exited) a segment
Custom recordsCustom records created, changed or deleted
ImportedOlder events copied in from before the event store was turned on

What an API event does#

Every event sent to the API carries an event_type (e.g. InitiateCheckout, Purchase), an optional phone number, and an arbitrary data payload. Meta's standard event names are matched whatever their case, and older names such as order_placed still match Purchase. When an event arrives:

  1. Lemu resolves it to a contact by phone number, creating a new contact if none matches (this counts against your plan's CRM contacts limit). If list_name is included, the contact is upserted into that list, created if it doesn't already exist.
  2. The event is stored and shows up in this log, with its type, phone, resolved contact, and payload fields as columns.
  3. Any active journey with an API Events trigger whose event_type matches is queued to run, with the event's payload available as context variables.

Tracked actions from identified website and app visitors work the same way when their tracking source has Let identified visitors' tracked actions trigger journeys switched on.

Using the log#

The table has fixed columns for Created At, Event Type, Source, Phone and Contact. Columns beyond these are derived from whatever keys your events' data payloads actually contain, so the table looks different for every organization depending on what you're sending.

Above the table you can:

  • Search by phone, name, event type or visitor id
  • Filter by date range, event type and source
  • Tick Message updates to include delivery updates (sent, delivered, read, clicked, failed) for messages you sent. They are hidden by default because there are a lot of them

Website visitors#

When your account's event store is on, the log also includes events from anonymous website visitors. These have no contact yet, so the Contact column shows Visitor and the start of their visitor id. Once a visitor identifies, their later events show the contact, and their earlier visits appear in the contact's activity. The page description reads "Everything your contacts and website visitors did" when this is on.

Message updates and anonymous website visitor events only appear when the event store is on for your account. Without it, the log shows your contacts' events from every source.

Sending a test event#

Send Test Event lets you fire an event from inside the dashboard without wiring up real integration code. It is useful for building and testing a journey's API Events trigger before your actual system sends anything. Fill in an event type, optionally a phone number and a list to upsert into, and any payload fields as key/value pairs, then Send. It goes through the same path as a real POST /api/v1/events call and can trigger real journeys, so use a phone number you don't mind creating a test contact for.

API Docs#

The API Docs button opens a reference panel for the endpoint in place (authentication, the request and response shape, and copyable code examples in cURL, Python, and JavaScript) without leaving the page.

In-app Events API reference panel with request fields and a cURL example

Usage & Plan

Plan tiers, entitlement limits, the monthly voice-minute commitment, and invoices

https://docs.lemuai.com/settings/usage-and-plan

Lemu bills on a plan + monthly voice-minute commitment model: a fixed monthly platform fee gets you a plan's feature set and usage limits, and on top of that you commit to a number of voice minutes each month at a per-minute rate. Everything here lives under Usage & Plan in the dashboard sidebar (app.lemuai.com/usage-pricing), which has three tabs: Account usage, Upgrade plan, and Invoices.

There's no wallet or token balance to top up. If you've used Lemu before and remember buying "tokens" or "recharge packs," that system has been retired — usage is now covered by your monthly minute commitment, described below.

Plans#

PlanPrice (INR/month)Voice agentsConcurrencyJourneysCRM contactsKB documentsIntegrationsVoice minutes / month
Free₹011—500512,000
Basic₹99921210,0005032,000
Growth₹4,999105–1010100,0002501020,000
Pro₹9,9992010–3020250,0002,000Unlimited50,000
ScaleCustomUnlimitedUnlimitedUnlimitedUnlimitedUnlimitedUnlimitedUnlimited

Exact numbers are set in the plans console and can change — the table above reflects what's live today. Scale is a custom, sales-assisted plan for high-volume operations and isn't available to self-serve subscribe to; contact your account team to move onto it. User seats are unlimited on every plan.

Growth and Pro also unlock feature flags the lower tiers don't have: A/B testing (Growth+), voice cloning (Growth+), and AI-driven advanced analytics (Pro+). AI Copilot is available from Basic upward.

Billing is monthly by default; switch to Billed yearly on the Upgrade plan tab for one upfront annual charge at roughly 17% off the monthly rate.

Plan comparison cards on the Upgrade plan tab

Upgrading and downgrading#

Upgrading to a higher plan takes effect immediately. Moving to a lower plan — including back to Free — isn't a one-click switch: click Cancel plan first, which lets your current plan run through to the end of the billing period, and then subscribe to the lower plan once it lapses. This avoids losing the time you've already paid for on the higher tier.

Entitlements and limits#

Every plan enforces a set of entitlements — numeric caps (voice agents, concurrent calls, journeys, CRM contacts, knowledge base documents, integrations, user seats) and feature flags (voice cloning, A/B testing, AI Copilot, advanced analytics). Hitting a numeric cap, or trying to use a feature your plan doesn't include, blocks the action and shows an upgrade prompt rather than silently failing partway through — for example, creating a new voice agent past your agent limit, or inviting a teammate past your seat count on the Team page.

The Account usage tab shows where you stand against every entitlement on your current plan, with a Manage link next to each one that jumps to the relevant part of the product (agents, journeys, contacts, telephony settings, and so on).

Account usage tab showing entitlement usage bars for the current plan

Voice minutes and billing#

Voice minutes work differently from the other entitlements: instead of a fixed allowance, you choose how many minutes to commit to each month, anywhere from 500 minutes up to your plan's cap, using the slider under Manage minutes. Your recurring monthly charge is the platform fee plus committed minutes × your plan's per-minute rate — the rate itself is fixed per plan and gets cheaper the higher your plan (Basic minutes cost more per minute than Pro minutes).

Monthly voice minutes commitment slider with the pricing summary

Committed minutes refill at the start of every billing cycle and don't roll over — unused minutes from one month don't carry into the next. Changing your commitment takes effect differently depending on direction:

  • Increasing it charges you the prorated difference immediately and credits the extra minutes right away.
  • Decreasing it takes effect at the start of your next billing cycle — there's no refund for the current period.

If you use more voice minutes than you've committed to in a month, that's a signal to raise your commitment (or upgrade, if you're already at your plan's cap) rather than an automatic overage charge.

New organizations get a small signup bonus of voice minutes to try the product with before committing to a paid plan.

Payment and invoicing#

Payments are processed through Cashfree for organizations billing in INR, and through Paddle (Lemu's merchant of record) for other currencies. If a renewal payment fails, your subscription moves to a short grace period during which your plan keeps working normally; if it isn't resolved before the grace period ends, the organization is moved back to the Free plan.

The Invoices tab is where GST-registered Indian organizations set their GSTIN, registered legal name, and billing address for tax invoicing, and where every past invoice and receipt — platform fee and minute charges alike — can be downloaded as a PDF.

Usage reporting#

For call-level and campaign-level reporting rather than billing, see Reports & Usage — the Usage This Period panel on the Account usage tab (calls, talk time, and minutes billed per day) is a billing-focused summary of the same underlying call data.

Team

Invite teammates, assign roles, and control who can see contact phone numbers

https://docs.lemuai.com/settings/team

Manage who has access to your organization, and what they can do, from Settings → Team.

Invite a teammate card on the Team settings page, with an email field, role dropdown, and a toggle for viewing contact phone numbers

Team invites aren't available on a personal workspace (one created by signing up with a personal email domain). Sign up with a work email to create a company workspace first.

Roles#

Each member has exactly one role, which determines what they can do:

RoleCan do
OwnerEverything, including transferring ownership. There is exactly one owner per organization
AdminEverything except being the sole owner-transfer target
MemberFull operational access — voice agents, journeys, contacts, campaigns, reports. No billing, no configuration (telephony, integrations, API keys), no member management
EditorVoice agents, journeys, and contacts. No campaigns, billing, config, or member management
ViewerRead-only: dashboard and per-agent reports, including downloading them
FinancePlans, invoices, and payment — nothing operational

Only an Owner or Admin can invite members, change roles, or remove members. Changing another admin's role is restricted to the Owner — an Admin can't demote or reassign a fellow Admin.

Inviting a teammate#

  1. Enter their email address, pick a role, and optionally toggle Can view contact phone numbers (see below).
  2. Click Send invite. They receive an email with a link to accept.
  3. While their invite is pending, you can resend it or revoke it from the Members list.

Seats are a plan entitlement — inviting past your plan's limit prompts you to upgrade first. Admins always get phone number visibility regardless of the toggle; it only matters for the other roles.

Contact phone number visibility#

Every member has a Can view contact phone numbers toggle, independent of their role. Off by default, a member without it sees phone numbers masked (e.g. •••• 1234) everywhere in the dashboard; toggling it on shows the number in full. This is useful for giving someone operational access (as a Member or Editor) without exposing your full contact list's phone numbers.

Changing a role or removing a member#

From the Members list, click a member's role badge to change it, or use the row actions to remove them. Removing a member revokes their access immediately.

Transferring ownership#

Assigning a member the Owner role transfers ownership to them and demotes the current owner to Admin. Only the current owner can do this — it isn't available as an option from the regular role dropdown, which only offers Admin, Member, Editor, Viewer, and Finance.

API Keys

Create API Keys to trigger voice agent calls and push contact or campaign data into Lemu programmatically.

https://docs.lemuai.com/configurations/api-keys

You can create and manage API keys at https://app.lemuai.com/api-keys.

API keys authenticate requests to the Lemu API. The two main uses are:

  • Triggering an outbound call from an external system (a CRM, n8n, Zapier, or your own backend) by calling an API Trigger node's endpoint with a phone number and optional context. See Trigger an Outbound Call.
  • Keeping contacts in sync with your CRM or database, using the Contacts API.

To generate a key, go to /api-keys and click New.

Please note that you must copy and keep the API key secretly, since this is the only time that you would be able to copy it. If you lose it, you can always delete that key (if it's not being used anywhere) and create a new one.

Overview

Connect Slack, Jira, Google Calendar, Zoho Books, Google Sheets, and Shopify to your journeys and contacts

https://docs.lemuai.com/integrations/overview

Integrations connect a third-party app to your organization so it can be used from journeys and, for three providers, kept in sync with your contacts. Manage them from Settings → Integrations in the dashboard.

Connecting is OAuth-based — clicking Connect opens a popup where you sign in to the provider and grant access. Lemu never sees or stores your provider password.

Integrations page showing Slack connected and Jira, Google Calendar, Zoho Books, and Google Sheets available to connect

Available integrations#

Kinds of integration#

KindProvidersWhat it's for
ActionSlack, Jira, Google CalendarAdds a node to the journey canvas — send a Slack message, create a Jira issue, or book a Google Calendar event as one step in a journey
Data sourceZoho Books, Google SheetsSyncs contacts into Lemu (new/changed rows become contacts) and can push a contact's updates back out to the connected sheet or CRM
StoreShopifySyncs customers into Lemu (one way) and products into a catalog, sends order, checkout and storefront events that can start journeys, and lets voice agents act on orders

An action integration doesn't touch your contacts — it's purely something a journey can do. A data-source integration is the reverse: it's about keeping your contact list current, not about acting inside a call or journey.

Connecting#

  1. On Settings → Integrations, find the provider under Add an integration and click Connect.
  2. Jira asks for your site's subdomain first (e.g. enter acme if your Jira URL is acme.atlassian.net) before continuing to OAuth. Every other provider goes straight to the OAuth popup.
  3. Complete the provider's sign-in and consent screen in the popup. Lemu polls in the background and closes the popup automatically once the connection is confirmed active — you don't need to do anything else in the main window.
  4. Zoho Books additionally asks you to pick which Zoho organization to sync, if your account has more than one (skipped automatically if you only have one).
  5. Google Sheets additionally asks you to search for and pick a spreadsheet, then confirm how its columns map to contact fields — see Google Sheets for that step in detail.

Integrations are a plan entitlement — your plan caps how many you can have connected at once. If you're at the limit, connecting a new one prompts you to upgrade or disconnect another first.

Disconnecting and reconnecting#

Click Disconnect on a connected provider's card to remove it. This fully revokes the underlying connection, not just hides it in Lemu — so if a journey node or data sync depended on it, that stops working until you reconnect.

If Lemu reports an integration doesn't have enough access (for example, a Google Sheets scope was denied at connect time), disconnect and reconnect it: connecting again after a full disconnect always shows a fresh consent screen, so you can grant the missing permission. Reconnecting without disconnecting first can silently reuse the old, insufficient connection instead of prompting for new consent.

Next steps#

Slack

Send a message to a Slack channel as a step in a journey

https://docs.lemuai.com/integrations/slack

The Slack integration lets a journey post a message to a channel in your workspace — for example, notifying a sales channel when a call qualifies a lead, or flagging a failed payment reminder to an ops channel.

Connecting#

  1. On Settings → Integrations, click Connect on the Slack card.
  2. A popup opens Slack's OAuth consent screen. Choose the workspace and approve the requested permissions (posting messages and listing channels).
  3. Once approved, the card moves to Connected and shows Active with the date you connected.

Only one Slack workspace can be connected per organization at a time. To switch workspaces, Disconnect the current one first, then connect the new one.

Slack integration shown as connected and active on the Integrations page

Using it in a journey#

Once connected, add a Slack node to any journey's canvas (from the Add New Node panel, under Actions). It has two fields:

FieldPurpose
channelA channel name (e.g. #general) or channel ID. Searchable dropdown, backed by a live list of channels in the connected workspace
messageThe message text. Supports {{context.*}} templates and Markdown formatting

For example, a message like New lead: {{context.contact_name}} ({{context.phone}}) — qualified for demo sent to #sales-leads after a qualifying call.

The node routes to success or error depending on whether the message sent. On success, its output includes the channel and Slack's response data, so a later node in the journey can reference it.

Disconnecting#

Click Disconnect on the Slack card in Settings → Integrations. This revokes Lemu's access to the workspace immediately — any journey with an unconfigured Slack node will fail at that node the next time it runs until you reconnect.

Jira

Create a Jira issue as a step in a journey

https://docs.lemuai.com/integrations/jira

The Jira integration lets a journey create an issue in your Jira site — for example, opening a support ticket when a call reveals a problem, or a follow-up task for the sales team after a qualifying call.

Connecting#

  1. On Settings → Integrations, click Connect on the Jira card.

  2. Unlike the other providers, Jira asks for your site's subdomain first: enter the part before .atlassian.net (e.g. acme if your site is acme.atlassian.net), then Continue.

    Connect Jira dialog asking for the Jira subdomain before continuing to OAuth
  3. A popup opens Atlassian's OAuth consent screen. Sign in and approve access to the site.

  4. Once approved, the card moves to Connected.

Using it in a journey#

Once connected, add a Jira node to any journey's canvas (from the Add New Node panel, under Actions). It has four fields:

FieldPurpose
project_keyRequired. The short project key shown in issue IDs, e.g. SUP for tickets like SUP-123
summaryRequired. The issue title
issue_typeRequired. Must be valid for that project, e.g. Task, Bug, Story
descriptionOptional. The issue body

project_key and issue_type are both searchable dropdowns, backed by a live list of projects and issue types from the connected Jira site (sub-task types are excluded, since those need a parent issue and can't be created from this node).

For example, project_key: SUP, summary: Follow up with {{context.contact_name}}, issue_type: Task, description: Call outcome: {{context.call_outcome}} — all fields support {{context.*}} templates.

The node routes to success or error depending on whether the issue was created. On success, its output includes the project key and Jira's response data (including the new issue's key), so a later node in the journey can reference it.

Disconnecting#

Click Disconnect on the Jira card in Settings → Integrations. This revokes Lemu's access to the site immediately — any journey with an unconfigured Jira node will fail at that node the next time it runs until you reconnect.

Google Calendar

Book a meeting with a Google Meet link as a step in a journey

https://docs.lemuai.com/integrations/google-calendar

The Google Calendar integration lets a journey create a calendar event with a Google Meet link — for example, booking a demo automatically once a call confirms a time slot.

Connecting#

  1. On Settings → Integrations, click Connect on the Google Calendar card.

    Google Calendar integration card on the Integrations page with a Connect button
  2. A popup opens Google's OAuth consent screen. Sign in and approve calendar access.

  3. Once approved, the card moves to Connected.

Using it in a journey#

Once connected, add a Google Calendar node to any journey's canvas (from the Add New Node panel, under Actions). It has six fields:

FieldPurpose
summaryRequired. The event title
start_datetimeRequired. ISO 8601, e.g. 2026-09-20T15:00:00
end_datetimeOptional. ISO 8601; a default duration applies if omitted
attendeesOptional. Comma-separated email addresses
descriptionOptional. The event description
locationOptional. The event location

For example, summary: Onboarding call with {{context.contact_name}}, start_datetime: {{context.slot_start}}, end_datetime: {{context.slot_end}}, attendees: {{context.contact_email}}, sales@yourcompany.com — all fields support {{context.*}} templates.

This node always creates a Google Meet link on the connected account's primary calendar — it's built for booking a meeting, not just blocking time on a calendar.

The node routes to success or error depending on whether the event was created. On success, its output includes the event summary and Google's response data (including the Meet link), so a later node in the journey can reference it — for example, to include the link in a follow-up WhatsApp message.

Disconnecting#

Click Disconnect on the Google Calendar card in Settings → Integrations. This revokes Lemu's access immediately — any journey with an unconfigured Google Calendar node will fail at that node the next time it runs until you reconnect.

Zoho Books

Sync contacts from Zoho Books into Lemu, and push contact updates back

https://docs.lemuai.com/integrations/zoho-books

The Zoho Books integration is a data-source integration: it keeps a Lemu contact list in sync with your Zoho Books contacts, and lets you push a contact's changes back to Zoho. Unlike Slack, Jira, and Google Calendar, it isn't used from a journey node — it runs in the background.

Connecting#

  1. On Settings → Integrations, click Connect on the Zoho Books card.

    Zoho Books integration card on the Integrations page with a Connect button
  2. A popup opens Zoho's OAuth consent screen. Sign in and approve access.

  3. If your Zoho account has more than one organization, you're prompted to pick which one to sync. If you only have one, it's selected automatically.

  4. Once set up, Lemu creates (or reuses) a contact list named Zoho Books and starts syncing into it.

How sync works#

  1. Inbound: Zoho → Lemu

    Every 15 minutes, Lemu polls Zoho Books for contacts created or modified since the last sync and creates or updates the matching contacts in the Zoho Books list, matched by Zoho's internal contact_id.

  2. Outbound: Lemu → Zoho

    From a contact's detail page, you can manually push its current field values back to Zoho Books. This is a one-off, user-triggered action — Lemu doesn't push changes automatically as you edit a contact.

  3. Manual resync

    You don't have to wait for the next scheduled poll — trigger an immediate resync for the integration from the Integrations page if you need the latest Zoho data right away.

Field mapping#

Each field maps to a Zoho Books contact field with a direction — inbound (Zoho → Lemu only), outbound (Lemu → Zoho only), or bidirectional. The default mapping is a conservative starting point and can be edited per organization:

Lemu contact fieldZoho Books fieldDefault direction
first_namecontact_nameInbound
companycompany_nameBidirectional
emailemailBidirectional
phonemobileBidirectional

Zoho Books doesn't split first and last name, and whether a contact's number is stored under "phone" (landline) or "mobile" varies by organization — that's why first_name defaults to inbound-only and phone maps from mobile rather than assuming. Adjust the mapping to match how your Zoho organization actually uses these fields.

Disconnecting#

Click Disconnect on the Zoho Books card in Settings → Integrations. This stops the sync immediately and revokes Lemu's access to your Zoho account — the Zoho Books contact list and its existing contacts stay in Lemu, but they'll no longer receive updates until you reconnect.

Google Sheets

Sync contacts from a spreadsheet into Lemu, and push contact updates back to it

https://docs.lemuai.com/integrations/google-sheets

The Google Sheets integration is a data-source integration: it keeps a Lemu contact list in sync with rows in a spreadsheet, and lets you push a contact's changes back to the sheet. Unlike Slack, Jira, and Google Calendar, it isn't used from a journey node — it runs in the background.

Connecting#

  1. On Settings → Integrations, click Connect on the Google Sheets card.
  2. A popup opens Google's OAuth consent screen. Sign in and approve access.
  3. Pick a spreadsheet — search by name from the spreadsheets visible to the connected Google account.
  4. Map columns — after picking a spreadsheet (and sheet, if it has more than one tab), Lemu reads its header row and proposes a best-guess mapping from column names to contact fields (e.g. a column literally named "Phone" or "Email" is matched automatically). Review and adjust the mapping, then confirm.

A phone column mapping is required — a contact with no phone number can't be called. Every other field is optional.

Once confirmed, Lemu creates a contact list named {Spreadsheet title} — {Sheet name} and starts syncing into it.

How sync works#

  1. New rows

    Lemu registers a trigger on the sheet that fires as soon as a new row is added, so new contacts show up close to real time.

  2. Edited rows

    Row-added triggers can't detect an existing row's values changing, so every 15 minutes Lemu also does a full re-read of the sheet, which picks up both new rows and edits to existing ones. This is a backstop, not the primary path — most new contacts arrive via the trigger well before the next poll.

  3. Outbound: Lemu → Sheet

    From a contact's detail page, you can manually push its current field values back to the mapped row in the sheet. This is a one-off, user-triggered action — Lemu doesn't write back automatically as you edit a contact.

  4. Manual resync

    You don't have to wait for the next scheduled poll — trigger an immediate resync for the integration from the Integrations page if you need the latest sheet data right away.

If Lemu can't read the sheet#

If the connected account doesn't have access to the sheet you're trying to pick or map (for example, the OAuth grant didn't include the right Sheets scope), reconnect the integration — see Disconnecting and reconnecting — which forces a fresh consent screen where you can grant the missing permission.

Disconnecting#

Click Disconnect on the Google Sheets card in Settings → Integrations. This stops the sync immediately and revokes Lemu's access to the spreadsheet — the contact list and its existing contacts stay in Lemu, but they'll no longer receive updates until you reconnect and re-select the sheet.

Shopify

Sync your Shopify customers into Lemu, receive order and storefront events, and let voice agents confirm or cancel orders

https://docs.lemuai.com/integrations/shopify

The Shopify integration connects your store to Lemu. It does four things:

  • Customers are synced into a Lemu contact list called Shopify.
  • Store events (checkouts, orders, refunds, deliveries) arrive as contact events that can start or stop a journey.
  • Products are kept in a Lemu catalog your agents and journeys can look things up in.
  • Order actions let a voice agent confirm, cancel or tag the order a call is about, using the Shopify order action tool.

Lemu only reads your customers. It changes an order only when an agent action you set up asks it to.

Connecting#

There are two ways to connect a store. Both give the same features. A store can be connected to one LemuAI workspace at a time, and a workspace connects one store.

Option 1: install the LemuAI app#

The quickest way, with nothing to copy: customers sync into a contact list called Shopify, orders and checkouts arrive as events, store visits, carts and checkouts are tracked by LemuAI's pixel with nothing to paste, and products sync into your catalog.

  1. Install LemuAI in Shopify

    Install the LemuAI app on your store from Shopify and approve the permissions. Shopify opens LemuAI's page inside your Shopify admin.

  2. Connect to your workspace

    On that page, click Connect to Lemu. A new tab opens LemuAI (sign in if asked, as an Owner or Admin). Press Connect store. The link is valid for 15 minutes; if it expires, click Connect to Lemu again.

If you see "This store is already connected to another Lemu workspace. Disconnect it there first, or from Lemu's page in your Shopify admin.", disconnect the other workspace first.

Option 2: connect with your own app#

Create a small app in your own Shopify account. It takes about five minutes, and the App setup guide in Lemu walks through it with values you can copy. You need this option for Shopify discount code pools.

  1. Create the app in Shopify

    Go to dev.shopify.com, sign in with the Shopify account that owns your store, and choose Apps → Create app. Name it something you will recognise, for example "Lemu". The app and the store must belong to the same Shopify organization.

  2. Fill in the app settings

    Use the App URL shown in Lemu's setup guide. Turn Embed app in Shopify admin off, leave Redirect URLs empty, and pick the latest stable Webhooks API version.

  3. Set the access scopes

    ScopeWhat it's for
    read_customersSync your customers into Lemu contacts
    read_ordersReceive order and checkout events, and look up an order before a call
    read_productsKeep a Products catalog in Lemu
    write_ordersOnly needed if a voice agent or journey should confirm, cancel or tag orders. Leave it out if you only want to read

    Then release the version. Nothing takes effect until you do.

  4. Install the app on your store

    Choose Install app, pick your store and approve the permissions. Then open the app's Settings and copy the Client ID and Client secret. Treat the secret like a password.

  5. Connect in Lemu

    On Settings → Integrations, click Connect on the Shopify card. Enter your store address (mystore.myshopify.com, not your custom domain) and paste the Client ID and Client secret. Keep Send cart and purchase events to Lemu ticked if you want abandoned-cart and order calls. Lemu checks the credentials with Shopify before saving.

Have an older custom app? In your Shopify admin go to Settings → Apps and sales channels → Develop apps, open the app and then API credentials. Copy the Admin API access token (it starts with shpat_) and the API secret key, then choose Older custom app with an Admin API access token? in the connect form.

If you add a permission later, release a new version of the app and approve the update on your store again, or Lemu will report a missing permission.

Customer sync#

New and changed customers are pulled in automatically about every 30 minutes, into a contact list called Shopify. Sync is one way: Lemu reads your customers and never changes them in your store.

  • Customers without a phone number are skipped, because Lemu can't call them.
  • A person who comes in from Shopify and from another source is kept as one contact. See Contacts.
  • Click Sync now on the store's settings page to pull the latest customers right away. Lemu shows how many were created, updated and failed.

Field mapping#

The Field mapping section on the store's settings page sets which Shopify value is saved into which Lemu contact field. The Shopify values you can map are:

first_name, last_name, email, phone, company, city, province, country, orders_count, total_spent, tags, note and state.

If customer names, emails, phone numbers or addresses come back empty, open your app in Shopify's Dev Dashboard and request access to protected customer data for those fields, then sync again.

Store events#

Choose which Shopify events Lemu receives in the Store events section. Each one becomes a contact event you can use as a journey trigger, with a delay, a cancelling event and conditions. For example: call 5 minutes after a Purchase whose payment_method is cod when the order total is over 2000. Lemu verifies every event with your app's secret before accepting it.

Orders arrive as Meta's standard Purchase event and started checkouts as InitiateCheckout, with value, currency and order_id, so revenue and ROI work without extra setup. See Standard and conversion events.

Setup required: store events need the store connected with the LemuAI app (option 1) or its own Shopify app (option 2). They aren't available with an older custom app that uses an Admin API access token.

Event in LemuShown asWhen it's sentOn by default
InitiateCheckoutCheckout started (cart_added)A shopper started checkout and a phone number is known. Sent once per checkout, so you can use it for abandoned-cart follow-upsYes
PurchaseOrder placed (order_placed)A new order, paid or not. payment_method is cod for cash on delivery, otherwise prepaidYes
cod_order_placed(sent with Order placed)The new order is cash on delivery. Sent next to Purchase for now, so journeys that start on it keep workingYes
shopify.order.cancelledOrder cancelledAn order was cancelled. Useful to stop a call that is still waitingYes
shopify.order.paidOrder paidPayment was captured for an orderNo
shopify.order.fulfilledOrder fulfilledEvery item in an order has shippedNo
shopify.refund.createdRefund createdA refund was issued on an orderNo
shopify.fulfillment.createdShipment createdA shipment was created, with its tracking detailsNo
shopify.fulfillment.eventDelivery updateOut for delivery, delivered, delivery failed. Only if your courier app reports tracking eventsNo
shopify.customer.createdCustomer createdA new customer account was createdNo

The options keep their earlier names (cart_added, order_placed), shown next to each checkbox; only the event they send changed. Journeys and segments that use cart_added or order_placed still match InitiateCheckout and Purchase.

Every order event carries the same details, such as order_name, total_price, currency, payment_method, is_cod, financial_status, items and the shipping address, so journey conditions and the Shopify tools work the same on all of them. Purchase also carries Meta's value, contents and content_ids.

cod_order_placed doesn't count as a second order: only the Purchase counts toward revenue. For new journeys, trigger on Purchase with the condition payment_method is cod.

Cash-on-delivery payment methods#

An order paid with a method whose name contains one of the words you list here (comma separated) is a Purchase with payment_method set to cod and is_cod set for conditions. For now it is also sent as cod_order_placed. The default is cash on delivery, cod.

Using events in a journey#

Pick a Shopify event in a journey's Events trigger. Events also appear in the Event Log under the Shopify source.

Storefront events#

Storefront events are what shoppers do on your store before they order: page and product views, collection views, searches, add to cart, remove from cart, cart views, checkout started, payment details entered and purchases. They use Meta's standard names where one exists (PageView, ViewContent, AddToCart, InitiateCheckout, Purchase and so on). See the full list. Shoppers stay anonymous until they log in or enter an email or phone at checkout. Then their earlier visits are added to their contact, and their actions can trigger journeys, for example a browse- or cart-abandonment message.

Setup required: with the LemuAI app (option 1), storefront events are tracked with nothing to paste. With your own app, in your Shopify admin, open Settings → Customer events and click Add custom pixel. Name it Lemu, choose the customer privacy permission your privacy policy needs, replace the code box with the code shown in Lemu's Storefront events section, then click Save and Connect.

The section shows when the last storefront event was received. For tracking on a site that isn't on Shopify, or in your app, use Tracking Sources.

A purchase reported by both the storefront and the store's order webhook counts as one order, because both carry the same order_id.

Products catalog#

If your app has the read_products scope, Lemu creates a Products catalog and keeps it in sync with your store every 30 minutes. Agents can look products up during a call with the catalog lookup tool in the Tools library.

Order actions#

Add the Shopify order action tool from the Tools library to a voice agent to let it confirm, cancel, tag or look up the order the call is about.

  • Confirm adds a tag to the order (cod-confirmed by default).
  • Cancel cancels the order with the customer's reason and adds a tag (cancelled-by-call by default).
  • Every change is also tagged and noted on the order in Shopify.

Setup required: order actions need the write_orders scope on your Shopify app.

Shopify refuses some actions, for example cancelling an order that has already shipped or been paid. The agent is told when that happens.

Health and activity#

The store's settings page also shows:

  • Health: which app permissions are granted, which are missing, and the recent deliveries Shopify has sent, with their status. If nothing has arrived yet, place a test order or start a checkout on your store.
  • Agent activity: every change your voice agents made to this store during calls, including ones Shopify refused.
  • App setup guide: how the app was set up, and what to do when you need to add a permission or reconnect.

Troubleshooting#

MessageWhat to do
Shopify rejected the client ID and secretCheck that the app is installed on this exact store, belongs to the same Shopify organization, and that you pasted the Client secret, not the Client ID, into the secret field
The app is missing a required scopeAdd the scope to the app, release a new version, then approve the update on your store
Events show as offThe settings page shows the exact reason. Its Health section lists what Shopify has sent recently

Lemu Tickets

Connect Lemu Tickets to open tickets from calls, WhatsApp chats and journeys, and see a contact's tickets in LemuAI.

https://docs.lemuai.com/integrations/lemu-tickets

Lemu Tickets is LemuAI's helpdesk. Connected to your workspace, it lets you:

  • open tickets from journeys (Create ticket, Update ticket, Ticket comment steps),
  • let a voice agent open tickets during calls and chats (Tools & files for every step, see Agent Node), and on your website for verified visitors (see Web Widget),
  • find issues after each call or chat and suggest or open a ticket automatically,
  • see a contact's tickets on the contact and in the Inbox conversation, and create one by hand,
  • keep a ticket up to date with the customer's WhatsApp messages and their delivery statuses.

Connecting needs an Owner or Admin.

Connect#

  1. Open Settings → Integrations and find Lemu Tickets.
  2. Press Connect Lemu Tickets and sign in.
  3. Choose the Default project new tickets go to.

Find issues after each conversation#

In a voice agent's settings (and the Inbox assistant's), Find issues after each conversation reads the conversation when it ends:

SettingOptions
When an issue is foundSuggest a ticket for the team to accept, or Open a ticket right away
ProjectWhere tickets go (default project if empty)
Only issues at least this seriousLow, Medium, High or Critical
Only calls ending with (optional)Call outcomes to check, like complaint, refund_request

Create a ticket by hand#

On a contact (or an Inbox conversation), use Create ticket: Title, project, Type, Priority and an optional Note.

In journeys#

See Ticket steps. A journey can also start on ticket events and update the same ticket by leaving the ticket key empty.

For developers#

To create and update tickets from your own systems (an ERP, a store), see the LemuTickets API.

Common problems#

See Integrations troubleshooting: "Lemu Tickets is not connected.", "Only an owner or admin can manage Lemu Tickets.", and step errors.

Tracking Sources

Collect page views, screens and actions from your websites and apps to build contact profiles, trigger journeys and measure ROI

https://docs.lemuai.com/website-pixel/overview

Tracking Sources (Settings → Tracking Sources in the sidebar) collect what people do on your website and in your apps: page views, app screens, and actions such as adding to cart or placing an order. Use them to see what your contacts do, build segments from it, start journeys when someone does something, and give journeys and campaigns their revenue and ROI.

A source is self-serve: create it, add the snippet or SDK with its write key, and events start arriving.

Websites and apps#

Each source is one of two kinds:

KindForHow you install it
WebsiteAny website, including React and Next.js sitesPaste the snippet into your site, or use the JavaScript or React package
AppiOS, Android, Flutter and React Native appsAdd the Lemu SDK for your platform. See SDKs

One app source can serve the same app on every platform, for example your Android and iOS builds. Create a separate source for each website, or for each environment such as staging, so their events stay apart.

Events from every source use the same names. Lemu uses Meta Pixel's standard events (PageView, ViewContent, AddToCart, Purchase and the rest), so the same event means the same thing on your site, in your app and in your Shopify store. See Standard and conversion events.

Add a source#

  1. Choose the kind

    Under Add a tracking source, choose Website or App.

  2. Name it

    Give it a Name, for example "Main store" or "Android and iOS app".

  3. Restrict where events come from

    For a website, list the Allowed sites. For an app, list the Allowed apps. You can also leave this empty now and fill it in on the source later (see below). Then click Create.

  4. Install it

    Open the new source. Under Set up, copy the write key and follow the steps for your platform.

Allowed sites#

For a website source, Allowed sites lists the sites allowed to send events with its write key, one per line. Use an exact site such as https://shop.example.com, or https://*.example.com for every subdomain. Click Save sites after changing the list on a source.

Events from any other site are refused. Leave the list empty only while testing.

Allowed apps#

For an app source, Allowed apps lists the bundle ids or package names allowed to send with its write key, one per line, for example com.brand.app. Click Save apps after changing the list on a source.

Every event must name an allowed app, so a key copied into another app doesn't work by accident. Leave the list empty to accept any app.

Set up#

Each source shows its write key (it starts with lpk_) and setup steps for each platform, with the key already filled in. The write key is the same for every platform of the source. It is public by design and safe to put in your site or app: it can only send events, never read anything.

SourceSetup tabs
WebsiteAny website (the snippet) and React / Next.js
AppAndroid, iOS, Flutter and React Native

Each tab shows how to install, how to set up with your key, and how to send events, including a purchase.

The website snippet#

Paste the snippet into the <head> of every page. It loads the Lemu script and records a page view. It looks like this, with your own write key:

HTML
<script>
  !function(w,d){w.lemu=w.lemu||function(){(w.lemu.q=w.lemu.q||[]).push(arguments)};
  var s=d.createElement("script");s.async=1;s.src="https://app.lemuai.com/api/v1/pixel/sdk.js";
  d.head.appendChild(s)}(window,document);
  lemu("init", "YOUR_WRITE_KEY");
  lemu("page");
</script>

Copy the snippet from your source rather than from this page, so the key and address are right.

For JavaScript, React and Next.js sites and for apps, see the SDKs.

Track actions#

Call track when someone does something you care about. Use Meta's standard event names where one fits:

JavaScript
lemu("track", "AddToCart", { value: 999, currency: "INR", content_ids: ["SKU1"] });
lemu("track", "Lead", { content_name: "Newsletter" });
lemu("track", "Signed Up for Newsletter");

Report orders with purchase. It sends a Purchase event straight away, so it isn't lost if the visitor closes the thank-you page:

JavaScript
lemu("purchase", { value: 1499.5, currency: "INR", order_id: "1042" });

How names are stored:

  • A Meta standard event is stored with Meta's spelling, whatever the case or separators: add_to_cart, Add To Cart and addtocart are all stored as AddToCart.
  • Any other name is a custom event and is stored in lowercase with underscores, so "Signed Up for Newsletter" is stored as signed_up_for_newsletter. Use that spelling in journeys and segments.

Page views are stored as PageView and app screens as screen_viewed.

Identify visitors#

Visitors are anonymous until they identify. Call identify when someone logs in, signs up or fills a form:

JavaScript
lemu("identify", { email: "asha@example.com", phone: "+919876543210", first_name: "Asha" });
lemu("identify", "crm-123", { email: "asha@example.com" }); // your own id first
lemu("reset"); // on logout: start a new anonymous visitor
  • An identify with an email or a phone finds the matching contact, or creates one tagged website.
  • An identify with only your own id links the visitor to an existing contact with that id. It never creates a contact.
  • Anonymous visitors are not contacts and don't count toward your plan's contact limit.
  • Once a visitor identifies, their earlier anonymous visits show up in the contact's activity.

The SDKs work the same way.

Trigger journeys#

Switch on Let identified visitors' tracked actions trigger journeys on the source. Then track events from identified visitors work like events from the API: they appear on the contact and can start any journey whose Events trigger matches the event name. Page views, screens and actions from anonymous visitors never start journeys.

A purchase from an identified visitor counts toward revenue and ROI even when this switch is off. The switch only controls whether actions start journeys.

Website options#

Pass options as the third argument to init:

JavaScript
lemu("init", "YOUR_WRITE_KEY", { trackPageChanges: true, cookieDomain: ".example.com" });
OptionWhat it does
trackPageChangesRecords a page view on every in-app navigation. Use it for single-page apps
cookieDomainShares the visitor id across subdomains, for example .example.com
requireConsentCollects nothing until consent is given (see below)
debugLogs every call, request and response to the browser console
apiHostWhere to send events. Defaults to where the script was loaded from

UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content) and gclid / fbclid on the landing page are kept with the visitor's events, along with the referrer. So is lmclid, which Lemu adds to message links to your own sites: a visitor who arrives with it, and isn't known yet, is linked to the contact the message went to. See Link Click Tracking.

If you need consent before tracking, for example after your cookie banner, start with requireConsent:

JavaScript
lemu("init", "YOUR_WRITE_KEY", { requireConsent: true });
lemu("consent", true); // from your consent banner, once the visitor agrees

Until consent, nothing is sent and nothing is written to cookies or local storage, not even the visitor id. Up to 50 events wait in memory and are sent once consent is given. lemu("consent", false) discards them.

To switch tracking off for a visitor, call lemu("optOut"). It is remembered in the browser. lemu("optIn") turns it back on.

The app SDKs have the same consent and opt-out calls.

Privacy#

  • Personal data stays out of events. Keys such as email, phone, mobile, whatsapp, password, otp, card, card_number, cvv, pan, aadhaar and address are dropped from event and page properties. Send contact details only through identify.
  • No advertising ids. The website script and the app SDKs collect no advertising ids (IDFA, GAID) and no hardware ids. Each browser or app install gets a random visitor id instead.
  • Bots are filtered out on websites.

Limits and duplicates#

  • Website sources: up to 120 batches a minute from one visitor IP address.
  • App sources: up to 120 batches a minute from one device. Apps are not limited by IP address, because mobile networks put many people behind one address.
  • Batch size: each batch holds up to 100 events and 256 KB. The script and SDKs batch events for you.
  • Duplicates: the same event sent twice within 24 hours is recorded once, so retries are safe.
  • Late events: an event dated more than 7 days ago, or in the future, is recorded at the time it arrives.

Manage a source#

ActionWhat it does
Collecting switchTurn it off to pause the source. A paused source shows Paused and its events are refused
New write keyMakes a new key. The current key stops working within a minute, so update your site or app first
DeleteRemoves the source. Its snippet or SDK key stops working

The source card also shows when the last event arrived, or "No events received yet.", so you can confirm the setup works. Events from your sources also appear in the Event Log under the Website source.

Recent events#

Each source has a Recent events debugger. Click Show recent events to see the last 50 events the source received in the past hour, as Lemu stored them, then Refresh to load new ones.

  • Each event shows its name, the time and the platform it came from.
  • Click an event to see its properties (after personal data was removed) and context, such as the app version, device and campaign.
  • Events that count as orders are marked Conversion. If one was missing a value, a currency or an order id, it shows how many issues it had and what Lemu did, for example "no order_id: the same order sent twice counts twice". See Standard and conversion events.

Contact details from identify are never shown here. Turn on debug mode in the script or SDK to see each request from your side as well.

Shopify stores#

If your Shopify store is connected, its source is created for you and shows storefront events from your store instead of a snippet. The pixel code lives on Integrations → Shopify → Storefront events: paste it once into Shopify's Customer Events as a custom pixel.

Shopify's standard events are recorded under these names:

Shopify eventLemu event
page_viewedPageView
product_viewedViewContent
collection_viewedviewed_collection
search_submittedSearch
product_added_to_cartAddToCart
product_removed_from_cartremoved_from_cart
cart_viewedviewed_cart
checkout_startedInitiateCheckout
checkout_address_info_submittedcheckout_address_submitted
checkout_shipping_info_submittedcheckout_shipping_submitted
payment_info_submittedAddPaymentInfo
checkout_completedPurchase

Events with a Meta equivalent use Meta's name and parameters (value, currency, contents, content_ids, and order_id on purchases). The others keep their Lemu names. Older journeys and segments that use the previous names, such as viewed_product or checkout_completed, still match. See Old names that still match.

When a shopper enters their email or phone at checkout, or is logged in, they are identified automatically.

Next steps#

Standard and conversion events

The event names Lemu recognises, the fields an order needs (value, currency and order_id), and how revenue and ROI are calculated

https://docs.lemuai.com/website-pixel/standard-events

Lemu uses Meta Pixel's standard events exactly as Meta defines them: the same names and the same parameters. If your site or app already sends events to Meta, you can send the same calls to Lemu unchanged. The same names work everywhere: the website snippet, the app SDKs, the Send an Event API and Shopify.

Only conversion events have required fields. By default that is Purchase, because journey and campaign revenue and ROI are calculated from it. Every other event is free-form.

Meta's standard events#

EventMeaningParameters Meta lists
PageViewA page loaded. The website snippet sends it for you
ViewContentA product or other key page was viewedcontent_ids, content_category, content_name, content_type, contents, currency, value
SearchA searchsearch_string, content_category, content_ids, contents, currency, value
AddToCartAn item was added to the cartcontent_ids, content_name, content_type, contents, currency, value
AddToWishlistAn item was added to a wishlistcontent_ids, content_name, content_category, contents, currency, value
InitiateCheckoutCheckout startedcontent_ids, content_category, contents, currency, num_items, value
AddPaymentInfoPayment details were enteredcontent_ids, content_category, contents, currency, value
PurchaseAn order was placedvalue and currency (required by Meta), content_ids, content_name, content_type, contents, num_items, plus order_id for Lemu
LeadA lead was submittedcontent_category, content_name, currency, value
CompleteRegistrationA sign-up was completedcontent_name, currency, status, value
SubscribeA paid subscription startedcurrency, predicted_ltv, value
StartTrialA free trial startedcurrency, predicted_ltv, value
ScheduleAn appointment was booked
SubmitApplicationAn application was submitted
ContactSomeone contacted your business
CustomizeProductA product was customised
DonateA donation
FindLocationSomeone searched for a store location

What the parameters mean:

ParameterTypeMeaning
valuenumberAn amount in major units: 1499.5 is ₹1,499.50
currencystringAn ISO 4217 code such as INR
content_idslist of stringsProduct ids or SKUs
contentslist of objectsItems, each with id and quantity, and optionally item_price, title, brand and category
content_typestringproduct or product_group
content_name, content_categorystringA name and a category
num_itemsintegerThe number of items
search_stringstringWhat was searched for
predicted_ltvnumberThe expected lifetime value of a subscriber
statusstringThe status of a registration

You can add your own parameters next to these, for example payment_method: "cod" or coupon. For Meta's full definitions, see Meta's standard events reference.

What value means on each event#

value follows Meta's definition, which is different on each step of the funnel:

  • On AddToCart, it is the value of what was added, not the cart total.
  • On InitiateCheckout, it is the checkout (cart) total. Use this event's value for abandoned-cart conditions on cart value.
  • On Purchase, it is the order total.

If you want a running cart total on AddToCart, send it as your own parameter, for example cart_total.

Matching names#

Matching a Meta name ignores case and separators. purchase, PURCHASE and Purchase are all stored as Purchase, and add_to_cart, Add To Cart and AddToCart are all stored as AddToCart.

A name that doesn't match one of Meta's events is a custom event. Custom events are allowed everywhere and are never renamed, rejected or reshaped. Personal data is still removed from their properties.

App events#

The app SDKs also send these events for you. They have no Meta equivalent and are never conversions:

EventWhen
app_installedThe first launch with the SDK
app_updatedThe first launch after the app version changed
app_openedThe app is launched or comes back to the foreground
app_backgroundedThe app goes to the background
deep_link_openedA link opens the app
screen_viewedA screen is shown, when you track screens

See the event reference.

Meta and Lemu side by side#

JavaScript
// Already on your site for Meta:
fbq("track", "Purchase", { value: 1499.5, currency: "INR", content_ids: ["SKU1"], content_type: "product" });
 
// The same call for Lemu, plus order_id:
lemu("track", "Purchase", { value: 1499.5, currency: "INR", content_ids: ["SKU1"], content_type: "product", order_id: "1042" });

For purchases you can also use lemu("purchase", { value, currency, order_id }), which sends the event straight away.

Why Lemu adds order_id#

Lemu counts one conversion per order. The same order is often reported more than once: by your website, by your app, by Shopify (from both the storefront and the store's order webhook), by your server, or by a reload of the thank-you page. With order_id, all of these count as one order, so revenue isn't counted twice. Without it, every Purchase event counts as its own order.

Meta's Conversions API has the same field, so your order id fits both. Use the same order id your store and backend use.

Conversion events#

A conversion event is an event that counts as an order for revenue and ROI. The list is set under Settings → Sending Limits → Conversion events. The default is Purchase. You can add others, such as Lead, Subscribe, Schedule, or one of your own custom events. See Sending Limits.

Every conversion event needs three fields:

FieldWhat it should be
valueA number, 0 or more, in major units
currencyAn ISO 4217 code such as INR
order_idYour id for the order, as text

When a field is missing#

A conversion event is never rejected for a missing or wrong field. A missing field never drops an order. Instead Lemu does the following, and counts it:

ProblemWhat Lemu does
value is text, such as "1,499.00"Converts it to a number
value is missing, but an older field such as total_price or total has the amountUses that field
value is missing, isn't a number, or is negativeCounts the order with no revenue
currency is missing or isn't an ISO codeUses your workspace currency
order_id is missing, but an older field such as order_number has itUses that field
order_id is missingCounts the order, but the same order sent twice counts twice

You can see these counts in two places:

  • Settings → Sending Limits, under Conversion events: how many conversion events arrived in the last 30 days, and how many had each problem.
  • The Recent events debugger on each tracking source: each conversion event, marked Conversion, with what was missing or fixed.

Events that aren't conversion events go through none of these checks.

How ROI is calculated#

An order is credited to the last journey or campaign message the contact got, if that message came within the channel's attribution window. See Sending Limits.

  • Revenue is the total value of the credited orders, per currency.
  • Message spend is what the messages cost in money: WhatsApp charges from your WhatsApp wallet. Email (paid in credits) and calls (paid in plan minutes) are not priced, so they don't add to spend.
  • ROI is revenue divided by message spend. 3.5x means 3.5 back for each 1 spent. When there was no message spend in the period, ROI shows –.

A few details:

  • Orders that arrived without a value count as orders but add nothing to revenue. Reports say how many there were, so a low ROI caused by missing data isn't mistaken for a poor journey.
  • ROI uses revenue in the same currency as the spend. Revenue in other currencies is shown but left out of the ratio.

ROI is shown on each journey's report, on marketing campaigns and on the Copilot home in the AI Copilot.

Old names that still match#

Before standard events, Lemu's website pixel and Shopify connection used their own names. These old names still match their Meta event everywhere you name an event: journey triggers, exit events, Wait for reaction, segments, the Event Log filter and Conversion events. A journey on Purchase also starts for an event sent as order_placed, and the other way round.

Old nameMatches
order_placed, checkout_completedPurchase
cart_added, checkout_startedInitiateCheckout
added_to_cartAddToCart
viewed_productViewContent
page_viewedPageView
searchedSearch
checkout_payment_submittedAddPaymentInfo

cart_added matches InitiateCheckout, not AddToCart, because it was always sent when a shopper started checkout.

Saved journeys, segments and the Conversion events setting that used these old names were renamed to the Meta names for you. Events you sent before keep the name they were stored with, and still match. Your own custom event names were not changed.

Send purchases from your server too#

A purchase sent from a browser or an app can be lost: the app is closed right after payment, or an ad blocker stops the script. For the most reliable revenue and ROI, also send Purchase from your backend with the Send an Event API:

cURL
curl -X POST https://app.lemuai.com/api/v1/events \
  -H "X-API-Key: lemu_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "event_type": "Purchase",
    "phone": "+919876543210",
    "data": { "value": 1499.5, "currency": "INR", "order_id": "1042" }
  }'

Keep sending it from your site or app as well. With the same order_id, both count as one order. Shopify stores already send orders from the store's order webhook (see Shopify).

SDKs

Send events, purchases and known users to Lemu from your website, JavaScript and React apps, and your Android, iOS, Flutter and React Native apps

https://docs.lemuai.com/sdks/overview

Setup required: the SDK packages (@lemuai/analytics, @lemuai/react, @lemuai/react-native, com.lemuai:analytics, LemuAnalytics and lemu_analytics) are rolling out. If a package isn't available yet, contact LemuAI support for access. The website snippet needs no package.

The Lemu SDKs send what people do on your website and in your apps to Lemu: page and screen views, Meta's standard events such as AddToCart and Purchase, and identify for people you know. Lemu uses these events for contact activity and segments, to start journeys, and to calculate the revenue and ROI of your journeys and campaigns.

Pick your SDK#

PlatformPackageSource kindGuide
Any websiteThe snippet from your sourceWebsiteWebsite and JavaScript
JavaScript with a bundlernpm @lemuai/analyticsWebsiteWebsite and JavaScript
React and Next.jsnpm @lemuai/reactWebsiteReact and Next.js
React Native and Exponpm @lemuai/react-nativeAppReact Native and Expo
Android (Kotlin, Java)Maven Central com.lemuai:analyticsAppAndroid
iOS and tvOS (Swift, Objective-C)Swift Package Manager or CocoaPods LemuAnalyticsAppiOS
Flutter (Android, iOS, web, desktop)pub.dev lemu_analyticsAppFlutter

Get a write key#

Every SDK needs the write key of a tracking source.

  1. Add a source

    In Lemu, open Settings → Tracking Sources. Under Add a tracking source, choose Website for a website or a JavaScript, React or Next.js app. Choose App for an Android, iOS, Flutter or React Native app.

  2. Name it

    Give it a Name, for example "Main store" or "Android and iOS app". You can list the Allowed sites or Allowed apps now or later. Then click Create.

  3. Copy the write key

    On the new source, under Set up, copy the write key. It starts with lpk_.

Under Set up, the source also shows install and setup code for each platform with your key filled in: Any website and React / Next.js on a website source, and Android, iOS, Flutter and React Native on an app source.

The write key is public by design and safe to ship in your site or app: it can only send events, never read anything. One app source can serve the same app on every platform, for example your Android and iOS builds. Create a separate source for each environment, such as staging, so test events stay apart.

What every SDK does#

Every SDK has the same calls. Each guide shows them in that platform's language.

CallWhat it does
track(event, properties)Sends any event. Use Meta's standard name, such as AddToCart, when one fits
purchase(...)Sends a Purchase with value, currency and your order id, straight away
identify(userId, traits)Ties the visitor or install to your own user id and sends their contact details
reset()Call on logout: starts a new anonymous id and clears the user id
page() or screen(name)A page view on a website, a screen view in an app
setConsent(granted)Starts or stops sending when the SDK waits for consent
optOut() and optIn()Turns all tracking off or back on, remembered on the device
flush()Sends queued events now

Every SDK has constants for the standard event names (LemuEvent), so the names can't be misspelled. See the event reference.

Purchases, revenue and ROI#

Send every order with purchase, with three fields:

  • value: the order total, in major units (1499.5 is ₹1,499.50).
  • currency: an ISO 4217 code such as INR.
  • the order id (order_id in JavaScript, orderId on Android, iOS and Flutter): the same id your store and backend use.

Lemu counts one conversion per order id, however many times the order is reported: by your app, your website, Shopify or your server. Without it, every report counts as a separate sale. See Conversion events for what Lemu does when a field is missing, and send purchases from your server too for the most reliable numbers.

Known users#

Call identify when someone signs up or logs in, with your own user id and their contact details (email, phone in international format such as +919876543210, first_name, last_name). The user id is sent with every later event until reset.

  • An identify with an email or a phone finds the matching contact, or creates one.
  • An identify with only your user id links to an existing contact with that id. It never creates one.
  • Before identify, a visitor or install is anonymous and isn't a contact. Once they identify, their earlier anonymous activity shows up on the contact.

Contact details belong in identify only. Lemu removes keys such as email, phone and address from event properties.

To let tracked actions from identified people start journeys, switch on Let identified visitors' tracked actions trigger journeys on the source. See Trigger journeys.

If you need consent before tracking, for example under GDPR or the DPDP Act, start the SDK with requireConsent and call setConsent(true) once the person agrees.

  • Until consent, nothing is sent and nothing is stored on the device, not even the anonymous id. Up to 50 events wait in memory and are sent once consent is given.
  • setConsent(false) discards the waiting and queued events. A granted consent is remembered (in the browser, across visits; in an app, across launches) until setConsent(false).
  • optOut() stops all tracking and clears the queue, and is remembered. optIn() turns tracking back on.

How events are sent#

WebsitesApps
WhenEvery second or every 10 events, and when the page is hiddenEvery 30 seconds or every 20 events, when the app goes to the background, and right after a purchase
If sending failsRetried with increasing waits, up to 5 minutes apart, while the page is openKept on the device, also across restarts, and retried with increasing waits, up to 5 minutes apart, for up to 20 hours
QueueUp to 1,000 events, in memoryUp to 1,000 events, for up to 7 days. When it's full, the oldest event that isn't a purchase is dropped first

Each request carries up to 50 events. The same event received twice within 24 hours is recorded once, so retries never double count. See Limits and duplicates.

The SDKs never throw into your code. A bad argument, such as an empty event name, is ignored and logged in debug mode.

Privacy#

The SDKs collect a random anonymous id for each browser or app install, the events and properties your code sends, the user id and traits you pass to identify, and basic app and device details such as the app version, OS version, device model, locale and time zone. They collect no advertising ids (IDFA, GAID) and no hardware ids.

For app store forms, see Google Play data safety and App Store privacy.

Check that events arrive#

  1. Turn on debug mode

    Start the SDK with debug on. It logs every call, request and response.

  2. Send an event

    Open your site or app and do something you track, or call flush() to send straight away.

  3. Look in Lemu

    In Settings → Tracking Sources, the source shows when the last event arrived. Under Recent events, click Show recent events to see the last 50 events from the past hour as Lemu stored them, then Refresh for new ones. See Recent events.

Events also appear in the Event Log.

Next steps#

Website and JavaScript

Add Lemu to any website with the snippet, or to a JavaScript app with the @lemuai/analytics package: page views, events, purchases, known users and consent

https://docs.lemuai.com/sdks/javascript

The same script powers the website snippet and the @lemuai/analytics npm package. It has no dependencies, is about 5.5 KB gzipped, and is safe to import during server-side rendering.

  • Use the snippet on any website, including Shopify themes, WordPress and site builders.
  • Use the package in a JavaScript or TypeScript app built with a bundler.
  • For React and Next.js, use @lemuai/react, which is built on this package.

You need the write key of a Website source. See Get a write key.

Add the snippet#

Copy the snippet from your source (Settings → Tracking Sources, the Any website tab under Set up) and paste it into the <head> of every page. It loads the script, starts it with your key and records a page view:

HTML
<script>
  !function(w,d){w.lemu=w.lemu||function(){(w.lemu.q=w.lemu.q||[]).push(arguments)};
  var s=d.createElement("script");s.async=1;s.src="https://app.lemuai.com/api/v1/pixel/sdk.js";
  d.head.appendChild(s)}(window,document);
  lemu("init", "YOUR_WRITE_KEY");
  lemu("page");
</script>

With the snippet, call every method by name, for example lemu("track", "AddToCart", { value: 999, currency: "INR" }). Calls made before the script has loaded are kept and run once it arrives.

Or install the package#

Shell
npm install @lemuai/analytics
JavaScript
import { lemu, LemuEvent } from "@lemuai/analytics";
 
lemu.init("YOUR_WRITE_KEY");
lemu.page();
 
lemu.track(LemuEvent.AddToCart, {
  value: 999,
  currency: "INR",
  content_ids: ["SKU1"],
  content_type: "product",
});

Calls made before init are kept and run after it. The package sends to https://app.lemuai.com unless you set apiHost.

Send events#

Use Meta's standard event names for standard actions, such as ViewContent, AddToCart and InitiateCheckout. With the package, use the LemuEvent constants. Any other name works as a custom event.

Snippet

JavaScript
lemu("track", "ViewContent", { content_ids: ["SKU1"], content_type: "product", value: 999, currency: "INR" });
lemu("track", "coupon_applied", { code: "DIWALI10" });

Package

JavaScript
lemu.track(LemuEvent.ViewContent, { content_ids: ["SKU1"], content_type: "product", value: 999, currency: "INR" });
lemu.track("coupon_applied", { code: "DIWALI10" });

value is in major units (999 is ₹999) and currency is an ISO 4217 code such as INR. See the event reference for every name and parameter.

Keep contact details such as email, phone and address out of event properties. Lemu removes them. Send them with identify instead.

Purchases#

Send every order with purchase on your thank-you or order confirmation page:

Snippet

JavaScript
lemu("purchase", {
  value: 1499.5,
  currency: "INR",
  order_id: "1042",
  contents: [{ id: "SKU1", quantity: 1, item_price: 1499.5 }],
});

Package

JavaScript
lemu.purchase({
  value: 1499.5,
  currency: "INR",
  order_id: "1042",
  contents: [{ id: "SKU1", quantity: 1, item_price: 1499.5 }],
});

purchase sends a Purchase event at once, without waiting for the next batch, so it isn't lost if the visitor closes the tab.

value, currency and order_id are required. Lemu counts one conversion per order_id, so the same order reported by this page, a reload of the page, Shopify or your server counts once. Lemu never rejects an event for a missing field, but it flags the conversion. See Conversion events.

Identify visitors#

Call identify when the visitor signs up, logs in or fills a form, with your own user id and their contact details:

JavaScript
lemu.identify("crm-123", {
  email: "asha@example.com",
  phone: "+919876543210",
  first_name: "Asha",
});
 
// without your own id
lemu.identify({ email: "asha@example.com" });
 
// on logout
lemu.reset();

With the snippet, the same calls are lemu("identify", "crm-123", { ... }) and lemu("reset").

The user id is kept and sent with every later event until reset, which also gives the visitor a new anonymous id. See Identify visitors for how Lemu matches contacts.

Page views and single-page apps#

page(name?, properties?) records a page view with the page's URL, path, title and referrer. It's stored as PageView.

In a single-page app, start with trackPageChanges to record a page view on every history.pushState and on back and forward navigation:

JavaScript
lemu.init("YOUR_WRITE_KEY", { trackPageChanges: true });

With the snippet, pass options as the third argument: lemu("init", "YOUR_WRITE_KEY", { trackPageChanges: true }).

UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content) and gclid / fbclid on the landing page are kept with the visitor's events. Personal data in page URLs, such as ?email=, is removed.

If you need consent before tracking, for example after your cookie banner, start with requireConsent:

JavaScript
lemu.init("YOUR_WRITE_KEY", { requireConsent: true });
 
// later, from your consent banner
lemu.setConsent(true); // snippet: lemu("consent", true)
  • Until consent, nothing is sent and nothing is written to cookies or local storage, not even the visitor id. Up to 50 events wait in memory and are sent once consent is given.
  • setConsent(false) discards them. A granted consent is remembered in local storage (_lemu_consent), so returning visitors aren't asked again. setConsent(false) forgets it.
  • optOut() stops all tracking and clears the queue. It is remembered in a cookie and in local storage. optIn() undoes it.

Debug mode#

JavaScript
lemu.init("YOUR_WRITE_KEY", { debug: true });

Every call, request and response is logged to the browser console with a [lemu] prefix. Bad arguments, such as an empty event name or properties that can't be turned into JSON, are logged and ignored. The script never throws into your code.

If the console shows a refused request, check that your site is listed under Allowed sites on the source.

Options#

OptionDefaultWhat it does
apiHosthttps://app.lemuai.comWhere to send events. The snippet sends to the host it was loaded from
debugfalseLogs calls, requests and responses
requireConsentfalseHolds events until setConsent(true)
trackPageChangesfalseRecords a page view on single-page-app navigation
cookieDomainthe current hostShares the visitor id across subdomains, for example .example.com
flushAt10Sends when this many events are queued
flushInterval1000Sends queued events after this many milliseconds
maxQueueSize1000The most events kept while offline

API#

MethodWhat it does
init(writeKey, options?)Starts tracking. Calls made before init are kept and run after it
page(name?, properties?)Records a page view
track(event, properties?)Sends any event
purchase({ value, currency, order_id, ... })Sends a Purchase at once
identify(userId?, traits?)Sets the user id and sends contact details
reset()New anonymous id, user id cleared
flush()Sends queued events now. Returns a promise
setConsent(granted)Starts or stops sending under requireConsent
optOut(), optIn()Stops or resumes all tracking, remembered in the browser
anonymousId()The visitor id, or null before consent or after opt-out
createLemu()A separate client, for sending to a second source from the same page (package only)

How events are sent#

Events are batched and sent every second or every 10 events, and with sendBeacon when the page is hidden, so events from the last page aren't lost. Requests are sent as plain text, so the browser makes no extra CORS request first. Failed requests are retried with increasing waits.

The visitor id lives in the _lemu_aid first-party cookie and in local storage, so returning visitors keep the same id.

React and Next.js

Add Lemu to a React or Next.js app with @lemuai/react: a provider, the useLemu hook and page tracking for React Router and the Next.js routers

https://docs.lemuai.com/sdks/react

@lemuai/react adds Lemu to React and Next.js apps: a provider, a hook to send events from any component, and page tracking for React Router and both Next.js routers. It's built on @lemuai/analytics and is safe with server-side rendering: nothing touches window during render, and calls made on the server do nothing.

You need the write key of a Website source. See Get a write key. The source's React / Next.js tab under Set up shows the code below with your key filled in.

Install#

Shell
npm install @lemuai/react

Set up#

Wrap your app once with LemuProvider:

TSX
import { LemuProvider } from "@lemuai/react";
 
export function App() {
  return (
    <LemuProvider writeKey="YOUR_WRITE_KEY">
      <Routes />
    </LemuProvider>
  );
}

The provider starts tracking after it mounts in the browser. It reads options once, when it mounts. For the options, see Website and JavaScript.

Page views#

usePageTracking(pathname) records a page view whenever the path changes. Use it once, inside the provider.

Next.js app router

Put the provider in a client component:

TSX
// app/lemu.tsx
"use client";
import { usePathname } from "next/navigation";
import { LemuProvider, usePageTracking } from "@lemuai/react";
 
function PageTracker() {
  usePageTracking(usePathname());
  return null;
}
 
export function Lemu({ children }: { children: React.ReactNode }) {
  return (
    <LemuProvider writeKey={process.env.NEXT_PUBLIC_LEMU_WRITE_KEY!}>
      <PageTracker />
      {children}
    </LemuProvider>
  );
}

Then use it in your root layout:

TSX
// app/layout.tsx
import { Lemu } from "./lemu";
 
export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <Lemu>{children}</Lemu>
      </body>
    </html>
  );
}

Set NEXT_PUBLIC_LEMU_WRITE_KEY to your write key. It's public, so the NEXT_PUBLIC_ prefix is fine.

Next.js pages router

In pages/_app.tsx:

TSX
import type { AppProps } from "next/app";
import { useRouter } from "next/router";
import { LemuProvider, usePageTracking } from "@lemuai/react";
 
function PageTracker() {
  usePageTracking(useRouter().asPath);
  return null;
}
 
export default function MyApp({ Component, pageProps }: AppProps) {
  return (
    <LemuProvider writeKey={process.env.NEXT_PUBLIC_LEMU_WRITE_KEY!}>
      <PageTracker />
      <Component {...pageProps} />
    </LemuProvider>
  );
}

React Router

TSX
import { useLocation } from "react-router-dom";
import { usePageTracking } from "@lemuai/react";
 
function PageTracker() {
  usePageTracking(useLocation().pathname);
  return null;
}

Render <PageTracker /> inside both your router and LemuProvider.

Send events#

Get the client with useLemu() in any component:

TSX
import { LemuEvent, useLemu } from "@lemuai/react";
 
function AddToCartButton({ product }) {
  const lemu = useLemu();
  return (
    <button
      onClick={() =>
        lemu.track(LemuEvent.AddToCart, {
          value: product.price,
          currency: "INR",
          content_ids: [product.sku],
        })
      }
    >
      Add to cart
    </button>
  );
}

LemuEvent has a constant for each of Meta's standard events. Any other name works as a custom event. See the event reference.

useLemu() also works outside a provider. It returns the shared client, and calls made before the provider starts it are kept and sent once it does.

Purchases#

TSX
const lemu = useLemu();
lemu.purchase({
  value: 1499.5,
  currency: "INR",
  order_id: order.id,
  contents: [{ id: "SKU1", quantity: 1, item_price: 1499.5 }],
});

purchase sends a Purchase event at once. Always pass your real order id: Lemu counts one conversion per order_id, however many sources report the order (this page, a webhook, a reload of the thank-you page). See Conversion events.

Identify users#

TSX
const lemu = useLemu();
 
// after sign-up or login
lemu.identify(user.id, { email: user.email, phone: user.phone, first_name: user.firstName });
 
// on logout
lemu.reset();

The user id is kept and sent with every later event until reset. Send phone numbers in international format, for example +919876543210. Contact details belong in identify only.

To wait for consent, pass requireConsent to the provider and call setConsent(true) from your consent banner:

TSX
<LemuProvider writeKey="YOUR_WRITE_KEY" options={{ requireConsent: true }}>
  <App />
</LemuProvider>
 
// in your consent banner
const lemu = useLemu();
lemu.setConsent(true);

Nothing is sent or stored until then. lemu.optOut() and lemu.optIn() turn tracking off and on, remembered in the browser. See Consent and opt-out for the details.

Debug mode#

TSX
<LemuProvider writeKey="YOUR_WRITE_KEY" options={{ debug: true }}>

Every call, request and response is logged to the browser console with a [lemu] prefix.

API#

ExportWhat it is
LemuProviderProps: writeKey, options (see options), and an optional client from createLemu(). Starts tracking after mount
useLemu()The client: track, page, purchase, identify, reset, flush, setConsent, optOut, optIn, anonymousId
usePageTracking(pathname, properties?)Records a page view on every path change
LemuEventStandard event names. See the event reference
createLemu()A separate client, for sending to a second source

React Native and Expo

Add Lemu to a React Native or Expo app with @lemuai/react-native: events, purchases, known users, screens, app installs and opens, and deep links

https://docs.lemuai.com/sdks/react-native

@lemuai/react-native sends events, purchases, known users and screens from your React Native or Expo app, and records installs, app opens and the deep links that bring people in. It's pure JavaScript with no native module of its own, so it works in Expo Go and in bare React Native apps.

You need the write key of an App source. See Get a write key.

Install#

React Native

Shell
npm install @lemuai/react-native @react-native-async-storage/async-storage
# optional, for the app version, bundle id and device model:
npm install react-native-device-info

Expo

Shell
npx expo install @lemuai/react-native @react-native-async-storage/async-storage

react-native-device-info needs a development build in Expo. Without it, pass the app details yourself (see below).

Set up#

Call init once, as early as possible, for example in index.js or your root component:

TSX
import { lemu } from "@lemuai/react-native";
 
lemu.init("lpk_...");

Calls made before storage has loaded are kept and sent in order.

Without react-native-device-info, for example in Expo Go, pass the app version, build and id yourself:

TSX
import * as Application from "expo-application";
import { lemu } from "@lemuai/react-native";
 
lemu.init("lpk_...", {
  appVersion: Application.nativeApplicationVersion ?? undefined,
  appBuild: Application.nativeBuildVersion ?? undefined,
  appNamespace: "com.brand.app",
});

If the source lists Allowed apps, Lemu refuses events that don't carry an allowed app id. The SDK reads the id from react-native-device-info. Without that package, set appNamespace to your bundle id or package name, or leave Allowed apps empty.

Send events#

TSX
import { lemu, LemuEvent } from "@lemuai/react-native";
 
lemu.track(LemuEvent.AddToCart, { value: 999, currency: "INR", content_ids: ["SKU1"] });
lemu.track("coupon_applied", { code: "DIWALI10" });

LemuEvent has a constant for each of Meta's standard events and for the app events. Any other name works as a custom event. See the event reference.

Keep contact details out of event properties. Lemu removes them. Send them with identify instead.

Purchases#

TSX
lemu.purchase({
  value: 1499.5,
  currency: "INR",
  order_id: "1042",
  contents: [{ id: "SKU1", quantity: 1, item_price: 1499.5 }],
});

purchase sends a Purchase event and sends the queue right away. Always pass the order id your backend uses: the same order is often reported by the app, your backend and your payment provider, and Lemu counts one conversion per order_id. See Conversion events.

Identify users#

TSX
// after sign-up or login
lemu.identify("crm-123", { email: "asha@example.com", phone: "+919876543210", first_name: "Asha" });
 
// on logout
lemu.reset();

The user id is stored and sent with every later event, across restarts, until reset. reset also starts a new anonymous id.

Screens#

Screens aren't tracked automatically. Send one yourself:

TSX
lemu.screen("Checkout", { step: 2 });

Or record every route change in React Navigation:

TSX
import { NavigationContainer, useNavigationContainerRef } from "@react-navigation/native";
import { useLemuNavigationTracking } from "@lemuai/react-native";
 
export function App() {
  const navigationRef = useNavigationContainerRef();
  useLemuNavigationTracking(navigationRef);
  return <NavigationContainer ref={navigationRef}>{/* screens */}</NavigationContainer>;
}

Outside a component, trackNavigationState(navigationRef) does the same and returns a function that stops it. Only the route name is sent, not route params, because params can hold personal data. Screens are stored as screen_viewed.

The SDK sends these for you:

EventWhenProperties
app_installedFirst launchversion, build
app_updatedFirst launch after the version or build changedversion, build, previous_version, previous_build
app_openedEvery launch and every return from the backgroundfrom_background, and url when a link opened the app
app_backgroundedThe app goes to the background. Queued events are sent then too
deep_link_openedA link opens the app or arrives while it runsurl, referrer

UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content) and gclid / fbclid in a deep link are kept with that event and every later event in the session, so Lemu can credit what happens next, such as a purchase, to the campaign.

Turn these off with trackLifecycle: false and trackDeepLinks: false.

TSX
lemu.init("lpk_...", { requireConsent: true });
 
// once the user agrees
lemu.setConsent(true);
  • Until consent, nothing is sent and nothing is written to storage, not even the anonymous id. Up to 50 events wait in memory and are sent on consent.
  • setConsent(false) discards them. A granted consent is remembered across launches, and setConsent(false) forgets it.
  • lemu.optOut() stops all tracking and is remembered across launches. lemu.optIn() resumes.

Debug mode#

TSX
lemu.init("lpk_...", { debug: true });

Every call, request and response is logged with a [lemu] prefix. Bad arguments are logged and ignored; the SDK never throws into your app.

Options#

OptionDefaultWhat it does
apiHosthttps://app.lemuai.comWhere to send events
debugfalseLogs calls, requests and responses
requireConsentfalseHolds events until setConsent(true)
trackLifecycletrueapp_installed, app_updated, app_opened, app_backgrounded
trackDeepLinkstruedeep_link_opened and campaign parameters from links
flushAt20Sends when this many events are queued
flushInterval30000Sends queued events after this many milliseconds
maxQueueSize1000The most events kept on the device
appVersion, appBuildfrom react-native-device-infoSet them when that package isn't installed
appName, appNamespacefrom react-native-device-infoThe app's name, and its bundle id or package name
storageAsyncStorageAny { get, set, remove } storage, for example MMKV
deviceInfofound automaticallyPass react-native-device-info yourself

API#

init(writeKey, options?), track(event, properties?), screen(name, properties?), purchase({ value, currency, order_id, ... }), identify(userId?, traits?), reset(), flush(), setConsent(granted), optOut(), optIn() and anonymousId(), plus useLemuNavigationTracking, trackNavigationState, createLemu() for a separate client, and LemuEvent.

Offline and delivery#

Events are kept in AsyncStorage (or the storage you pass) and survive restarts. They are sent every 30 seconds, every 20 events, when the app goes to the background, and right after a purchase. Failed requests are retried with increasing waits, up to 5 minutes apart. At most 1,000 events are kept; when the queue is full, the oldest event that isn't a purchase is dropped. Events older than 7 days are dropped.

Requests carry a User-Agent such as lemu-react-native/1.0.0 (iOS 17.4; iPhone15,2). No advertising ids or hardware ids are collected. For app store forms, the SDK collects the same data as the native SDKs, so the answers under Google Play data safety and App Privacy answers in App Store Connect apply.

Android

Add Lemu to an Android app in Kotlin or Java: events, purchases, known users, screens, installs, deep links and the Play install referrer

https://docs.lemuai.com/sdks/android

The Android SDK sends events, purchases, known users and screens from your app, and records installs, app opens and the links and Play Store campaigns that bring people in.

  • Kotlin, and works from Java. Android 5.0 (API 21) or later.
  • One small AndroidX dependency (androidx.lifecycle:lifecycle-process). No OkHttp, Retrofit or Gson, so nothing clashes with your app's versions.
  • Events are kept on disk, batched, and retried when the network is back.
  • No advertising id and no hardware ids.

You need the write key of an App source. See Get a write key.

Install#

The SDK is on Maven Central. In your app module's build.gradle.kts:

kotlin
dependencies {
    implementation("com.lemuai:analytics:1.0.0")
 
    // Optional: attribute installs to the Play Store campaign that brought the user.
    implementation("com.android.installreferrer:installreferrer:2.2")
}

Make sure mavenCentral() is in your repositories. It is by default in new projects.

Set up#

Call setup once, in Application.onCreate():

Kotlin

kotlin
class MyApp : Application() {
    override fun onCreate() {
        super.onCreate()
        Lemu.setup(this, "lpk_...", LemuOptions(debug = BuildConfig.DEBUG))
    }
}

Java

Java
Lemu.setup(this, "lpk_...", LemuOptions.builder().debug(BuildConfig.DEBUG).build());

If your app runs code in more than one process, call setup in the main process only.

If the source lists Allowed apps, add your app's package name (its applicationId). Builds with an applicationIdSuffix, such as com.brand.app.debug, send that id, so add it too or use a separate source for testing.

Options#

OptionDefaultWhat it does
apiHosthttps://app.lemuai.comWhere to send events. Change it only if your source's setup steps show another host
debugfalseLogs every call, request and response to Logcat with the tag Lemu
requireConsentfalseSends and stores nothing until setConsent(true)
trackLifecycleEventstrueapp_installed, app_updated, app_opened, app_backgrounded
trackDeepLinkstruedeep_link_opened for links that open an activity, and their campaign parameters
collectInstallReferrertrueReads the Play install referrer on first launch, when the library is in your app
trackActivityScreensfalseSends a screen each time an activity starts
flushAt20Sends when this many events are queued
flushIntervalSeconds30Sends at least this often while events are queued
maxQueueSize1000The most events kept on the device while offline

Send events#

kotlin
Lemu.track(LemuEvent.ADD_TO_CART, mapOf(
    "value" to 999,
    "currency" to "INR",
    "content_ids" to listOf("SKU1"),
    "content_type" to "product",
))
 
Lemu.track("coupon_applied", mapOf("code" to "DIWALI10"))

Any event name works. For Meta's standard events, use the LemuEvent constants (VIEW_CONTENT, ADD_TO_CART, INITIATE_CHECKOUT, PURCHASE and the rest) so the names match exactly. See the event reference.

Keep contact details such as email, phone and address out of event properties. Lemu removes them. Send them with identify instead.

Purchases#

kotlin
Lemu.purchase(
    value = 1499.5,
    currency = "INR",
    orderId = "1042",
    contents = listOf(LemuContent(id = "SKU1", quantity = 1, itemPrice = 1499.5)),
    contentIds = listOf("SKU1"),
    numItems = 1,
    properties = mapOf("payment_method" to "cod"),
)

purchase sends a Purchase event straight away instead of waiting for the next batch. value, currency and orderId are what Lemu calculates journey and campaign revenue and ROI from.

Always pass orderId. The same order is often reported by the app, your website, Shopify or your server. Lemu counts one conversion per order id, so use the same id your backend and store use. Without it, every report counts as a separate sale. The app can be closed right after payment, so for the most reliable numbers send purchases from your server too. With the same order id, both count once.

With debug on, track("Purchase", ...) without value, currency or order_id logs a warning. The event is still sent.

Identify users#

When a user signs in or gives you their details:

kotlin
Lemu.identify("user-829", mapOf(
    "email" to "asha@example.com",
    "phone" to "+919812345678",
    "first_name" to "Asha",
    "last_name" to "Rao",
))

The user id is sent with every later event until reset(). Send phone numbers in international format. On logout:

kotlin
Lemu.reset() // new anonymous id, user id cleared

Lemu.anonymousId returns the random id the SDK created for this install.

Screens#

kotlin
Lemu.screen("Checkout", mapOf("step" to 2))

Screens are stored as screen_viewed and aren't tracked automatically. To send one each time an activity starts, set trackActivityScreens = true, or register the tracker yourself to choose the names:

kotlin
LemuActivityScreenTracker.register(this) { activity -> activity.title?.toString() }

Apps built on one activity with Compose or Fragments should call Lemu.screen() from their navigation.

Links that start an activity (ACTION_VIEW with a URL) are recorded as deep_link_opened with the url and referrer. UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content) and gclid / fbclid in the link become the campaign for this and later events in the session, so a purchase made after tapping a campaign link is credited to that campaign.

Links delivered to an activity that is already running arrive in onNewIntent, which the SDK can't see. Record those yourself:

kotlin
override fun onNewIntent(intent: Intent) {
    super.onNewIntent(intent)
    setIntent(intent)
    Lemu.trackDeepLink(intent)
}

Install referrer#

With com.android.installreferrer:installreferrer in your app (see Install), the SDK reads the Play install referrer on the first launch. The campaign the user arrived with, for example from a Google Ads or Meta app campaign link to the Play Store, is added to app_installed and the rest of that first session. app_installed waits up to 10 seconds for the referrer. Without the library this is skipped. Set collectInstallReferrer = false to turn it off.

App lifecycle events#

Sent for you unless you set trackLifecycleEvents = false:

EventWhenProperties
app_installedFirst launch with the SDKversion, build
app_updatedFirst launch after the version changesversion, build, previous_version, previous_build
app_openedEvery time the app comes to the foregroundfrom_background, and url when a link opened the app
app_backgroundedThe app goes to the background. Queued events are sent then

If you add the SDK to an app people already have, the first launch after they update counts as app_installed.

If you need consent before tracking, for example under GDPR or the DPDP Act:

kotlin
Lemu.setup(this, "lpk_...", LemuOptions(requireConsent = true))
 
// later, from your consent screen
Lemu.setConsent(true)   // sends what was held and starts tracking
Lemu.setConsent(false)  // discards held and queued events

Until consent, nothing is sent and nothing is written to the device, not even the anonymous id. Up to 50 events wait in memory and are sent once consent is given. A granted consent is remembered across launches; call setConsent(false) if the user withdraws it.

To let users switch tracking off entirely:

kotlin
Lemu.optOut() // stops everything, clears queued events, remembered across launches
Lemu.optIn()  // turns it back on

Debug logging#

kotlin
LemuOptions(debug = true)

Every call, request body and server response is logged to Logcat with the tag Lemu. Use it during development only, because event properties and traits appear in the log. A refused request (an unknown write key, or an app that isn't in Allowed apps) is logged too.

Delivery#

  • Events are sent in batches of up to 50: every 30 seconds, when 20 are queued, when the app goes to the background, and right after a purchase. Lemu.flush() sends now.
  • Events are stored in the app's no-backup files directory, so they survive restarts and aren't copied to other devices by Auto Backup. At most 1,000 are kept; when full, the oldest are dropped first, purchases last. Events older than 7 days are dropped.
  • Failed requests are retried with increasing waits, up to 5 minutes apart, for up to 20 hours. Refused batches are dropped and logged in debug mode.
  • The SDK never throws into your app. A bad argument is logged in debug mode and ignored.

The SDK ships its own ProGuard and R8 rules, so you don't need to add any.

Google Play data safety#

Your answers depend on how you use the SDK. With the SDK alone, this is what it collects and sends to Lemu:

Play data typeCollectedWhenPurpose
Device or other IDsYesAlways: a random anonymous id created by the SDK for this install (not an advertising id or a hardware id)Analytics
App activity: App interactionsYesAlways: lifecycle events, screens and the events you trackAnalytics
App activity: Other actionsIf you track themSearches, sign-ups and other custom eventsAnalytics
Financial info: Purchase historyIf you send purchasesOrder value, currency, order id, itemsAnalytics
Personal info: User IDsIf you call identify with a user idYour own user idAnalytics, App functionality
Personal info: Name, Email address, Phone numberIf you pass them to identifyThe traits you sendAnalytics, and Advertising or marketing if you message users from Lemu

Also sent with every event, and not a Play data type: app name, version, build and package name; device manufacturer, model and type; Android version; screen size and density; locale and time zone; the link that opened the app and its campaign parameters.

Not collected: advertising id (GAID), Android ID, IMEI, serial number, MAC address, location, contacts, photos, files and crash logs.

  • Is data encrypted in transit? Yes, it is sent over HTTPS.
  • Is data shared? Lemu processes it as your service provider. Under Play's definitions, that isn't sharing. If you forward conversions to an ad platform, that is.
  • Is collection optional? Yes, if you use requireConsent or offer optOut().

Java#

Every method is static on Lemu and has Java overloads:

Java
Map<String, Object> props = new HashMap<>();
props.put("value", 999);
props.put("currency", "INR");
Lemu.track(LemuEvent.ADD_TO_CART, props);
Lemu.purchase(1499.5, "INR", "1042");

iOS

Add Lemu to an iOS or tvOS app in Swift or Objective-C: events, purchases, known users, screens, app opens, deep links and App Store privacy answers

https://docs.lemuai.com/sdks/ios

The iOS SDK (LemuAnalytics) sends events, purchases, known users and screens from your iOS or tvOS app, and records app opens and the deep links that bring people in.

  • iOS 13 or later, tvOS 13 or later. Swift and Objective-C.
  • No third-party dependencies.
  • No advertising identifier (IDFA), no IDFV, and no AdSupport or App Tracking Transparency.
  • Events are kept on disk and sent in batches, so nothing is lost offline.

You need the write key of an App source. See Get a write key.

Install#

Swift Package Manager

In Xcode, choose File > Add Package Dependencies... and enter:

Text
https://github.com/LemuAI/lemu-sdks

Choose Up to Next Major Version from 1.0.0 and add the LemuAnalytics library to your app target.

In a Package.swift:

swift
dependencies: [
    .package(url: "https://github.com/LemuAI/lemu-sdks", from: "1.0.0"),
],
targets: [
    .target(name: "MyApp", dependencies: [
        .product(name: "LemuAnalytics", package: "lemu-sdks"),
    ]),
]

CocoaPods

Ruby
pod 'LemuAnalytics', '~> 1.0'

Then run pod install.

Set up#

Call setup once, as early as possible, so the first app open is recorded.

SwiftUI

swift
import LemuAnalytics
import SwiftUI
 
@main
struct BrandApp: App {
    init() {
        Lemu.setup(writeKey: "lpk_...")
    }
 
    var body: some Scene {
        WindowGroup {
            ContentView()
                .onOpenURL { url in Lemu.trackDeepLink(url) }
        }
    }
}

UIKit

swift
import LemuAnalytics
 
func application(_ application: UIApplication,
                 didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    Lemu.setup(writeKey: "lpk_...")
    return true
}

Objective-C

objc
@import LemuAnalytics;
 
LemuOptions *options = [LemuOptions new];
options.debug = YES;
[Lemu setupWithWriteKey:@"lpk_..." options:options];

Every Lemu method can be called from any thread, and none of them throws. A bad argument, such as an empty event name or a value JSON can't hold, is skipped and logged when debug is on.

If the source lists Allowed apps, add your app's bundle identifier, for example com.brand.app. Events from any other bundle id are refused.

Options#

Pass options with Lemu.setup(writeKey: "lpk_...", options: LemuOptions(debug: true)). All are optional:

OptionDefaultWhat it does
apiHosthttps://app.lemuai.comWhere to send events. Change it only if your source's setup steps show another host
debugfalseLogs every call, request and response
requireConsentfalseSends and stores nothing until Lemu.setConsent(true)
flushAt20Sends once this many events are queued
flushInterval30Sends queued events every this many seconds
maxQueueSize1000The most events kept on the device while offline
trackLifecycletrueapp_installed, app_updated, app_opened, app_backgrounded
trackDeepLinkstruedeep_link_opened from Lemu.trackDeepLink(_:)

Send events#

swift
Lemu.track(LemuEvent.addToCart, properties: [
    "value": 999,
    "currency": "INR",
    "content_ids": ["SKU1"],
])
 
Lemu.track("wishlist_shared", properties: ["list_size": 4])

Any event name works. For Meta's standard events, use the LemuEvent constants (viewContent, addToCart, initiateCheckout, purchase and the rest) so the names match exactly. If you already send these events to Meta, the same properties work here. See the event reference.

Keep contact details out of event properties. Lemu removes keys such as email, phone, address and password; send contact details with identify instead.

Purchases#

swift
Lemu.purchase(
    value: 1499.5,
    currency: "INR",
    orderId: "1042",
    contents: [LemuContent(id: "SKU1", quantity: 1, itemPrice: 1499.5, title: "Kurta")],
    properties: ["payment_method": "cod", "coupon": "DIWALI10"]
)

purchase sends a Purchase event straight away instead of waiting for the next batch. content_ids and num_items are filled in from contents when you don't pass them.

Always pass orderId. Lemu counts one conversion per order. The same order is often reported more than once: by the app, your website, a Shopify webhook, or the app again after a retry. With the order id these count as one order, so journey and campaign revenue isn't counted twice. value and currency are needed to show revenue at all. See Conversion events.

Identify users#

When someone signs in or gives you their contact details:

swift
Lemu.identify(userId: "cust_8812", traits: [
    "email": "asha@example.com",
    "phone": "+919876543210",
    "first_name": "Asha",
    "last_name": "Rao",
])

userId is your own id for the customer. It's stored and sent with every later event until reset(). Send phone numbers in international format. On logout:

swift
Lemu.reset() // new anonymous id, user id cleared

Lemu.anonymousId returns the id Lemu uses for this install, for example to pass to your backend so server-side events join up with the app's.

Screens#

SwiftUI

swift
CheckoutView()
    .lemuScreen("Checkout")
 
ProductView(product: product)
    .lemuScreen("Product", properties: ["product_id": product.id])

UIKit

Turn on automatic screen tracking (it's off by default):

swift
Lemu.enableAutomaticScreenTracking()

Each of your view controllers sends a screen when it appears, named after its class without the ViewController suffix (CheckoutViewController becomes Checkout). Navigation, tab bar, split and page controllers, Apple's own controllers, SwiftUI hosting controllers and child controllers embedded in your own are skipped. To rename a screen, or skip one:

swift
extension CheckoutViewController: LemuScreenNameProviding {
    var lemuScreenName: String? { "Checkout" } // return nil to send nothing
}

Anywhere

swift
Lemu.screen("Checkout", properties: ["step": 2])

Screens are stored as screen_viewed.

Pass every URL that opens the app to trackDeepLink. It sends deep_link_opened with the url, and keeps utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid and fbclid with this and every later event in the session, so a purchase made after tapping a campaign link is credited to that campaign.

swift
// SwiftUI
WindowGroup { ContentView().onOpenURL { Lemu.trackDeepLink($0) } }
 
// UIKit, AppDelegate
func application(_ app: UIApplication, open url: URL,
                 options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
    Lemu.trackDeepLink(url, referrer: options[.sourceApplication] as? String)
    return true
}
 
// UIKit, SceneDelegate
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
    URLContexts.forEach { Lemu.trackDeepLink($0.url, referrer: $0.options.sourceApplication) }
}
 
// Universal links
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
    if let url = userActivity.webpageURL { Lemu.trackDeepLink(url) }
}

For a cold launch from a link with scenes, also pass the URLs in scene(_:willConnectTo:options:) (connectionOptions.urlContexts and connectionOptions.userActivities). The next app_opened carries the link as url.

App lifecycle events#

Sent for you unless you set trackLifecycle: false:

EventWhenProperties
app_installedFirst launch with the SDKversion, build
app_updatedFirst launch after the version or build changedversion, build, previous_version, previous_build
app_openedEvery time the app comes to the foregroundfrom_background, and url when a link opened the app
app_backgroundedThe app goes to the background

If your app had users before you added the SDK, each of them sends app_installed once after updating, because the SDK has no record of an earlier version.

If you must ask before collecting data, start with requireConsent:

swift
Lemu.setup(writeKey: "lpk_...", options: LemuOptions(requireConsent: true))
 
// later, from your consent prompt
Lemu.setConsent(true)   // sends events held since launch, and remembers the answer
Lemu.setConsent(false)  // discards held and queued events

Until consent, nothing is sent and nothing is written to the device, not even the anonymous id. Up to 50 events are held in memory and sent if consent is given. A granted consent is remembered across launches; call setConsent(false) to withdraw it.

To let people turn tracking off in your settings screen:

swift
Lemu.optOut()  // stops everything, clears the queue, remembered across launches
Lemu.optIn()   // turns it back on
Lemu.isOptedOut

Debug logging#

swift
Lemu.setup(writeKey: "lpk_...", options: LemuOptions(debug: true))

Every call, request body and response is logged with os_log under the subsystem com.lemuai.analytics. Watch it in the Xcode console, or in Console.app filtered by that subsystem. Turn debug off in release builds.

Delivery#

  • Events are kept in Application Support/Lemu, excluded from iCloud and device backups, and survive restarts.
  • They are sent every 30 seconds, when 20 are queued, when the app goes to the background, and right after a purchase. Lemu.flush() sends now.
  • Each request carries up to 50 events. Failed requests are retried with increasing waits, up to 5 minutes apart, for up to 20 hours. Events older than 7 days are dropped.
  • The queue holds at most 1,000 events. When it's full, the oldest event that isn't a purchase is dropped first.

App Store privacy#

Privacy manifest#

The SDK ships its own privacy manifest (PrivacyInfo.xcprivacy, in the package and in the CocoaPods resource bundle LemuAnalyticsPrivacy). Xcode adds it to your app's privacy report. It declares:

  • NSPrivacyTracking: false, with no tracking domains.
  • Required reason API: UserDefaults, reason CA92.1. The SDK keeps its anonymous id, user id, opt-out, consent and the last app version in its own UserDefaults suite.
  • Collected data, all linked to the user and none used for tracking:
Data typeWhy it's collectedPurposes
User IDThe anonymous install id, and your userId from identifyAnalytics, Developer's Advertising or Marketing
Email address, phone number, nameOnly if you pass them to identifyAnalytics, Developer's Advertising or Marketing
Product interactionEvents, screens, app opensAnalytics, Developer's Advertising or Marketing
Purchase historypurchase() and other commerce eventsAnalytics, Developer's Advertising or Marketing
Other usage dataLifecycle and custom eventsAnalytics

App Privacy answers in App Store Connect#

Your app's privacy label covers all the data your app collects, including through Lemu. For the data that goes to Lemu:

  • Data used to track you: No. Lemu doesn't use advertising identifiers, doesn't share data with data brokers, and doesn't link your app's data with other companies' data for advertising. See the note below if you forward data to ad networks.
  • Data linked to you, for each type you actually send:
    • Contact Info > Email Address, Phone Number, Name: if you call identify with them.
    • Identifiers > User ID: yes. The SDK always sends an anonymous id, plus your own user id.
    • Purchases > Purchase History: if you call purchase() or send commerce events.
    • Usage Data > Product Interaction: yes (app opens, screens, events).
    • Usage Data > Other Usage Data: if you send custom events.
  • Purposes: Analytics, plus Developer's Advertising or Marketing if you message these customers through Lemu journeys or campaigns. Add App Functionality if your app relies on Lemu data to work.
  • Not collected by the SDK: location, device ids (IDFA or IDFV), diagnostics, contacts, health, financial info, browsing history, and search history unless you send search terms as events (then also declare Search History).

Forwarding to ad networks. If you send Lemu events to an advertising platform, for example through a Meta Conversions API connection, Apple counts that as tracking. Then answer "Data used to track you: Yes" for the shared types, ask permission with App Tracking Transparency first, and only call identify with an email or phone after the user allows it.

Objective-C#

objc
@import LemuAnalytics;
 
[Lemu track:LemuEvent.addToCart properties:@{@"value": @999, @"currency": @"INR"}];
[Lemu identifyWithUserId:@"cust_8812" traits:@{@"email": @"asha@example.com"}];
[Lemu purchaseWithValue:1499.5 currency:@"INR" orderId:@"1042"
               contents:@[[[LemuContent alloc] initWithId:@"SKU1" quantity:1 itemPrice:@1499.5 title:nil]]
             properties:nil];
[Lemu trackDeepLink:url referrer:nil];
[Lemu setConsent:YES];

Flutter

Add Lemu to a Flutter app on Android, iOS, web and desktop with lemu_analytics: events, purchases, known users, screens, app lifecycle and deep links

https://docs.lemuai.com/sdks/flutter

The Flutter SDK (lemu_analytics) sends events, purchases, known users, app lifecycle events, deep links and screens from your Flutter app.

  • Pure Dart, with no platform channels of its own. Works on Android, iOS, web, macOS, Windows and Linux.
  • Events are kept on the device, sent in batches, retried when the network fails, and kept across restarts.
  • Meta's standard event names, so ad platforms receive conversions unchanged.
  • Consent and opt-out built in. No advertising ids and no hardware ids.

Requires Flutter 3.22 or later (Dart 3.4 or later). You need the write key of an App source. See Get a write key.

Install#

Shell
flutter pub add lemu_analytics

Android and iOS need no extra setup. On macOS, apps are sandboxed and need permission to make network requests. Add this to macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements:

XML
<key>com.apple.security.network.client</key>
<true/>

Set up#

Call setup once in main(), before runApp():

dart
import 'package:flutter/widgets.dart';
import 'package:lemu_analytics/lemu_analytics.dart';
 
Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Lemu.instance.setup('lpk_...');
  runApp(const MyApp());
}

The write key is public, so it's safe to ship in the app. Calls made before setup are ignored. No method ever throws: a bad argument is ignored and, with debug: true, logged.

If the source lists Allowed apps, Lemu refuses events from any other app id. On Android the id is your applicationId, and on iOS and macOS your bundle identifier. Web and desktop builds send a different id: if you ship them, turn on debug mode, find namespace under app in a logged request, and add it to the list too.

Options#

dart
await Lemu.instance.setup(
  'lpk_...',
  options: const LemuOptions(
    debug: false,            // log every call, request and response
    requireConsent: false,   // see "Consent and opt-out"
    flushAt: 20,             // send once this many events are queued (web: 10)
    flushInterval: Duration(seconds: 30), // and at least this often (web: 1 second)
    maxQueueSize: 1000,      // events kept on the device while offline (at most 1,000)
    trackLifecycle: true,    // app_installed, app_updated, app_opened, app_backgrounded
    trackDeepLinks: true,    // deep_link_opened from trackDeepLink()
  ),
);

LemuOptions also takes apiHost. Change it only if your source's setup steps show another host.

Send events#

dart
Lemu.instance.track(LemuEvent.addToCart, {
  'value': 999,
  'currency': 'INR',
  'content_ids': ['SKU1'],
});
 
Lemu.instance.track('wishlist_shared', {'list_id': 'summer'});

Any event name works. For Meta's standard events, use the LemuEvent constants (viewContent, addToCart, initiateCheckout, purchase and the rest), spelled exactly as Meta expects. See the event reference.

Don't put email addresses, phone numbers or other contact details in event properties. Lemu removes them; they belong in identify().

Purchases#

dart
Lemu.instance.purchase(
  value: 1499.5,
  currency: 'INR',
  orderId: '1042',
  contents: const [
    LemuContent(id: 'SKU1', quantity: 1, itemPrice: 999, title: 'Kurta'),
    LemuContent(id: 'SKU7', quantity: 1, itemPrice: 500.5),
  ],
  properties: {'coupon': 'DIWALI10'},
);

purchase() sends a Purchase event right away instead of waiting for the next batch. content_ids and num_items are filled in from contents when you don't pass them.

Always pass the order id from your backend. The same order is often reported by more than one source: the app, your website, your server, Shopify. Lemu counts one conversion per order id, so revenue isn't counted twice and journeys don't fire twice. Without it, every report counts. See Conversion events.

Identify users#

When a user signs in or signs up:

dart
Lemu.instance.identify(
  userId: 'cust_8812',            // your own id for this user
  traits: {
    'email': 'asha@example.com',
    'phone': '+919812345678',     // international format
    'first_name': 'Asha',
    'last_name': 'Rao',
  },
);

The userId is kept and sent with every later event, also after the app restarts. On logout:

dart
Lemu.instance.reset(); // new anonymous id, no user id

Lemu.instance.anonymousId is the id Lemu uses for this install before the user is known.

Screens#

Add LemuNavigatorObserver to your navigator to send a screen each time a named page becomes visible:

Navigator

dart
MaterialApp(
  navigatorObservers: [LemuNavigatorObserver()],
  routes: {...},
);

go_router

dart
final router = GoRouter(
  observers: [LemuNavigatorObserver()],
  routes: [
    GoRoute(name: 'product', path: '/product/:id', builder: ...),
  ],
);

go_router names each page after the GoRoute name, or its path pattern (/product/:id) when it has none. Routes inside a ShellRoute need the observer on that ShellRoute too.

Dialogs, bottom sheets and unnamed routes are skipped. To choose names yourself:

dart
LemuNavigatorObserver(
  nameExtractor: (route) => route.settings.name?.replaceAll('/', ' ').trim(),
)

Or send screens yourself:

dart
Lemu.instance.screen('Checkout', {'step': 2});

Screens are stored as screen_viewed.

Pass each link that opens the app to trackDeepLink. It sends deep_link_opened and keeps the link's utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid and fbclid with every later event in the session, so later events, including the purchase, are credited to the campaign.

app_links

The app_links stream also delivers the link that launched the app:

dart
final appLinks = AppLinks();
appLinks.uriLinkStream.listen((uri) => Lemu.instance.trackDeepLink(uri));

go_router

Track links in the top-level redirect. It also runs for in-app navigation, so only track URLs that carry campaign parameters, once each:

dart
Uri? lastTrackedLink;
 
final router = GoRouter(
  redirect: (context, state) {
    final uri = state.uri;
    final hasCampaign = uri.queryParameters.keys
        .any((k) => k.startsWith('utm_') || k == 'gclid' || k == 'fbclid');
    if (hasCampaign && uri != lastTrackedLink) {
      lastTrackedLink = uri;
      Lemu.instance.trackDeepLink(uri);
    }
    return null;
  },
  routes: [...],
);

trackDeepLink(uri, referrer: 'com.instagram.android') records where the link came from, when you know it.

App lifecycle events#

Unless you set trackLifecycle: false, the SDK sends:

EventWhenProperties
app_installedFirst launchversion, build
app_updatedFirst launch after the version or build changedversion, build, previous_version, previous_build
app_openedLaunch and every return to the foregroundfrom_background
app_backgroundedThe app goes to the background

Queued events are sent when the app goes to the background, with or without lifecycle events. If you add the SDK to an app people already have, each of them sends app_installed once, on their first launch with the SDK.

If you must ask before tracking, for example under GDPR or the DPDP Act, set requireConsent: true. Nothing is sent and nothing is written to the device, not even the anonymous id, until the user agrees. Up to 50 events are held in memory meanwhile.

dart
await Lemu.instance.setup('lpk_...',
    options: const LemuOptions(requireConsent: true));
 
// later, from your consent screen
Lemu.instance.setConsent(true);  // sends the held events; remembered across launches
Lemu.instance.setConsent(false); // discards held and queued events

To stop all tracking for a user who opts out in your settings screen:

dart
Lemu.instance.optOut(); // clears the queue, remembered across launches
Lemu.instance.optIn();  // resumes

Flutter web#

On the web, the SDK reuses the visitor id of the Lemu website snippet (the _lemu_aid cookie and local storage key) when the Flutter app runs on the same site. A visitor who browses your website and then your Flutter web app is one visitor, and a visitor who opted out on the website stays opted out. Events are sent every second or every 10 events.

Debugging#

dart
await Lemu.instance.setup('lpk_...',
    options: const LemuOptions(debug: true));

Every call, request body and response status is printed with a [Lemu] prefix through debugPrint. Lemu.instance.flush() sends the queue immediately, which helps while testing. To see what Lemu stored, open the source in Settings → Tracking Sources and use Recent events.

How sending works#

  • Events are kept on the device (in shared_preferences) and survive restarts. At most 1,000 are kept; when full, the oldest event that isn't a Purchase is dropped. Events older than 7 days are dropped before sending.
  • Each request carries up to 50 events. Apps send every 30 seconds or 20 events, when going to the background, and right after a purchase. The web sends every second or 10 events.
  • Network errors, timeouts and server errors are retried with increasing waits, up to 5 minutes apart. A batch that keeps failing is dropped 20 hours after it was queued. Refused batches are dropped and the reason is logged in debug mode.
  • Every request has the User-Agent lemu-flutter/<version> (<os> <os version>; <model>), except on the web, where the browser sets its own.

Privacy and store forms#

What the SDK collects:

  • A random anonymous id created on first launch and stored in the app's preferences. It isn't derived from the device and is replaced on reset() or reinstall.
  • The events and properties your code sends, plus the userId and traits you pass to identify().
  • App name, version, build and package name; device manufacturer, model and type; OS name and version; screen size and pixel density; locale; time zone; campaign parameters from deep links.

It doesn't collect advertising ids (IDFA, GAID), hardware or vendor ids (Android ID, identifierForVendor), location, contacts, or anything else you don't send.

Your store answers depend on what your app sends and how your Lemu workspace uses it. The Flutter SDK collects the same data as the native SDKs, so the answers under Google Play data safety and App Privacy answers in App Store Connect apply. The Flutter SDK reads no advertising identifier and doesn't need the App Tracking Transparency prompt to work. If your workspace forwards conversions to ad platforms, for example through the Meta Conversions API, both stores count that as tracking or sharing: declare it, and follow Apple's App Tracking Transparency rules for it.

Event reference

Every event name the Lemu SDKs send, its constant on each platform, the standard parameters, and how Lemu stores events, properties and context

https://docs.lemuai.com/sdks/events

This page lists the event names every Lemu SDK knows, the constant for each one on each platform, and what Lemu keeps from each event. For the fields an order needs and how revenue and ROI are calculated, see Standard and conversion events.

How calls are stored#

CallStored as
page()PageView, with the page's url, path and title
screen(name)screen_viewed, with the screen's name in its properties
track(event) and purchase()The event name: Meta's spelling for a standard event, and lowercase with underscores for any other name
identify()Finds or creates the contact (see Known users). Traits go to the contact, never into event properties

Standard events#

These are Meta's standard events, with Meta's names and parameters. Every SDK has a constant for each one.

EventJavaScript, React, React NativeAndroidiOS, FlutterParameters
PageViewLemuEvent.PageViewLemuEvent.PAGE_VIEWLemuEvent.pageViewnone. On websites, page() sends it
ViewContentLemuEvent.ViewContentLemuEvent.VIEW_CONTENTLemuEvent.viewContentcontent_ids, content_category, content_name, content_type, contents, currency, value
SearchLemuEvent.SearchLemuEvent.SEARCHLemuEvent.searchsearch_string, content_category, content_ids, contents, currency, value
AddToCartLemuEvent.AddToCartLemuEvent.ADD_TO_CARTLemuEvent.addToCartcontent_ids, content_name, content_type, contents, currency, value
AddToWishlistLemuEvent.AddToWishlistLemuEvent.ADD_TO_WISHLISTLemuEvent.addToWishlistcontent_ids, content_name, content_category, contents, currency, value
InitiateCheckoutLemuEvent.InitiateCheckoutLemuEvent.INITIATE_CHECKOUTLemuEvent.initiateCheckoutcontent_ids, content_category, contents, currency, num_items, value
AddPaymentInfoLemuEvent.AddPaymentInfoLemuEvent.ADD_PAYMENT_INFOLemuEvent.addPaymentInfocontent_ids, content_category, contents, currency, value
PurchaseLemuEvent.PurchaseLemuEvent.PURCHASELemuEvent.purchasevalue, currency and order_id (required), content_ids, content_name, content_type, contents, num_items. Use purchase()
LeadLemuEvent.LeadLemuEvent.LEADLemuEvent.leadcontent_category, content_name, currency, value
CompleteRegistrationLemuEvent.CompleteRegistrationLemuEvent.COMPLETE_REGISTRATIONLemuEvent.completeRegistrationcontent_name, currency, status, value
SubscribeLemuEvent.SubscribeLemuEvent.SUBSCRIBELemuEvent.subscribecurrency, predicted_ltv, value
StartTrialLemuEvent.StartTrialLemuEvent.START_TRIALLemuEvent.startTrialcurrency, predicted_ltv, value
ScheduleLemuEvent.ScheduleLemuEvent.SCHEDULELemuEvent.schedule
SubmitApplicationLemuEvent.SubmitApplicationLemuEvent.SUBMIT_APPLICATIONLemuEvent.submitApplication
ContactLemuEvent.ContactLemuEvent.CONTACTLemuEvent.contact
CustomizeProductLemuEvent.CustomizeProductLemuEvent.CUSTOMIZE_PRODUCTLemuEvent.customizeProduct
DonateLemuEvent.DonateLemuEvent.DONATELemuEvent.donate
FindLocationLemuEvent.FindLocationLemuEvent.FIND_LOCATIONLemuEvent.findLocation

With the website snippet, use the event name itself, for example lemu("track", "AddToCart", { ... }). Lemu matches a standard name whatever its case or separators, so add_to_cart is stored as AddToCart. See Matching names.

Parameters#

ParameterTypeMeaning
valuenumberAn amount in major units: 1499.5 is ₹1,499.50. On AddToCart, the value of what was added. On InitiateCheckout, the checkout total. On Purchase, the order total
currencystringAn ISO 4217 code such as INR
order_idstringYour id for the order. Lemu counts one conversion per order id, however many sources report it. Meta's Conversions API has the same field
content_idslist of stringsProduct ids or SKUs
contentslist of objectsItems, each with id and quantity, and optionally item_price, title, brand and category
content_typestringproduct or product_group
content_namestringA name
content_categorystringA category
num_itemsintegerThe number of items
search_stringstringWhat was searched for
predicted_ltvnumberThe expected lifetime value of a subscriber
statusstringThe status of a registration

You can add your own properties next to these, for example payment_method or coupon.

The app SDKs take the order id and items as typed arguments to purchase: orderId and LemuContent(id, quantity, itemPrice, title) on Android, iOS and Flutter. They are sent as order_id and contents with item_price.

Conversion events#

A conversion event counts as an order for revenue and ROI. By default that's Purchase; you can add others under Settings → Sending Limits → Conversion events. Every conversion event needs value, currency and order_id.

Lemu never rejects a conversion event for a missing field. It fixes what it can, counts the rest, and shows the problem on the event in Recent events. See When a field is missing.

App lifecycle events#

The app SDKs (Android, iOS, Flutter and React Native) send these for you. They have no Meta equivalent and are never conversions.

EventJavaScript (React Native)AndroidiOS, FlutterWhenProperties
app_installedLemuEvent.AppInstalledLemuEvent.APP_INSTALLEDLemuEvent.appInstalledThe first launch with the SDKversion, build
app_updatedLemuEvent.AppUpdatedLemuEvent.APP_UPDATEDLemuEvent.appUpdatedThe first launch after the version or build changedversion, build, previous_version, previous_build
app_openedLemuEvent.AppOpenedLemuEvent.APP_OPENEDLemuEvent.appOpenedEvery launch and every return to the foregroundfrom_background, and url when a link opened the app (not on Flutter)
app_backgroundedLemuEvent.AppBackgroundedLemuEvent.APP_BACKGROUNDEDLemuEvent.appBackgroundedThe app goes to the background
deep_link_openedLemuEvent.DeepLinkOpenedLemuEvent.DEEP_LINK_OPENEDLemuEvent.deepLinkOpenedA link opens the appurl, referrer
screen_viewedLemuEvent.ScreenViewedLemuEvent.SCREEN_VIEWEDLemuEvent.screenViewedA screen is shown, when you track screensname, plus your properties
  • screen_viewed is never sent automatically. Call screen(name), or turn on your platform's screen tracking.
  • Turn the first four off with trackLifecycleEvents = false on Android, or trackLifecycle: false on iOS, Flutter and React Native. Turn deep links off with trackDeepLinks.
  • If you add the SDK to an app people already have, each of them sends app_installed once, on their first launch with the SDK.

On Android, the install referrer's campaign is added to app_installed. See Install referrer.

Custom events#

Any name that isn't a standard event is a custom event, for example coupon_applied or wishlist_shared. Custom events are never rejected, and they work in journeys, segments and the Event Log like any other event.

Lemu stores a custom name from an SDK in lowercase with underscores, so "Coupon Applied" is stored as coupon_applied. Use that spelling in journeys and segments, or send it that way to begin with.

Properties Lemu removes#

Contact details belong in identify traits only. Lemu removes these keys from event, page and screen properties, at any depth, whatever their case: email, e_mail, phone, phone_number, mobile, mobile_number, whatsapp, password, otp, card, card_number, cvv, pan, aadhaar and address. The same keys are removed from the query string of page URLs and referrers.

Context#

The SDKs add context to every event. Your code never sets it. Lemu keeps:

ContextWhat it holds
platformweb, ios, android, flutter or react_native
libraryThe SDK's name and version
appThe app's name, version, build and namespace (bundle id or package name)
devicemanufacturer, model, and type (phone, tablet, desktop, tv or other)
osThe OS name and version
screenWidth, height and pixel density
locale, timezoneFor example en-IN and Asia/Kolkata
campaignsource, medium, campaign, term and content from UTM parameters, plus gclid and fbclid, from the landing page, the deep link that opened the app, or the Android install referrer
user_agentThe browser's user agent, or the SDK's, such as lemu-android/1.0.0 (Android 14; Pixel 8)
referrerThe page's referrer, on websites

You can see an event's context in Recent events. No advertising ids and no hardware ids are sent or kept.

Sending Limits

Cap how often one contact hears from your journeys and campaigns on each channel, and choose how orders are credited to them

https://docs.lemuai.com/settings/sending-limits

Sending Limits (Settings → Sending Limits) holds two organization-wide settings:

  • Frequency caps: the most journey and campaign sends one contact gets on each channel in a set time.
  • Revenue attribution: which events count as orders (conversion events), and how long after a send an order is still credited to it.

Only members who can manage settings (owners and admins) can see and change this page.

The Sending Limits page with frequency caps per channel and revenue attribution windows

Frequency caps#

Frequency caps stop a contact from being flooded when several journeys and campaigns all reach them at once. Each channel has its own cap, and each can be on or off:

ChannelSuggested cap when you turn it on
WhatsApp1 message per contact in 24 hours
SMS1 message per contact in 24 hours
Email2 emails per contact in 24 hours
Calls1 call per contact in 168 hours (one week)

For each channel you turn on, set At most (1 to 50) and the period in hours (up to 720, which is 30 days). A channel that is off shows No cap.

What happens at the cap#

  • The check runs right before each send, not only when a journey starts.
  • A send over the cap is skipped and the journey carries on to its next step. The journey report counts these under Skipped.
  • Sends from journeys and campaigns both count toward the cap.
  • Inbox replies and the AI assistant's replies do not count, and are never blocked.
  • Test runs skip the caps.

Messages that must always go out#

Some messages should never be held back, such as order updates, delivery alerts or one-time passwords. For those:

  • In a journey, open Settings and turn off Respect frequency caps.
  • In an email campaign, turn on Ignore frequency caps.

These sends always go out, whatever the contact's cap.

Only turn caps off for messages the contact expects and needs. Marketing sent past the cap is the quickest way to get unsubscribes and spam complaints.

Revenue attribution#

When a contact places an order, Lemu credits it to the last journey or campaign send they got, on any channel, if that send came within the channel's attribution window. The credited orders and revenue show up in each journey's report.

Attribution windows#

Set one window per channel, in hours (1 to 720):

ChannelDefault window
WhatsApp72 hours
SMS24 hours
Email120 hours (5 days)
Calls72 hours

Answered calls count as a send. Unanswered calls do not.

Conversion events#

Conversion events lists the events that count as orders for revenue and ROI, separated by commas. The default is Purchase, which is what the website snippet, the app SDKs and a connected Shopify store send. Older names such as order_placed still match it. You can add others, such as Lead or one of your own custom events. You need at least one.

Each conversion event needs a value, a currency and an order_id:

  • value and currency are the order's revenue. An order without a value still counts as an order, but adds no revenue.
  • order_id lets Lemu count an order once, however many times it is reported. An order reported twice with the same order_id counts once.

If you send your own orders through the events API, use Purchase (or add your event type here) and include these fields. Events are never rejected for a missing field. See Standard and conversion events for what Lemu does when one is missing.

Once conversion events arrive, a summary below the field shows how many arrived in the last 30 days and how many were missing a value, a currency or an order id, or had one fixed. If all were complete, it says so.

If your workspace has custom records, Record types that hold orders lets you count new records of a type as orders too, with the record's key as the order id and its total as the value.

Click Save sending limits to apply your changes.

Next steps#

Email Setup

Connect a sending domain, add senders, set your postal address and brand kit, and manage the suppression list

https://docs.lemuai.com/email/setup

Setup required: sending email in production needs LemuAI's email service turned on for your account. Contact hello@lemuai.com to enable it. You also need at least one verified sending domain of your own (see below).

Email Setup (Settings → Email Setup in the sidebar) is where you get your account ready to send email. Do this once before you build templates, send campaigns or add an Email step to a journey.

The page has six sections:

SectionWhat it is for
Sending domainsProve you own the domain your email comes from
SendersThe From name, From address and Reply-to your emails show
ComplianceYour postal address and how contacts with no recorded consent are treated
Dedicated IPsOptional: your own sending IPs instead of shared ones
Brand kitLogo, colors, font and button style for new templates
Suppression listAddresses that never get email
The Email Setup page with Sending domains, Senders and Compliance sections

Sending domains#

Email is always sent from your own domain, so inboxes can check it really comes from you. We recommend a subdomain such as mail.yourbrand.com, so marketing mail never affects your team's everyday inbox.

  1. Add the domain

    Type the domain (for example mail.yourbrand.com) and click Add domain. Lemu creates the DNS records the domain needs.

  2. Add the records at your DNS provider

    Open DNS records on the domain card. Click any name or value to copy it, then add each record at your DNS provider (GoDaddy, Cloudflare, Route 53 and so on).

  3. Wait for the check

    Lemu checks every 10 minutes, and you can click Check now at any time. DNS changes can take a few hours to show up. Each record shows a tick when it is found, a cross when a required record is missing, and a warning sign for a recommended record that is missing.

The records#

TypeNameWhy
CNAME (3 records)<token>._domainkey.<your domain>DKIM signature, so inboxes can verify your mail
MXbounce.<your domain>Bounces come back to Lemu (custom MAIL FROM)
TXTbounce.<your domain>SPF for the bounce domain, aligned with yours
TXT_dmarc.<your domain>DMARC policy, required by Gmail and Yahoo for bulk mail. Recommended; skip it if your main domain already has one
CNAMEshown on the cardProves the domain for the HTTPS certificate of your link domain. Recommended
CNAMElinks.<your domain>Branded links for click tracking. Recommended. Its value appears once the certificate is issued

When a record is wrong, the card says what is wrong with it (for example, a value that does not match), so you know exactly what to fix.

Domain status#

StatusMeaning
Waiting for DNSThe records are not found yet
VerifiedThe required records are in place. You can send from this domain
ReadyVerified, and the recommended records (DMARC and the link domain) are also in place
Records missingA record that was found before has gone missing. Sending from this domain stops until it is fixed

The card also shows the status of your link domain: Not set up, Waiting for the certificate record, Waiting for the link domain record, Active, or Certificate failed; remove and add the domain again.

You can send as soon as a domain is Verified. Aim for Ready: Gmail and Yahoo expect a DMARC record for bulk mail, and branded links look more trustworthy than a shared tracking domain.

Senders#

A sender is the From name, From address and optional Reply-to that your emails show. The From address must be on one of your domains, so add a domain first.

  • Click Add sender to save one.
  • One sender is the Default. Templates, campaigns and journey Email steps use it unless you pick another one. Click Make default to change it.
  • You can choose a different sender on any campaign or journey Email step.

Compliance#

Every marketing email shows your postal address and an unsubscribe link. This is required by law, and by Gmail and Yahoo.

  • Postal address: enter your business address and click Save address. Marketing email can't be sent until it is set.
  • Email contacts with no recorded consent: off by default, so marketing email only goes to contacts who have said yes to email. Turn it on only if you collected consent somewhere else (for example at checkout on your store). Contacts who unsubscribed are never emailed either way.

If a marketing email template is missing a footer, Lemu adds one with your address and an unsubscribe link when it sends. See Deliverability for how unsubscribes work.

Dedicated IPs#

By default you send from Amazon SES's shared, well-warmed IPs. Dedicated IPs give you your own sending reputation; they are warmed up and scaled automatically.

Click Request dedicated IPs to ask for them. The status changes to Requested and our team gets in touch to confirm pricing and turn them on, after which it shows Active. You can cancel a request, or go back to shared IPs later.

Below about 50,000 emails a month, shared IPs usually deliver better than dedicated ones.

Brand kit#

The brand kit is applied to new templates and new blocks: your Logo (upload or paste a URL), colors for the page background, email body, buttons and links, a Font, and Button corners in pixels. Click Save brand kit. Templates you already built do not change.

Suppression list#

Addresses on the suppression list never get email, from campaigns, journeys or transactional sends. Addresses are added automatically when they hard bounce, soft bounce too often, or mark an email as spam, and you can add one by hand.

  • Type an address to check it. Lemu tells you if it is suppressed.
  • Click Suppress to block an address by hand, or Remove to take a bounce or manual entry off the list.
  • Spam complaints can't be removed.

See Deliverability for the exact rules.

Marketing email is paused#

If your bounce or spam complaint rate gets too high, Lemu pauses marketing email for your account. A red banner at the top of Email Setup and Deliverability shows the reason. Fix the cause, then click Resume sending. See Deliverability.

Troubleshooting

Find what an error message means and how to fix it: every message is quoted exactly as LemuAI shows it.

https://docs.lemuai.com/troubleshooting/overview

Every message on these pages is written exactly as LemuAI shows it. Search this site (press ⌘K or Ctrl K) for a few words of the message you see, or paste the message into an AI assistant together with these pages (see Use these docs with AI).

Parts of a message that change, such as a number or a name, are written in braces. For example Journey {id} not found matches "Journey 42 not found".

Pick the area#

You were working withPage
Phone calls, telephony, call minutes, call transferCalls and telephony
WhatsApp messages, templates, numbers, the InboxWhatsApp and Inbox
Email campaigns, templates, sending domainsEmail
Journeys, journey steps and runsJourneys
Contacts, imports, lists, segments, custom records, catalogContacts and data
Shopify, Google Sheets, Zoho Books, Slack, Jira, Google Calendar, Lemu Tickets, tracking sourcesIntegrations
Signing in, invites, team roles, plans, wallets, invoicesAccount, team and billing
The REST API (status codes like 401 or 422)API errors

Each entry tells you#

  • Where you see it: the page or action where the message appears.
  • Why: what caused it.
  • Fix: what to do, with the exact menu path.
  • Who can fix it: the role that can make the change. Roles are Owner, Admin, Member, Editor, Viewer and Finance (see Team). "LemuAI support" means email hello@lemuai.com.

Messages that only say something failed#

Some messages only say an action failed, for example "Couldn't save", "Failed to save", "Failed to load …" or "Something went wrong. Please try again."

  • Why: the request didn't reach LemuAI or LemuAI couldn't finish it. Usually a dropped connection or a short outage.
  • Fix:
    1. Check your internet connection and reload the page.
    2. Try the action again.
    3. If it keeps failing, email hello@lemuai.com with the page, what you clicked and the time it happened.
  • Who can fix it: you; LemuAI support if it keeps happening.

"No organization selected"#

  • Where you see it: almost any page, or as an API response.
  • Why: your account isn't working inside an organization (workspace) right now, for example just after you left one.
  • Fix: open the account menu at the bottom of the sidebar and pick a workspace. Then reload the page.
  • Who can fix it: you.

"Only an owner or admin can do this."#

  • Where you see it: Team, Telephony, Integrations, API Keys and other setup pages.
  • Why: your role doesn't include setup or member management. Members, Editors, Viewers and Finance can't change setup.
  • Fix: ask an Owner or Admin of the workspace to make the change, or to change your role under Settings → Team.
  • Who can fix it: an Owner or Admin.

Calls and telephony

What call errors mean and how to fix them: telephony setup, Plivo lines and balance, caller IDs, call minutes, transfers and calls that didn't connect.

https://docs.lemuai.com/troubleshooting/calls

Messages are quoted exactly as LemuAI shows them. Parts that change are in braces, like {provider}. Telephony is set up under Voice Agents → Telephony.

Telephony setup#

"Telephony provider not configured for this organization"#

Also shown as telephony_not_configured, call: telephony provider not configured for this organization, You must configure telephony first by going to APP_URL/configure-telephony, or Telephony not configured: {details}.

  • Where you see it: when you start a test call, a campaign, an API call trigger, or a journey Call step.
  • Why: the workspace has no phone provider connected, so LemuAI can't place calls.
  • Fix: open Voice Agents → Telephony, pick your provider (for example Plivo or Exotel), enter its details and at least one caller ID, and save. See Telephony.
  • Who can fix it: an Owner or Admin.

"Add at least one caller ID phone number"#

Also: "Add another caller ID first. Calls need at least one." and "Caller ID is required".

  • Where you see it: Voice Agents → Telephony, when you save or remove a caller ID.
  • Why: outbound calls need a number to call from. The last caller ID can't be removed.
  • Fix: add the number your provider gave you, with country code, for example +918045671234. To replace a number, add the new one first, then remove the old one.
  • Who can fix it: an Owner or Admin.

"Phone numbers must be in E.164 format (e.g. +14155551234)"#

  • Where you see it: Voice Agents → Telephony, in the caller ID field.
  • Why: the number is missing the + and country code, or has spaces or dashes.
  • Fix: type the number as + country code and number with nothing else, for example +919876543210.
  • Who can fix it: an Owner or Admin.

"Vonage numbers must omit the + prefix (e.g. 14155551234)"#

  • Where you see it: Voice Agents → Telephony with Vonage selected.
  • Why: Vonage expects numbers without the +.
  • Fix: remove the +, keep the country code: 919876543210.
  • Who can fix it: an Owner or Admin.

"Enter the Plivo Auth ID and Auth Token again, then save"#

Also: "Enter the Plivo Auth Token", "Enter the Auth ID and Auth Token again to fetch the numbers", "Enter the Auth Token for this Auth ID to fetch its numbers".

  • Where you see it: Voice Agents → Telephony with Plivo selected, when you save or press Fetch from Plivo.
  • Why: LemuAI shows saved credentials hidden (**** and the last 4 characters). When you change the Auth ID, the saved Auth Token no longer matches it, so both are needed again.
  • Fix: copy the Auth ID and Auth Token from the Plivo console (overview page) and paste both, then save.
  • Who can fix it: an Owner or Admin.

Calls that didn't go out#

When a call can't be placed, the reason is stored on the run. Open Insights → Runs → Agent Calls (or the journey run under Journey Runs) to see it.

"Every line on the provider account was in use"#

Plivo hang-up code 5030, or the error "Concurrency Limit Breached".

  • Where you see it: on a failed call's run, during busy campaigns or journeys.
  • Why: your Plivo account allows a fixed number of calls at the same time (Plivo India accounts start at 50 lines, and the lines are shared by everything on that account). LemuAI tried to start more calls than the account allows.
  • Fix: on Voice Agents → Telephony, set Lines on your Plivo account to the number your Plivo account allows. LemuAI then never starts more calls than that and queues the rest. To get more lines, ask Plivo.
  • Who can fix it: an Owner or Admin. More lines: your Plivo account manager.

"The provider account is out of balance"#

Plivo code 1010, or HTTP 402 from Plivo.

  • Where you see it: on failed calls' runs; calls stop going out.
  • Why: your Plivo account has no money left. This is the provider's balance, not your LemuAI minutes.
  • Fix: add balance in the Plivo console. The Plivo balance card on Voice Agents → Telephony shows the current balance; turn on Email me when the balance is low and set Alert below to get a warning next time.
  • Who can fix it: whoever pays your Plivo account.

"The caller ID is not on the provider account"#

Plivo code 3030, or HTTP 400 when starting the call.

  • Where you see it: on failed calls' runs, often for every call from one number.
  • Why: a caller ID saved in LemuAI isn't a number on your Plivo account (it was released, or typed wrong).
  • Fix: on Voice Agents → Telephony, press Fetch from Plivo. Numbers that aren't on the account are marked; remove them. Keep at least one number that is.
  • Who can fix it: an Owner or Admin.

Other Plivo hang-up codes#

CodeWhat it meansWhat to do
2030The country you're calling isn't allowed on the Plivo accountAllow the country under Voice → Geo Permissions in the Plivo console
2070Calls to India must go out from an India regionAsk Plivo support
3070, 3080, 3090A carrier problemNothing to change unless it keeps happening
3130The carrier blocks this caller ID as spamUse another caller ID
3140This caller ID may not be used to place callsUse another caller ID
5000, 5010, 5020A Plivo problemContact Plivo support if it keeps happening
7011Plivo couldn't reach LemuAI when the call was answeredEmail LemuAI support with the time
8011Plivo couldn't read LemuAI's call instructionsEmail LemuAI support with the time

The number couldn't be reached#

Busy, no answer, rejected, switched off, wrong number, out of service, barred, ring timeout, or answering machine detected (Plivo codes such as 3000, 3010, 3020, 2000, 2010, 3050, 6010, 9100).

  • Why: the person's phone, not your setup. Providers often report these as "failed", but nothing is wrong with your account.
  • Fix: nothing to fix. In a journey, use the Call step's not-picked branch to try again later or send a WhatsApp message instead.
  • Who can fix it: no one needs to.

"You're out of calling minutes. Add a talktime pack from Usage & Billing to resume calls."#

Also: "Unable to verify your calling-minute balance."

  • Where you see it: when you start a call, a test call, or a campaign. The API answers with status 402.
  • Why: your LemuAI Voice minutes balance is at its floor.
  • Fix: open Usage & Plan → Usage & balances, press Add balance and add minutes. Calls continue once the balance is above the floor. If you see "Unable to verify…", try again in a minute; LemuAI couldn't read the balance.
  • Who can fix it: an Owner, Admin or Finance member.

"no free line within {minutes} min"#

Shown on a journey run as stuck_run_timeout: no free line within {minutes} min.

  • Where you see it: Insights → Runs → Journey Runs, on a run that stopped at a Call step.
  • Why: the call waited for a free line (see "Every line on the provider account was in use") for longer than the step allows, so the run stopped.
  • Fix: check Lines on your Plivo account on the Telephony page matches what Plivo allows, and spread large sends over more time (allowed hours, smaller batches). Runs that hit this don't restart on their own: start them again if needed.
  • Who can fix it: an Owner or Admin for the line setting; anyone who can edit the journey for the timing.

"model_configuration_missing:{names}"#

Also: "No API key configured for '{provider}'. Ask your administrator to add it in Provider Management."

  • Where you see it: when a call or voice preview starts.
  • Why: the speech, voice or AI model the agent uses isn't available to your workspace.
  • Fix: open the agent, go to its model settings and pick another voice or model from the list (see Model Configurations). If you need that provider, email LemuAI support.
  • Who can fix it: anyone who can edit the agent; LemuAI support for providers.

"{Provider} authentication failed. Check your {Provider} API key."#

For example "ElevenLabs authentication failed. Check your ElevenLabs API key." Also "Voice provider returned an error ({status}). Check the API key in Provider Management."

  • Where you see it: Voice Agents → Voice Library, when you preview a voice.
  • Why: the voice provider refused the key LemuAI used.
  • Fix: try another voice; email LemuAI support with the provider name.
  • Who can fix it: LemuAI support.

During and after a call#

"Provider '{provider}' does not support call transfers"#

Also: "Telephony provider '{provider}' is not properly configured for transfers", "Transfer call failed: {details}", "Call transfer not supported: {details}".

  • Where you see it: when an agent's Call Transfer tool runs.
  • Why: your phone provider can't move a live call to another number, or the transfer number was refused.
  • Fix: check the transfer number in the tool has a country code, like +919876543210. If your provider doesn't support transfers, have the agent give the number to call instead, or connect a provider that supports transfers.
  • Who can fix it: anyone who can edit the agent; an Owner or Admin for the provider.

"No active call found for this run yet (it may not have connected)."#

Also: "This run isn't a telephony call, so there's nothing to drop here." and "The telephony provider could not confirm the call was dropped."

  • Where you see it: when you press drop (hang up) on a live call.
  • Why: the call hasn't connected yet, already ended, was a web call, or the provider didn't confirm.
  • Fix: wait a few seconds and try again, or check the run: if it shows ended, nothing more is needed.
  • Who can fix it: you.

A run shows "Completed" but the call failed#

  • Why: the run finished, and finishing is "Completed" even when the call didn't connect.
  • Fix: open the run to see the call's outcome and the reason it stored.

Web widget#

These show in the chat or call window of the Web Widget on your website.

"That code isn't right."#

Also: "That code has expired. Ask for a new one." and "Too many wrong tries. Ask for a new code."

  • Where you see it: in Verify it's you to raise a request, after a visitor types the WhatsApp code.
  • Why: the 6 digits don't match the last code sent, the code is older than 10 minutes, or there were 5 wrong tries.
  • Fix: the visitor checks the latest WhatsApp message, or presses Use another number and asks for a new code.
  • Who can fix it: the visitor.

"Please wait a few seconds before asking for another code."#

Also: "Too many codes for this conversation. Please sign in instead, or try later.", "Too many codes for this number. Please try again in an hour." and "Too many codes asked for. Please try again in an hour."

  • Where you see it: after Send code.
  • Why: each code is a paid WhatsApp message, so a conversation gets one every 30 seconds and 3 a day, a number 5 an hour, and one internet address 10 an hour.
  • Fix: wait, or sign in on your website if you set a Sign-in page link.
  • Who can fix it: the visitor.

"We can't send WhatsApp messages to this number."#

Also: "This doesn't look like a WhatsApp number." and "We couldn't send a code to this number."

  • Where you see it: after Send code.
  • Why: the number opted out of your WhatsApp messages, isn't on WhatsApp, or WhatsApp refused the message.
  • Fix: the visitor uses another number or signs in. If every send fails, check the template chosen in Products & tickets is an approved Authentication template.
  • Who can fix it: the visitor; anyone who can edit the agent for the template.

"Codes can't be sent right now. Please sign in instead."#

  • Where you see it: after Send code.
  • Why: WhatsApp isn't ready to send for your workspace, or the WhatsApp balance is empty.
  • Fix: add WhatsApp balance in Usage & Plan → Usage & balances → Add balance, and check WhatsApp is connected.
  • Who can fix it: an Owner or Admin.

"This button isn't set up on this site yet."#

  • Where you see it: after pressing a product card button set to Run a function on your website.
  • Why: your site hasn't added the function the button names.
  • Fix: add it with LemuWidget.registerAction("addToCart", ...) on every page the widget shows, with the same name as in Products & tickets. See Product buttons from your own code.
  • Who can fix it: your website's developer.

A signed-in customer still has to verify#

  • Why: the signature in LemuWidgetConfig.user doesn't match. A wrong or missing signature counts as not verified.
  • Fix: sign the customer's email in lower case (or the phone with + and the country code when there's no email) with HMAC-SHA256 and the secret from Products & tickets, as lower-case hex, on your server. See Customers signed in on your website.
  • Who can fix it: your website's developer.

"This assistant isn't available right now."#

  • Where you see it: when a visitor opens the chat or starts a call.
  • Why: the widget isn't on for this website, or the workspace is out of minutes or balance.
  • Fix: check Live on your website and Websites it works on in the Deploy dialog, and your balance in Usage & Plan → Usage & balances.
  • Who can fix it: anyone who can edit the agent; an Owner or Admin for the balance.

Calls arriving (inbound)#

See Inbound Calling for how to point a number at an agent, and the checks to run when calls ring but no agent answers.

WhatsApp and Inbox

What WhatsApp send errors, Meta error codes and Inbox messages mean, and how to fix them.

https://docs.lemuai.com/troubleshooting/whatsapp

Messages are quoted exactly as LemuAI shows them. Parts that change are in braces. A message that failed shows its reason on the message in the Inbox, in the report of a WhatsApp campaign (Engage → Campaigns → WhatsApp), and on the journey run (Insights → Runs → Journey Runs). Meta's error code is shown next to it when there is one.

Connecting WhatsApp#

"Connect WhatsApp first"#

Also: "Connect a WhatsApp Business account first".

  • Where you see it: WhatsApp pages, the Inbox composer, journeys with a WhatsApp step.
  • Why: the workspace has no WhatsApp Business account connected.
  • Fix: open Engage → WhatsApp → Setup and connect your account with Meta. See WhatsApp.
  • Who can fix it: an Owner or Admin.

"No WhatsApp Business account was shared"#

Also: "Couldn't finish connecting to Meta: {details}. Start again."

  • Where you see it: at the end of connecting with Meta.
  • Why: in Meta's window, no WhatsApp Business account was ticked, or the window was closed before it finished.
  • Fix: start again from Engage → WhatsApp → Setup and, in Meta's window, select the business, the WhatsApp Business account and the phone number, then finish all steps.
  • Who can fix it: an Owner or Admin who is also an admin of the Meta business.

"Lemu's access to this WhatsApp account expired or was removed; reconnect"#

Meta codes 190, 200 or 10. Also "Lemu no longer has permission on this WhatsApp account; reconnect".

  • Why: someone removed LemuAI's access in Meta Business settings, or the access expired.
  • Fix: reconnect from Engage → WhatsApp → Setup. Templates and history stay.
  • Who can fix it: an Owner or Admin.

"This WhatsApp account is locked by Meta"#

Meta codes 131031 and 368 ("Meta restricted this account for a policy breach").

  • Why: Meta restricted the account, usually after many blocks or reports from customers.
  • Fix: open Meta Business Manager → WhatsApp Manager to see the reason and request a review. Sending resumes when Meta lifts it.
  • Who can fix it: the admin of your Meta business.

Phone numbers#

These appear on Engage → WhatsApp → Numbers.

MessageFix
"This number already has a two-step verification PIN that Lemu doesn't know. Set a new PIN for it on the Numbers page, then use Retry setup" (133005)Set a new 6-digit PIN on the Numbers page, then press Retry setup
"Meta needs the number verified again. Request a code on the Numbers page" (133006)Request a code, enter it
"Too many wrong PIN attempts. Wait for the time Meta gives, then retry" (133008)Wait, then retry
"PIN entered too quickly after the last try. Wait a minute, then retry" (133009)Wait a minute
"The number isn't registered with WhatsApp yet" (133010)Finish setup on the Numbers page
"The number was deleted recently; wait 5 minutes, then retry" (133015)Wait 5 minutes
"Too many register attempts for this number; try again in a few hours" (133016)Wait a few hours
"The PIN is 6 digits"Enter exactly 6 digits
"WhatsApp Business app numbers stay registered on the app"Numbers you also use in the WhatsApp Business app on a phone are managed from that app; there's nothing to register here

Who can fix it: an Owner or Admin.

Sending messages#

"More than 24 hours since the customer last wrote; send a template instead"#

Meta code 131047. In the Inbox: "The 24-hour reply window is closed. Send a template instead." (or "…Send a catalog template instead.").

  • Why: WhatsApp only allows free-form messages within 24 hours of the customer's last message. After that, only approved templates.
  • Fix: send an approved template. In the Inbox, use the template button in the composer. In a journey, pick a template in the WhatsApp step. When the customer replies, the window opens for 24 hours again.
  • Who can fix it: anyone who sends messages.

"This contact stopped marketing messages on WhatsApp"#

Also "This contact has opted out of all messages", and on campaign reports: "opted out" and "no WhatsApp consent (marketing)". Meta code 131050: "The customer stopped marketing messages from this business".

  • Why: the contact stopped your WhatsApp marketing (replied STOP, tapped Stop promotions or chose Stop marketing in WhatsApp itself) and this is a broadcast or a marketing template, or they opted out of everything, or have no recorded yes for marketing messages. Replies, order updates and codes still reach someone who only stopped marketing. When Meta refuses a message with 131050, Lemu records the opt-out so it doesn't try again.
  • Fix: nothing to fix for that contact: respect the choice. To check what a contact agreed to, use Contact Consent or open the contact under Audience → Contacts.
  • Who can fix it: no one should override it.

"Meta held back this marketing message to keep engagement healthy"#

Meta code 131049.

  • Why: Meta limits how many marketing messages one person gets from all businesses. It isn't a problem with your account.
  • Fix: don't resend at once. Try another day, or reach the person on another channel.
  • Who can fix it: no one needs to.

"The number can't receive this message (not on WhatsApp, or an old app)"#

Meta code 131026. Also on campaign reports: "no usable phone number".

  • Why: the number isn't on WhatsApp, the app is very old, or the number is wrong.
  • Fix: check the contact's phone has the right country code. Reach them by call, SMS or email instead.
  • Who can fix it: anyone who edits contacts.

"Invalid phone number '{phone}'. Use E.164 format (e.g. +919876543210)."#

Also: "This contact has no phone number" and "Enter the phone number with its country code, like +919876543210".

  • Why: the number has no country code or has letters, or the contact has no phone at all.
  • Fix: edit the contact and enter the number as +91 and 10 digits. When importing, put the full number in the phone column.
  • Who can fix it: anyone who edits contacts.

"The number of values doesn't match the template's variables"#

Meta code 132000. Also: "A value has the wrong format for the template's variable" (132012), and on campaign reports "a template variable had no value".

  • Why: a template variable like {{1}} got no value (the contact field was empty) or the wrong kind of value.
  • Fix: in the campaign or WhatsApp step, check each variable is mapped to a field, and give it a fallback for contacts with that field empty. See Template Variables for the fallback filter.
  • Who can fix it: anyone who edits the campaign or journey.

Template problems#

Message (Meta code)What to do
"The template doesn't exist in this language or isn't approved yet" (132001)Wait for approval on Engage → WhatsApp → Templates, or pick the language the template was approved in
"The filled-in template text is too long" (132005)Shorten the values you put into variables
"The template breaks WhatsApp's content policy" (132007)Edit the template and submit it again
"The template is paused for low quality" (132015)Customers blocked or reported it. Improve it or use another template; Meta unpauses after a while
"The template is disabled for low quality" (132016)Create a new template
"No one in this audience can get this template"Every contact in the audience is opted out, has no consent or no phone. Check the audience's consent

"Sending too fast for this number's throughput; it will be retried"#

Meta codes 130429, 131056 ("Too many messages to this person in a short time; it will be retried"), 133004, 4 and 80007.

  • Why: Meta asked LemuAI to slow down.
  • Fix: nothing. LemuAI retries these on its own.

"Meta couldn't charge for this message. Lemu has been alerted"#

Meta code 131042.

  • Why: a billing problem between Meta and the account that pays for messages.
  • Fix: LemuAI is alerted automatically. If you pay Meta directly, check the payment method in Meta Business Manager.
  • Who can fix it: LemuAI support, or your Meta business admin.

"Waiting for credit on this channel's wallet"#

  • Where you see it: a journey run waiting at a WhatsApp step, for numbers bought through LemuAI.
  • Why: the WhatsApp balance is empty. The step waits and tries again instead of failing.
  • Fix: Usage & Plan → Usage & balances → Add balance. Waiting runs continue on their own.
  • Who can fix it: an Owner, Admin or Finance member.

Other messages#

MessageWhat to do
"You can't send a message to your own number" (131021)Send to another number
"The recipient isn't in the allowed list of this test number" (131030)Add the number to the test number's allowed list in Meta, or use your live number
"This message type isn't supported" (131051)Send text, an image, a document or a template
"Couldn't download the customer's media" (131052)Ask the customer to send it again
"Couldn't upload the media; check its type and size" (131053)Use a JPG or PNG image, or a PDF, within WhatsApp's size limits
"Use a JPG or PNG image"Convert the image to JPG or PNG
"The file is larger than 100 MB"Use a smaller file
"WhatsApp nodes only send WhatsApp. Reconfigure this node."Open the journey step and choose a template again
"WhatsApp node requires a recipient (to / to_field)"In the WhatsApp step, set who it goes to (the contact's phone)
"Meta didn't return a preview link"Try the preview again in a minute

Inbox#

"The team isn't handling this conversation"#

  • Where you see it: Inbox, when you press Hand back to journey or Hand back to agent.
  • Why: the conversation is already handled by the AI assistant or a journey, not by a teammate, so there's nothing to hand back.
  • Fix: reload the Inbox; the conversation shows who is handling it now. See Inbox.

"That user isn't in this organization"#

  • Fix: assign the conversation to someone in the workspace. Invite them first under Settings → Team.

Email

Why an email wasn't sent, what sending-domain checks mean, and how to fix paused sending, missing credits and template errors.

https://docs.lemuai.com/troubleshooting/email

Messages are quoted exactly as LemuAI shows them. Parts that change are in braces. Email is set up under Engage → Email → Setup; campaign results are under Engage → Campaigns → Email.

Why a contact didn't get an email#

A campaign's report lists, for each contact who didn't get it, one of these reasons.

Reason on the reportWhyWhat to do
No email addressThe contact has no emailAdd one to the contact, or leave them out
UnsubscribedThey used the unsubscribe linkNothing; respect it
No email consentMarketing email needs a recorded yes, and this contact has noneRecord consent (see below), or leave them out
Suppressed (bounced or complained)Their address bounced hard, or they marked your mail as spamFix the address if it was a typo; complaints stay suppressed
Sending pausedMarketing email is paused for the workspaceSee "Marketing email is paused" below
Domain not verifiedThe sender's domain isn't verified yetFinish Email Setup
Template errorThe template couldn't be filled in for this contactOpen the template and check its variables have fallbacks
Frequency capThe contact already got the most marketing messages allowed in the periodNothing, or change caps under Settings → Sending Limits
Provider errorThe email service refused the messageTry again later; email LemuAI support if it continues
  • Why: by default, LemuAI only sends marketing email to contacts with a recorded yes for email. Transactional email (order updates, receipts) doesn't need it.
  • Fix: record consent on the contact (Audience → Contacts, open the contact) or for a whole list (a list's ⋯ menu → Email consent). If your business already has permission for everyone, an Owner or Admin can turn on Email contacts with no recorded consent under Engage → Email → Setup → Compliance. Contacts who opted out are never emailed.
  • Who can fix it: anyone who edits contacts; an Owner or Admin for the Compliance setting.

Sending paused#

"Marketing email is paused"#

The reason below it reads Bounce rate {rate} over the last 7 days (limit 5%) or Spam complaint rate {rate} over the last 7 days (limit 0.2%).

  • Where you see it: Engage → Email → Setup, and "Sending paused" on campaign reports.
  • Why: too many emails bounced or were marked as spam in the last 7 days. LemuAI pauses marketing email to protect your domain's reputation (and the email service's).
  • Fix:
    1. Find the cause: an old or bought list, a list imported with typos, or mail people didn't expect. Engage → Email → Deliverability shows bounces and complaints.
    2. Remove the bad addresses or segment, and only send to people who engaged recently.
    3. Press Resume sending on Engage → Email → Setup.
  • Who can fix it: an Owner or Admin.

Credits, senders and templates#

"No email credits left"#

Also "No email credits".

  • Where you see it: campaign reports, journey runs at an Email step (the step waits and retries).
  • Why: the Email credits balance is empty.
  • Fix: Usage & Plan → Usage & balances → Add balance, then pick email. Waiting journey steps continue on their own.
  • Who can fix it: an Owner, Admin or Finance member.

"Add a sender first"#

Also: "Add a sender in Email settings", "Pick a sender address first.", "Sender not found", "The sender or template was deleted".

  • Why: there's no sender address (like hello@yourbrand.com), or the one chosen was deleted.
  • Fix: add and verify a sender under Engage → Email → Setup, then choose it in the campaign or the journey's Email step.
  • Who can fix it: an Owner or Admin adds senders; anyone who edits the campaign picks one.

"Save the template first"#

Also: "The template has never been saved", "The email template is missing or has never been saved", "Template not found".

  • Why: the template is new and was never saved, or was deleted.
  • Fix: open Engage → Email → Templates, save the template, then pick it again in the campaign or Email step.
  • Who can fix it: anyone who edits templates.

"Daily test send limit reached"#

  • Why: a workspace can send 100 test emails a day.
  • Fix: wait until tomorrow, or use the preview (desktop and phone) instead of a test send.

"Not suppressed, or suppressed after a spam complaint (those stay)"#

  • Where you see it: Engage → Email → Deliverability, when you remove an address from the suppression list.
  • Why: the address isn't suppressed, or it complained about spam. Complaints can't be removed.

Sending domain checks#

These show next to each DNS record on Engage → Email → Setup. See Email Setup for the records to add.

MessageWhat to do
"Not found yet (DNS changes can take up to a few hours)"Check the record was added at your domain provider exactly as shown, then wait and check again
"Points to {value} instead"The record exists with a different value. Edit it to the value LemuAI shows
"More than one SPF record; merge them into one"Keep one TXT record starting v=spf1 and put all includes in it
"SPF record doesn't include amazonses.com"Add include:amazonses.com to your SPF record
"MX record points somewhere else"The bounce subdomain's MX must point where LemuAI shows
"No DMARC record on your sending domain; Gmail and Yahoo may junk bulk mail"Add a TXT record at _dmarc.yourdomain.com, for example v=DMARC1; p=none;
"Couldn't reach DNS to check this; try again in a minute"Check again in a minute
"That's a public mailbox provider. Use a domain your business owns."Gmail, Yahoo and similar can't be senders. Use your company domain
"This domain is already added"It's already in the list; verify that one
"Enter a domain like mail.yourbrand.com"Type only the domain, no https:// or @
"Enter an email address like hello@yourbrand.com"Type a full address
"Add and verify {domain} first"Add the domain and finish its checks before adding a sender on it

Who can fix it: whoever manages your domain's DNS, with an Owner or Admin in LemuAI.

Journeys

Why a journey run is waiting, skipped a step or failed, and what each journey error message means.

https://docs.lemuai.com/troubleshooting/journeys

Messages are quoted exactly as LemuAI shows them. Parts that change are in braces. To see what happened to one person, open Insights → Runs → Journey Runs, find the run, and open it: each step shows when it ran and, if it waited, skipped or failed, the reason below.

A run is waiting#

Waiting isn't an error. The step runs again on its own when the reason clears.

"Outside the allowed hours for this channel"#

  • Why: each channel (calls, WhatsApp, email) has allowed hours in the journey, and it's outside them now. Journeys with Respect frequency caps turned off (order updates, OTPs) send WhatsApp and email at any hour; their calls still keep the window.
  • Fix: nothing, it sends when the window opens. To change the hours, open the journey, then its settings (Workflow Settings) → Allowed hours and Timezone.

"Waiting for credit on this channel's wallet"#

  • Why: the Email credits balance (for Email steps), the SMS credits balance (for SMS steps) or the WhatsApp balance (numbers bought through LemuAI) is empty.
  • Fix: Usage & Plan → Usage & balances → Add balance. The step continues on its own.
  • Who can fix it: an Owner, Admin or Finance member.

A Call step is waiting#

  • Why: all lines on your phone provider account are busy, so the call is queued. See "Every line on the provider account was in use" in Calls and telephony.

A step was skipped#

A skipped step doesn't send, and the run carries on to the next step.

"Frequency cap: {count} {channel} send(s) in the last {hours} hours"#

For example Frequency cap: 3 whatsapp send(s) in the last 24 hours.

  • Why: the contact already got the most marketing messages allowed on that channel in the period. Caps protect customers from too many messages.
  • Fix: nothing, or change the caps under Settings → Sending Limits. For order and account updates, turn off Respect frequency caps in the journey's Workflow Settings.
  • Who can fix it: an Owner or Admin for Sending Limits; anyone who edits the journey for its settings.

"Contact limit reached: the contact was added after the plan's limit; upgrade or add a contact pack to reach them"#

  • Why: your plan allows a set number of contacts. Contacts added after you passed it are held back from marketing once the grace period ends. Journeys that ignore frequency caps (order updates, OTPs) still send to them.
  • Fix: upgrade the plan or add a contact pack under Usage & Plan, or delete contacts you no longer need.
  • Who can fix it: an Owner, Admin or Finance member.

A step failed#

"The contact has opted out of calls"#

  • Why: the contact said no to calls, or to everything. LemuAI won't call them.
  • Fix: nothing; respect it. Use another channel they allow.

"The step timed out after {minutes} minutes"#

Also shown as stuck_run_timeout: {reason}, for example stuck_run_timeout: no free line within 60 min.

  • Why: a step waited longer than allowed: usually a Call step waiting for a free line.
  • Fix: see "no free line" in Calls and telephony. These runs stop; start them again if needed.

"cancelled: workflow paused or stopped"#

  • Why: someone paused or stopped the journey while this run was in it.
  • Fix: resume the journey to let new runs start. Cancelled runs don't continue.

"exited: {reason}"#

  • Why: the contact met the journey's exit rule or reached its goal (for example, they ordered), so the journey stopped for them. This is often what you want.
  • Fix: nothing, unless the exit rule is wrong: check the journey's goal and exit settings. See Journey goals.

"The journey came back to this step after it had finished for this contact. Connect only the send steps back to it."#

  • Where you see it: a Choose channel, time and offer step.
  • Why: an arrow loops back into this step from after it, so it would run twice for the same person.
  • Fix: in the journey editor, connect only the send steps (WhatsApp, Email, Call) back to it, not later steps.

"Wait for reply needs a contact (the journey has no phone number or contact)"#

Also: "Agent conversation needs a contact", "Assign to team needs a contact".

  • Why: the run isn't tied to a contact: the trigger didn't carry a phone number or contact.
  • Fix: make sure the trigger gives a contact (an event with the person's phone, a segment, a list), or that the earlier steps set one.

"The AI balance is used up. Add money to the AI wallet."#

Also: "The AI step didn't return the fields", "The AI step wrote nothing", "The AI step failed: {error}".

  • Why: the AI balance is empty, or the AI step gave no usable answer.
  • Fix: add AI balance under Usage & Plan → Usage & balances. For empty answers, make the AI step's instructions clearer and name the fields it must fill.

HTTP Request step#

MessageWhat to do
"HTTP node requires 'url'"Enter the full address, starting with https://
"Invalid URL: {details}"Fix the address; check variables in it have values
"Request timed out after {seconds}s"The other server was too slow. Check it, or raise the step's timeout
"Request failed: {details}"The other server couldn't be reached. Check the address and that it's online

Steps that aren't set up#

MessageStepWhat to do
"Choose an email template"EmailPick a template
"Add a sender in Email settings"EmailAdd a sender under Engage → Email → Setup
"Choose a catalog"Catalog lookupPick a catalog
"Choose the fields to change"Update record / Update ContactPick at least one field
"An A/B split needs at least two variants with a weight"A/B splitAdd two or more branches, each with a percentage
"schedule: delay must be positive (got 0 or negative)"Schedule Follow-upSet a delay above 0
"emit_event node requires 'event_name'"Emit EventEnter the event name
"call: 'agent_id' is required"CallChoose the voice agent
"call: 'phone_number' / 'phone_field' resolved to empty string"CallThe contact has no phone. Check the trigger or the phone field
"WhatsApp node requires a recipient (to / to_field)"WhatsAppSet who it goes to
"Slack node requires a channel", "Jira node requires a project_key", "Google Calendar node requires a summary"Slack, Jira, Google CalendarFill in the step's required fields
"No Slack integration connected for this org" (also Jira, Google Calendar)Slack, Jira, Google CalendarConnect it under Settings → Integrations

Starting a journey#

"Make the journey live first, then add the members"#

  • Where you see it: when you add people to a journey by hand.
  • Fix: press Go live on the journey, then add them.

"Only one-time journeys can be launched with go-live"#

  • Why: go-live with an audience is for journeys that run once for a segment, list or file. Journeys started by events or schedules run on their own.

"This journey doesn't start from a segment"#

  • Why: the action only applies to journeys whose trigger is a segment.

"CSV has no rows with a valid phone number"#

Also: "CSV file must have a header row and at least one data row", "None of those contacts exist", "This list has no contacts to call", "No records match (or every owner is opted out)".

  • Why: the audience you chose has nobody the journey can reach.
  • Fix: for a file, the first row must be column names and the phone column must have numbers with country code (+919876543210). For a list, segment or records, check it has people and that they haven't opted out.

"Journey {id} is not active (status: {status})"#

Also: "Workflow is {status} and cannot be triggered", "Trigger {id} is not active", "Webhook trigger not found or inactive".

  • Where you see it: in the answer to an API call or webhook that starts a journey.
  • Why: the journey is a draft or paused, or its trigger was turned off or removed.
  • Fix: make the journey live, check its trigger is on, and use the current webhook address from the trigger.

"Invalid webhook signature"#

  • Why: the request to the journey's webhook wasn't signed with its secret, or the body changed after signing.
  • Fix: sign the exact body with the trigger's secret as shown on the trigger. See Webhooks.

"You are not allowed to fire this trigger"#

  • Why: the API key or user doesn't belong to the journey's workspace.
  • Fix: use an API key from the same workspace (Settings → API Keys).

"Allowed hours: {details}"#

Also "Attribution window: {details}" and "Conversion events: {details}".

  • Where you see it: saving the journey's settings.
  • Fix: the details say which value is wrong, for example a start time after the end time. Correct it and save again.

Contacts and data

What import, contact, list, segment, custom record and catalog errors mean, and how to fix them.

https://docs.lemuai.com/troubleshooting/contacts-and-data

Messages are quoted exactly as LemuAI shows them. Parts that change are in braces.

Importing contacts#

Imports run from Audience → Contacts (a CSV or Excel file, or a Google Sheet). See Importing Contacts.

"Map a column to phone, email or external ID"#

Also: "No rows had a phone number or external_id to import contacts by".

  • Why: LemuAI finds each contact by phone, email or external ID (your own customer ID). No column is mapped to any of them, or those columns are empty.
  • Fix: on the mapping step, set the phone column to Phone (or email to Email, or your ID column to External ID). Phone numbers work best with country code: +919876543210.

"No phone, email or external ID"#

  • Where you see it: in the import result, next to rows that were left out.
  • Why: that row has none of the three filled in.
  • Fix: fill one in and import the file again. Rows already imported are updated, not duplicated.

"The file has {rows} rows; import at most 50,000 at a time"#

  • Fix: split the file into parts of 50,000 rows or fewer and import them one after another. To load more at once, use the Bulk Upsert Contacts API.

"Name the custom field for “{column}”"#

Also: "Unknown contact field “{field}” for “{column}”".

  • Why: a column is set to become a custom field but has no name, or it's mapped to a field that doesn't exist.
  • Fix: give the custom field a name (lowercase letters, numbers and underscores, like loyalty_tier), or map the column to an existing field, or skip it.

"Google Sheet must have a header row and at least one data row"#

Also: "Invalid Google Sheets URL: {url}", "Connect a Google Sheet first before adding another."

  • Fix: the first row must hold column names, with data from the second row. Paste the sheet's full address (https://docs.google.com/spreadsheets/d/…). See Google Sheets.

"Removed from the connected Google Sheet"#

  • Where you see it: on contacts that were in a list synced from a Google Sheet.
  • Why: their row was deleted from the sheet, so LemuAI took them out of the synced list and stopped journeys started for them from that sheet.
  • Fix: nothing, if the row was deleted on purpose. Otherwise put the row back; the next sync adds them again.

Contacts and lists#

MessageWhat it means and what to do
"At least one of 'phone' or 'external_id' is required"When adding a contact, give a phone (with country code) or an external ID
"A contact with this external_id already exists"Another contact already uses that ID. Search for it and update that one
"A list named '{name}' already exists"Pick another name, or add the people to the existing list
"Contact is not a member of this list"The contact was already removed from the list
"Contact not found", "Contact list not found"It was deleted, or belongs to another workspace. Reload the page
"You don't have permission to view contact phone numbers."Phone numbers are masked for your account. An Owner or Admin can turn on See unmasked contact phone numbers for you under Settings → Team

Segments#

MessageWhat to do
"At most 30 conditions in a segment"Combine rules, or use is in with a list of values instead of many separate rules
"{rule}: at most 500 values"An is in / is not in rule takes up to 500 comma-separated values. Split it or use a list
"{field} {operator}: a value is needed"Fill in the value box of that rule
"'{value}' isn't a number", "'{value}' isn't a whole number of {unit}"Type digits only, like 5000, without ₹ or commas
"'{value}' isn't a date (YYYY-MM-DD)"Use the date picker, or type a date like 2026-11-25
"{unit} must be between 1 and {most}"Use a time window inside the allowed range
"Calculated field '{name}' doesn't exist"The calculated field was renamed or deleted. Pick another in the rule
"Unknown contact field '{field}'"The field was removed. Pick another
"No record type called '{name}'"The custom record type was deleted or renamed. Edit the Has records (Custom records) rule
"Segment not found"It was deleted. Reload the page

Custom records and catalog#

Custom records (orders, loans, bookings) live under Audience → Custom records; catalogs under Audience → Catalog.

Importing or saving records#

MessageWhat to do
"Map a column to {key} (the record key)"Each record needs its key (for example order_id). Map that column
"{key} (the record key) is required", "The record key is empty"Fill in the key on every row
"The record key is longer than 255 characters"Shorten the key
"The record is larger than 16 KB"Remove long text or split the record
"At most 1000 records at once"Send records in batches of 1,000 or fewer
"At most 150 fields"Remove fields you don't use
"isn't a number", "isn't a date (YYYY-MM-DD or DD/MM/YYYY)", "isn't a date and time (ISO 8601)", "must be true or false", "must be an http(s) link", "must be text"A value doesn't match the field's type. Fix the value, or change the field's type on the Fields tab
"must be one of: {options}"A choice field got a value that isn't one of its options. Use an option, or add it on the Fields tab
"is longer than 2000 characters"Shorten the text
"Two columns map to {field}"Map each field from one column only
"The file has no column '{column}'"The column name changed. Pick the column again
"The file has no rows"Add data below the header row
"Your role can't add fields. Leave those columns out."Skip new columns, or ask an Owner or Admin to add the fields
"No contact {who} in this organization"The record's owner (phone, email or ID) isn't a contact. Add the contact first, or fix the value
"{type} is synced automatically; change it at the source"This type comes from an integration (for example Shopify). Change the data there
"{type} is archived"Restore the record type before adding records

Setting up a record type#

MessageWhat to do
"There is already a field called {name}"Use another name
"Field names must be unique: {names}"Two fields share a name. Rename one
"The key field must be text or a number"Pick a text or number field as the key
"The key field can't be archived"Pick another key first
"{field}: a choice field needs options"Add at least one option
"{field}: at most 100 options"Use a text field instead
"'{name}' is reserved; choose another API name"Use another API name

Filtering records#

MessageWhat to do
"{field}: operator '{op}' isn't supported for this field"Pick another operator for that field type
"join must be 'and' or 'or', not '{value}'"API only: each filter's join is "and" or "or"
"Unknown field '{name}'"The field was renamed or removed

Integrations

What Shopify, Google Sheets, Zoho Books, Slack, Jira, Google Calendar, Lemu Tickets, tool and tracking-source errors mean, and how to fix them.

https://docs.lemuai.com/troubleshooting/integrations

Messages are quoted exactly as LemuAI shows them. Parts that change are in braces. Integrations are connected under Settings → Integrations; connecting and disconnecting needs an Owner or Admin.

Connections#

"Connection is not active (status={status})"#

Also: "Google connection is not active (status={status}) -- reconnect it before adding another sheet.", not_connected.

  • Why: the connection to Google (or another service) expired, or someone removed LemuAI's access in that service.
  • Fix: open Settings → Integrations, find the integration and connect it again with the same account.
  • Who can fix it: an Owner or Admin.

"insufficient_permissions: {details}"#

  • Why: when you connected, some permissions LemuAI asks for were unticked.
  • Fix: connect again and allow every permission on the consent screen.

"No Slack integration connected for this org"#

Also for Jira and Google Calendar. And: "Slack: {error}", "Jira: {error}", "Google Calendar: {error}".

  • Where you see it: on a journey run, at a Slack, Jira or Google Calendar step.
  • Fix: connect the service under Settings → Integrations. If it's connected, the text after the name is the service's own reason, for example a Slack channel the app hasn't been added to.

Shopify#

MessageWhat to do
"A Shopify store is already connected. Disconnect it first."A workspace connects one store. Disconnect the current one under Settings → Integrations → Shopify first
"Events are only available for a store connected with Lemu's Shopify app or the store's own app"Reconnect the store with the LemuAI Shopify app. See Shopify
"Enter the app's client secret"When connecting with your store's own app, paste its client secret from the Shopify admin
"This integration has no store"Finish connecting, or reconnect
"Shopify: {message}"A journey's Shopify step was refused by Shopify; the message is Shopify's reason

Google Sheets and Zoho Books#

MessageWhat to do
"Connect a Google Sheet first before adding another."Connect the first sheet, then add more
"Google Sheet must have a header row and at least one data row"Put column names in row 1 and data from row 2
"Invalid Google Sheets URL: {url}"Paste the full address of the sheet
"This endpoint only supports Google Sheets integrations" (or Zoho Books)The action was used on the wrong integration. Reload the page and try from the right card

A Google Sheet step in a journey writes into a sheet. If it fails, check the sheet is still shared with the Google account you connected and the columns it writes to still exist.

Lemu Tickets#

MessageWhat to do
"Lemu Tickets is not connected."Connect it under Settings → Integrations
"Only an owner or admin can manage Lemu Tickets."Ask an Owner or Admin
"Lemu Tickets: {message}"The ticket system refused the request; the message says why
"Create ticket step requires a title", "Update ticket step needs a ticket key", "Add ticket comment step needs a comment"Fill in the journey step's required fields

Tools for voice agents#

Tools are under Voice Agents → Tools.

MessageWhat to do
"Pick one of your catalogs (under Catalog)."A catalog lookup tool needs a catalog. Create one under Audience → Catalog first
"A credential with the name '{name}' already exists"Use another name for the credential
"API Key credential requires 'header_name' and 'api_key' fields"Fill in both the header name (like X-API-Key) and the key
"Bearer Token credential requires 'token' field"Paste the token
"Basic Auth credential requires 'username' and 'password' fields"Fill in both

Tracking sources (website and app events)#

Tracking sources are under Settings → Tracking Sources. These errors come back to the website or app that sends events; open your browser's developer tools (Network tab) to see them.

MessageWhat to do
"Unknown or disabled write key"The key in your snippet or SDK is wrong, or the source was turned off. Copy the key again from the source
"Origin not allowed for this key"Add your site's address under the source's Allowed sites
"App not allowed for this key"Add your app's ID under the source's Allowed apps
"Too many requests"The site or app sent too many events in a minute. Send events for real actions only, not on every scroll or timer
"Payload too large"An event's properties are too big. Send IDs and key values, not whole pages or files
MessageWhat to do
"Give a full web address"Start the address with https://
"That address can't be used"The address points somewhere LemuAI can't link to. Use your public website address

Account, team and billing

What sign-in, invitation, team role, API key, plan, wallet and invoice messages mean, and how to fix them.

https://docs.lemuai.com/troubleshooting/account-and-billing

Messages are quoted exactly as LemuAI shows them. Parts that change are in braces.

Signing in#

MessageWhat to do
"Invalid email or password"Check the email. Use Forgot password? on the sign-in page to set a new password. If you signed up with Google, use the Google button instead
"This account does not use a password."You signed up with Google. Use the Google button on the sign-in page
"Email not verified. Check your inbox for the activation link, or request a new one."Open the activation email (check spam), or request a new link from the sign-in page
"This activation link has expired. Please sign in again."Sign in again to get a new link
"Verification link expired.", "Invalid verification link."Request a new link; open the newest email only
"Password reset link expired.", "Invalid password reset link."Request a new reset email and use the newest link
"Access pending approval."New accounts are reviewed by LemuAI. You'll get an email when you can sign in
"Email already registered"Sign in instead, or reset the password
"Current password is incorrect."Type your current password again, or sign out and use Forgot password?
"Password must be at least 8 characters", "Passwords do not match"Use 8 or more characters and type it the same twice
"Google sign-in failed. Try again.", "Google sign-in incomplete. Try again."Try again; allow pop-ups for app.lemuai.com
"This signup link expired. Sign in with Google again."Start sign-up again with Google

Who can fix it: you. If nothing works, email hello@lemuai.com from the address you sign in with.

Invitations and team#

Members are managed under Settings → Team by an Owner or Admin.

MessageWhat to do
"This invitation has expired."Ask the person who invited you to send a new invite
"This invitation is not valid."The invite was revoked or already used. Ask for a new one
"You already have an account — sign in and open the invite link."Sign in first, then open the invite link again
"Enter a valid email address."Check the address you're inviting
"Role must be one of: admin, member, editor, viewer, finance."Pick a role from the list. Owner is given by transferring ownership
"Only the current owner can transfer ownership."Ask the Owner
"Only the owner can change another admin's role.", "Only the owner can remove an admin."Ask the Owner
"Transfer ownership before removing the owner."The Owner first transfers ownership to someone else
"Use 'Leave organization' to remove yourself."Use Leave organization instead of removing yourself
"An organization needs at least one member."You're the last member, so you can't leave
"Only an owner or admin can do this."Ask an Owner or Admin

What each role can do#

RoleCan do
OwnerEverything, including transferring ownership
AdminEverything except transferring ownership
MemberAgents, journeys, contacts, campaigns, reports. No billing, setup or members
EditorAgents, journeys, contacts. No campaigns, billing, setup or members
ViewerDashboard and reports (read-only)
FinancePlans, invoices and paying. Nothing else

Phone numbers are masked unless you're an Owner or Admin, or have See unmasked contact phone numbers turned on under Settings → Team.

API keys#

MessageWhat to do
"Invalid API key" (status 401)Check the X-API-Key header holds a key from Settings → API Keys of the right workspace, and that the key isn't archived
"API key not found"The key was deleted. Create a new one
"Access denied" (status 403)The key belongs to another workspace than the agent or journey you're calling

See Authentication and API errors.

Plans, balances and invoices#

Plans, balances and invoices are under Usage & Plan. Paying needs an Owner, Admin or Finance member.

MessageWhat to do
"You're out of calling minutes. Add a talktime pack from Usage & Billing to resume calls."Usage & Plan → Usage & balances → Add balance (Voice minutes)
"No email credits left"Add Email credits the same way
"The AI balance is used up. Add money to the AI wallet."Add AI balance the same way
"Contact limit reached: the contact was added after the plan's limit; upgrade or add a contact pack to reach them"Upgrade the plan or add a contact pack under Usage & Plan
"That GSTIN doesn't look valid"Enter the 15-character GSTIN exactly as on your GST certificate, under Usage & Plan → Billing details
"Too many checkout attempts — try again later."Wait a few minutes before trying to pay again
"The payment was not completed."The payment didn't go through. Try again, or use another payment method. If money left your account, email LemuAI support with the time and amount
"Invoice not available yet"The invoice is made after payment is confirmed. Check again in a few minutes
"This proforma was cancelled"Ask LemuAI support for a new proforma
"Pick a plan first."Choose a plan before checkout

Who can fix it: an Owner, Admin or Finance member.