Skip to main content
Create your own Interactive Avatar Agent using the Perso Platform Context.

Get your API Key

Login to your Perso Platform account and create an API Key.
1

List the Resources

You’ll need a valid tts_type (voice) name and model_style (avatar) name for the next step. Replace PersoPlatform-APIKey with your own API Key.Fetch the list of options your account is allowed to use:
Example response:
Note the name values for the voice and avatar you want — use them when creating a context.
2

Create a Context

A context is the session template for your avatar agent. Replace PersoPlatform-APIKey with your own API Key.
Example Response:context_id is the public token you put on your website.
Note: context_id is the public token you put on your website.
3

Get the Embed Snippet

Instead of building the HTML yourself, ask the embed endpoint for ready-to-paste code. Use the context’s id (the UUID from the previous step) in the path — not the context_id.
Example response:
Copy iframe_snippet or script_snippet straight into your page.