This topic describes best practices for generating summaries using Tongyi Xiaomi CCAI-AIO conversation analysis.
Scenarios
You can use the summary generation capabilities of Tongyi Xiaomi CCAI-AIO to automatically extract important information from documents, such as conversation summaries, titles, and keywords. This improves work efficiency and reduces manual processing costs.
Solution overview
You can generate summaries using Tongyi Xiaomi CCAI-AIO conversation analysis in just a few steps:
- Activate Alibaba Cloud Model Studio: First, activate the Alibaba Cloud Model Studio service. After the service is activated, you can test models in the Playground, call models, or use application services.
- Activate and create a Tongyi Xiaomi CCAI-AIO conversation analysis application: Create a conversation analysis application in Alibaba Cloud Model Studio and obtain the credentials required to call the application's API.
- Implement conversation analysis using the API: Install the software development kit (SDK), fill in the application information and conversation content for the API, and then generate a summary.
Solution architecture
Activate Alibaba Cloud Model Studio
To activate the Alibaba Cloud Model Studio service, see Product Activation.
Activate and create a Tongyi Xiaomi CCAI-AIO conversation analysis application
To activate Tongyi Xiaomi CCAI-AIO conversation analysis and create an application, see the User Guide.
Obtain an AccessKey ID and AccessKey secret
If you have not created an AccessKey ID and AccessKey secret, see Obtain an AccessKey and AgentKey.
If you use a RAM user to call the API, see Use a RAM user for Tongyi Xiaomi CCAI conversation analysis and grant permissions.
Obtain a Workspace ID and App ID
For more information, see Obtain an App ID and Workspace ID.
Install the SDK
- Java
<dependency><groupId>com.aliyun</groupId><artifactId>contactcenterai20240603</artifactId><version>3.6.4</version></dependency>
Code example
Replace YOUR_WORKSPACEID, YOUR_ACCESS_KEY_ID, YOUR_ACCESS_KEY_SECRET, and YOUR_APPID in the example with your actual workspace ID, AccessKey ID, AccessKey secret, and app ID to ensure that the code runs correctly. To prevent key leakage, you can set the AccessKey ID and AccessKey secret as environment variables.
- Synchronous non-streaming call