In AI real-time interaction, AI agents are human-like virtual users that interact with end users. You can create an AI agent and integrate it into your application. The agent performs tasks based on the defined workflow. This topic describes how to create and manage AI agents.
Create an AI agent in the console
Log on to the Intelligent Media Services (IMS) console. In the left-side navigation pane, choose Intelligent Production > AI Real-time Interaction > AI Agents. Click Create AI Agent.
NoteThe region where the agent is created is displayed in the upper right corner. You must call the service in the same region.
Configure the basic Information.
Configure the workflow.
Associate the agent with a real-time workflow. The agent will run according to the workflow.
Select an ApsaraVideo Real-time Communication (ARTC) application within your account. If no ARTC applications are available, create one.
NoteThe ARTC application acts as a communication bridge, ensuring the proper functioning of the conversation features.
If the workflow you selected is audio call, you can upload an avatar for the agent.
Click Submit.
Configure callbacks
After the agent is created, go to its details page. On the Callback Configurations tab, click Enable.
On the right-side panel, set up the Callback URL, Authentication Token, and User Sentence Callback.
Callback URL: The callback message will be sent to the specified address to inform you of the latest status of the agent. For details, see Parameters in callback message body.
Authentication Token: The token for identity verification and authorized access. You can obtain the token from the
Authorization
field in the header.User Sentence Callback: When enabled, the callback is triggered each time the user completes a sentence. The user-generated audio files will be stored in WAV format in Object Storage Service (OSS)
Click OK.
Try an AI agent
On the AI Agents page, find the one you want to try and click QR Code for Demo in the Actions column.
Set up the validity period and click Generate.
There are three ways to test the agent:
Use the demo mobile application to scan the QR code on the left.
Use DingTalk, WeChat, or a browser application to scan the QR code on the right.
Copy the URL for trial on HTML5 page and paste it in a browser.
Modify or delete an AI agent
View all agents on the AI Agents page.
Modify: Click Manage in the Actions column. Modify the agent information and callback configurations as needed.
Delete: Click Delete in the Actions column. Agents cannot be deleted while they are in use.
Integrate an AI agent
To integrate an AI agent, see Developer guide.
View usage statistics
Go to the Usage Statistics page to view the usage time of AI real-time interaction.