All Products
Search
Document Center

Intelligent Media Services:Best practices

Last Updated:May 16, 2025

This topic helps you quickly understand the best practices for two types of intelligent agents in AI real-time interaction.

Best practices for audio and video calls

Core capability

Best practice

Description

Agent integration

Quickly integrate an agent with one piece of code

Quickly test an agent without deploying a server.

Agent avatar animation

How to implement agent avatar animations

Customize agent avatar animations.

Agent startup

How to initiate agent calls through server-side interfaces

How to initiate agent calls using server-side OpenAPI.

How to implement agent Q&A startup

Implement an agent that directly answers user questions without outputting a welcome message at startup.

Call interruption prevention

How to prevent interruptions during agent announcements in calls

Use prompts to control large language model output to prevent the agent from being interrupted by users.

Emotion detection

How to implement emotion detection and generation for agents

Implement emotion detection and generation for agents.

Human takeover

How to implement human customer service takeover of an agent

Implement human customer service takeover of an agent.

Chat history

How to implement conversation memory

Use conversation history to achieve more coherent, context-sensitive conversations.

How to implement data archiving

Implement user data archiving by obtaining text chat records or audio files.

How to obtain audio PCM data

Obtain audio PCM data by calling the AICallKit SDK.

Parameter passing

Pass business parameters to Alibaba Cloud Model Studio large language model

Pass business parameters to the Alibaba Cloud Model Studio large language model.

Server-side active sending

How to input text as large language model input

Input text as large language model (LLM) input content by calling interfaces.

How to actively send custom messages to clients

How to actively send custom messages to clients.

How to perform voice announcements

Actively input text for voice announcements.

Best practices for message conversations

Core capability

Best practice

Description

Chat history

How to obtain historical chat records

Message conversation records filter interaction with audio and video call records.

Server-side active sending

How to actively send custom messages to clients

How to actively send custom messages to clients.