Connect your agent

Updated

Start your agent in Agent Studio from your app using the Conversational AI Platform API.

Preview documentation

You're reading the Conversational AI Platform (Preview) docs. Switch to Main.

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:

Get your connection details

To get the details your backend needs:

  1. In the navigation sidebar, select Agents, then select your agent.

  2. On the agent's overview page, copy the agent ID from the header.

  3. Get your project's App ID using the Agora CLI.

  4. Choose how to authenticate your API requests:

    MethodWhat you need
    TokenA 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 authYour 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