The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral. For [DetectIntent][], it needs to be configured in DetectIntentRequest.query_params. For [StreamingDetectIntent][], it needs to be configured in StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it needs to be configured in ConversationProfile.human_agent_assistant_config
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eSentiment analysis evaluates user input to determine the prevailing opinion, classifying it as positive, negative, or neutral.\u003c/p\u003e\n"],["\u003cp\u003eSentiment analysis configuration is done through \u003ccode\u003equery_params\u003c/code\u003e for \u003ccode\u003eDetectIntent\u003c/code\u003e and \u003ccode\u003eStreamingDetectIntent\u003c/code\u003e, and through \u003ccode\u003eConversationProfile.human_agent_assistant_config\u003c/code\u003e for \u003ccode\u003eParticipants.AnalyzeContent\u003c/code\u003e and \u003ccode\u003eParticipants.StreamingAnalyzeContent\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation for sentiment analysis results includes a \u003ccode\u003equeryTextSentiment\u003c/code\u003e object containing sentiment information for the query text.\u003c/p\u003e\n"],["\u003cp\u003eSentiment is further broken down into \u003ccode\u003escore\u003c/code\u003e, which indicates sentiment polarity from -1.0 to 1.0, and \u003ccode\u003emagnitude\u003c/code\u003e, which shows the strength of sentiment on a scale from 0 to positive infinity.\u003c/p\u003e\n"]]],[],null,["# SentimentAnalysisResult\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Sentiment](#Sentiment)\n - [JSON representation](#Sentiment.SCHEMA_REPRESENTATION)\n\nThe result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral. For \\[DetectIntent\\]\\[\\], it needs to be configured in [DetectIntentRequest.query_params](/dialogflow/es/docs/reference/rest/v2/projects.agent.sessions/detectIntent#body.request_body.FIELDS.query_params). For \\[StreamingDetectIntent\\]\\[\\], it needs to be configured in `StreamingDetectIntentRequest.query_params`. And for [Participants.AnalyzeContent](/dialogflow/es/docs/reference/rest/v2/projects.conversations.participants/analyzeContent#google.cloud.dialogflow.v2.Participants.AnalyzeContent) and `Participants.StreamingAnalyzeContent`, it needs to be configured in [ConversationProfile.human_agent_assistant_config](/dialogflow/es/docs/reference/rest/v2/projects.conversationProfiles#ConversationProfile.FIELDS.human_agent_assistant_config)\n\nSentiment\n---------\n\nThe sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: \u003chttps://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values\u003e for how to interpret the result."]]