Create an interactive canvas
create_canvasCreate a state machine that drives the mascot from app events. Templates: chatbot (inputs listening/thinking/talking booleans + greet trigger), ai_agent (status number: 0 idle, 1 working, 2 waiting, 3 done, 4 failed), onboarding (hello/success/error triggers). Or pass a custom graph. Works on clip mascots too: states play its clips (a template's working → think, listen → idle); if the canvas plays clips the character doesn't have, the error names them, make them with create_clip (60 credits each) and try again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| graph | No | ||
| template | No |