Appearance
AI assistant
Who: listener or creator (studio conversations); system (reply job, maintenance).
Entry points
| Kind | Entry |
|---|---|
| REST | GET /assistant/usage, GET/POST /assistant/conversations, GET/PATCH/DELETE /assistant/conversations/:id, GET/POST /assistant/conversations/:id/messages, POST /assistant/conversations/:id/voice, POST /assistant/messages/:id/cancel, /feedback, /speech, POST /assistant/actions/:id/outcome |
Socket /assistant | message:send, message:cancel, voice:send; server → reply:started, reply:streamed, reply:working, action:proposed, reply:completed, reply:failed |
| Deep link | none (cards carry their own targets; open_screen cards use registry screens) |
Flow
POST /assistant/conversations { studioProfileId? }.- Text:
message:send { conversationId, content }→ ack{ userMessage, reply }(replypending). Voice:voice:send { audioBase64 }→ bytes sniffed, ≤ 30 s → speech-to-text, then the same path; low confidence asks to confirm. - Policy check first (fixed refusal, no model call); quota taken; planner picks a sub-agent; router picks a model; tool loop with step, time and cost budgets. Runs on the
assistant.replyjob. - Streams
reply:streamedchunks (redacted),reply:working,action:proposed(play/queue controls or confirmation cards: save playlist, follow, like, buy, subscribe, tip, open screen), thenreply:completed. Eventassistant.reply.completed; refusalsassistant.policy.refused. - The client runs a playback action or shows a card; the person confirms, the client calls the normal REST route, then reports
POST /assistant/actions/:id/outcome. - Optional speech:
POST /assistant/messages/:id/speech(text-to-speech). assistant.maintenancefails stuck replies and prunes.
Exit states
| State | Code | Actions | Client next |
|---|---|---|---|
| Completed | — | — | Render content and actions |
| Refused | message status: refused, finishReason: policy | — | Show the fixed reply |
| Quota | ASSISTANT_QUOTA_EXCEEDED | subscribe, wait | — |
| Busy | ASSISTANT_REPLY_IN_PROGRESS | wait | — |
| Duplicate | ASSISTANT_DUPLICATE_MESSAGE | — | Ignore |
| Audio | ASSISTANT_AUDIO_INVALID, ASSISTANT_AUDIO_UNCLEAR (retry), ASSISTANT_VOICE_UNAVAILABLE (retry) | as listed | — |
| Provider | ASSISTANT_PROVIDER_UNAVAILABLE | retry | — |
| Studio | ASSISTANT_STUDIO_FORBIDDEN | — | — |
| Not found | ASSISTANT_CONVERSATION_NOT_FOUND, ASSISTANT_MESSAGE_NOT_FOUND, ASSISTANT_ACTION_NOT_FOUND | — | — |
Known gaps
- Public play counts are
nullin song info and there are no release or viral charts for its tools (M12).