This topic describes how to configure the Sentiment/Topic Classification component, which assigns custom emotion or topic tags to text and must be used in conjunction with Alibaba Cloud Model Studio.
Component information
Icon | Name |
| Sentiment/Topic Classification |
Preparations
Go to the canvas page of an existing flow or a new flow.
Go to the canvas page of an existing flow.
Log on to the . Choose Chat Flow > Flow Management. Click the name of the flow that you want to edit. The canvas page of the flow appears.

Create a new flow to go to the canvas page. For more information, see Create a flow.
Procedure
Click the Sentiment/Topic Classification icon on the canvas to view the configurations on the right.

Configure the component. For more information, see Parameters.
Click Save in the upper-right corner. In the message that appears, click Save.

Parameters
Parameter | Description | Example |
Model Settings | An API key is required. For more information, see Make your first API call to Qwen. |
|
Input Settings | Enter the input variable or text. |
|
Classification Settings | Customize multiple emotion categories or use the default classifications, and configure different flow settings through multi-branch configurations. |
|
Multi-branching Settings | Choose whether to enable multi-branch configurations. After enabling, you can add components to different emotion branches on the canvas for specific configurations. |
|
Output Settings | Output the detected emotion as a variable. |
|




