Skip to content

AI assistant ​

Who: listener or creator (studio conversations); system (reply job, maintenance).

Entry points ​

KindEntry
RESTGET /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 /assistantmessage:send, message:cancel, voice:send; server → reply:started, reply:streamed, reply:working, action:proposed, reply:completed, reply:failed
Deep linknone (cards carry their own targets; open_screen cards use registry screens)

Flow ​

  1. POST /assistant/conversations { studioProfileId? }.
  2. Text: message:send { conversationId, content } → ack { userMessage, reply } (reply pending). Voice: voice:send { audioBase64 } → bytes sniffed, ≤ 30 s → speech-to-text, then the same path; low confidence asks to confirm.
  3. 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.reply job.
  4. Streams reply:streamed chunks (redacted), reply:working, action:proposed (play/queue controls or confirmation cards: save playlist, follow, like, buy, subscribe, tip, open screen), then reply:completed. Event assistant.reply.completed; refusals assistant.policy.refused.
  5. 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.
  6. Optional speech: POST /assistant/messages/:id/speech (text-to-speech).
  7. assistant.maintenance fails stuck replies and prunes.

Exit states ​

StateCodeActionsClient next
Completed——Render content and actions
Refusedmessage status: refused, finishReason: policy—Show the fixed reply
QuotaASSISTANT_QUOTA_EXCEEDEDsubscribe, wait—
BusyASSISTANT_REPLY_IN_PROGRESSwait—
DuplicateASSISTANT_DUPLICATE_MESSAGE—Ignore
AudioASSISTANT_AUDIO_INVALID, ASSISTANT_AUDIO_UNCLEAR (retry), ASSISTANT_VOICE_UNAVAILABLE (retry)as listed—
ProviderASSISTANT_PROVIDER_UNAVAILABLEretry—
StudioASSISTANT_STUDIO_FORBIDDEN——
Not foundASSISTANT_CONVERSATION_NOT_FOUND, ASSISTANT_MESSAGE_NOT_FOUND, ASSISTANT_ACTION_NOT_FOUND——

Known gaps ​

  • Public play counts are null in song info and there are no release or viral charts for its tools (M12).

Plemuz API v2