Skip to content

Overall Flow

AI Chat integration involves the application server, the device, and the Tange platform. Before integration, the application server must obtain a role_id by creating and publishing a role in the AI Talk Console, or by using OpenAPI to create a custom role or query the role list. The application server then requests connection credentials and sends them to the device. The device uses those credentials to connect, start a session, exchange audio, and handle events.

AI Chat overall flow

role_id is required and comes from the console role configuration, or from roles created or queried through OpenAPI. See the Apifox documentation for role creation and list APIs. Do not generate peer_id on the device, and never put server signing secrets on the device.

AI Chat