Core Concepts · 3 min read
How Lemu Works
The big picture, from your customer data to a call, message or email and its result
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
Dashboard / your app triggers a call
- 2
Telephony provider dials the contact
- 3
Audio streams to Lemu
- 4
STT → LLM → TTS on every turn
- 5
Extract context, fire webhooks
- 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:
- Lemu instructs your telephony provider to dial the number
- When the caller answers, a real-time audio pipeline opens
- The caller's speech is transcribed by the STT provider
- The transcript is sent to the LLM with the active node's prompt and conversation history
- The LLM responds, and the response is synthesized to audio by the TTS provider and streamed to the caller
- When an edge condition is met, Lemu transitions to the next node
- When an end node is reached, the call ends
- Post-call: context is extracted, webhooks fire, the run record is saved
Next steps#
Was this page helpful?
Docs