Your robot does the hearing and the speaking: it turns speech into text, sends it here, and says the reply with its own voice. Lumi gives back a short spoken line and a face for its screen or motors. The robot is the owner’s own Lumi, with the same memory and lists as their chat.
Request
| Field | Type | |
|---|---|---|
text |
string, required | What the robot heard, up to 4,000 characters. |
robot.name |
string | Its name, up to 24 characters. Without one, the name given to the key (Settings › Keys, Robot or device) is used. |
robot.body |
string | What it is like, up to 200 characters: “a round screen, two arms, wheels”. Lumi takes it into account. |
{
"text": "Good morning!",
"robot": { "name": "Bolt", "body": "a round screen, two arms, wheels" }
}
Response
{ "reply": "Morning! You've got a run planned at 7.", "face": "happy", "mood": "happy" }
| Field | |
|---|---|
reply |
Plain sentences to say aloud, about two short ones: no lists, links or Markdown. |
face |
Always present: one of the faces below. |
mood |
Lumi’s own mood word, or "". |
choices, busy, wait, id, need |
As in Chat. |
When the answer needs the person (an OK, a password, a step by hand), Lumi sends a notification to their phone and the response has wait: true with need.where: "phone". Your robot can say so, then ask for the answer later. See Long jobs.
Faces
face is one of these 27 words. Treat a word you don’t know as neutral; more may be added.
| Calm | neutral smile listen think bored sleepy yawn |
| Glad | happy bliss love excited laugh proud relieved wink |
| Surprised or unsure | surprised curious confused dizzy shy worried scared |
| Upset | sad cry angry annoyed determined |
How the face is chosen
No model is asked for it.
- Lumi’s own mood now, when it has one. For example
sleepyduring the person’s sleeping hours,sadafter two days without a word from them, orsmilethe day after a warm day of talk. - Otherwise a word in the reply. The first row that matches wins; with no match the face is
smile.
| A word in the reply | face |
|---|---|
| congrats, awesome, 축하, 대박 | excited |
| thank, 고마워 | love |
| haha, ㅋㅋ | laugh |
| careful, 걱정 | worried |
| sorry, 미안 | sad |
| relieved, 다행 | relieved |
| not sure, 글쎄 | confused |
| done, added, opened, 했어요 | proud |
Credits
Each answer is paid from the owner’s Lumi credits. With their own AI key, the model’s part costs nothing, but the robot API still needs credits left: when they run out it answers 402 no_credits.
Microphone and speaker boards
A xiaozhi-compatible ESP32 board with a microphone and a speaker doesn’t need this API: it talks to Lumi by voice on its own. See Devices.