Configure
Get the App ID and API Key from Apps (Developer → API Key) and the Avatar ID from the Avatar Library. Keep the Spatius API Key and Agora App Certificate in the TEN environment.agora_token or agora_appcert. Keep the App Certificate on the backend, give the avatar publisher its own UID, and match sample_rate to the TTS output. See Regions for optional region values.
Wire the graph
Placespatius_avatar_python after the component that produces final avatar speech audio.
The extension and every client must join the same Agora channel. Give the avatar publisher, conversational agent, and each client a different UID. Generate client RTC tokens on your backend; never put the Agora App Certificate in the app.

