Discussions

Ask a Question
Back to All

MESSEGE TO AGENT

I aim to create an interactive agent that can respond to user queries with video responses in a 9:16 format. The agent has already been created, and I need to ensure that the video responses match the format of the initial idle video loop.

Specific Questions
Talks vs. Clips:

Should I be using the Talks API or the Clips API to generate the video responses in the 9:16 format?
What are the specific differences and use cases for each API in this context?
Presenter ID:

If the agent is already created, where should I obtain the presenter_id from?
Is it correct to use agentData.id as the presenter_id, or is there another field that I should be referencing?
Video Format:

How can I ensure that the video responses are generated in a 9:16 format to match the idle video loop?
Current Code Implementation
I am using the following steps to create the chat and video responses:

Fetch agent data.
Create WebRTC stream.
Start WebRTC stream.
Send message to chat.
Create talk with video response.
Despite following the documentation, the videos are still generated in a 4:3 format. I would appreciate your guidance on how to achieve the desired 9:16 format.

Thank you for your assistance.