Connect your agent
Updated
Start your agent in Agent Studio from your app using the Conversational AI Platform API.
Preview documentation
To connect your app users to a Conversational AI Platform agent, use the Agora RTC SDK to join an RTC channel, then start a session from your backend using the Platform API or SDKs.
Prerequisites
Before you begin, make sure that you have:
- A deployed API agent. See Deploy the agent.
- An app that joins an RTC channel. See Create an agent and start a session.
Get your connection details
To get the details your backend needs:
-
In the navigation sidebar, select Agents, then select your agent.
-
On the agent's overview page, copy the agent ID from the header.
-
Get your project's App ID using the Agora CLI.
-
Choose how to authenticate your API requests:
Method What you need Token A token built with your App ID and App Certificate. The token must include the ConvoAI service. To start a session in an RTC channel, it must also include the RTC service. Basic auth Your Customer ID and Customer Secret. For details, see Authentication.
Start a session
To start a session, send your agent ID with the channel details. For examples in Python, TypeScript, Go, and REST, see Start a session.
Next steps
- Personalize conversations: Pass variable values for each session.
- Platform REST API: See the full API reference.
- Agent overview: Monitor your agent's sessions.
