情感分析
情感分析是一项功能,可分析人工客服和最终用户的消息,以确定情绪意图。您可以在创建或修改对话配置文件期间启用此功能。如果您要修改现有对话配置文件,则只有在对话配置文件更新后才会在对话中看到效果。您也可以选择在使用 Agent Assist 控制台创建对话配置文件时启用情感分析。
- 在
MessageAnalysisConfig
中将 enableSentimentAnalysis
设置为 true
。
- 使用启用了此功能的
ConversationProfile
发送 createConversation
请求。
- 如果对话与人工客服相关,则无需进行进一步的设置。系统会在
AnalyzeContentResponse.message.sentimentAnalysis
中返回情感结果。
- 如果对话包含虚拟客服或聊天机器人,您必须启用其他设置才能在
AnalyzeContentResponse
中查看情感结果。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-02-17 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"很难理解"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"信息或代码不正确"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"没有我需要的信息/示例"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]