1. Prepare a consistent set of images
White top and pink skirt | Floral dress | Navy dress |
2. Register the looks at session creation
This is a configuration fragment. Mergevisual into the same avatar in your creation request, preserving its avatar_id, instructions, and voice settings. With several images, use default_source_image_id to choose the opening look. See Quickstart for a complete creation request.
3. Switch when the user chooses a look
Send this event through the current session’s control WebSocket:event_id for each request and show a switching state. session.updated confirms acceptance. Wait for session.update.done and match request_event_id to this request.
completed, end the waiting state and inspect the new look in the video. On cancelled, the request did not complete and may have been superseded. On failed, show the failure and investigate its reason or error details. Let the result drive the selector state instead of announcing success as soon as a button is pressed.
4. Use the same pattern elsewhere
- Locations: move between prepared indoor, street, and stage images.
- Framing: offer a conversational portrait and a full-body performance view.
- Virtual try-on: map a product card to its prepared outfit image and keep the UI selection in sync.
session.update, and the result returns to the conversation. Prepared table-supported and held images can also provide explicit product-support states; see Object interaction.