Beberapa produk dan fitur sedang dalam proses penggantian nama. Fitur playbook dan alur generatif juga dimigrasikan ke satu konsol gabungan. Lihat detailnya.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Analisis sentimen memeriksa input pengguna akhir
dan mengidentifikasi pendapat subjektif yang berlaku,
terutama untuk menentukan sikap pengguna akhir sebagai
positif, negatif, atau netral.
Saat membuat permintaan deteksi intent,
Anda dapat menentukan bahwa analisis sentimen akan dilakukan,
dan respons akan berisi nilai analisis sentimen.
Bahasa yang didukung
Untuk mengetahui daftar bahasa yang didukung, lihat kolom sentimen di
referensi bahasa.
Jika Anda meminta analisis sentimen untuk bahasa yang tidak didukung,
permintaan deteksi intent Anda tidak akan gagal,
tetapi kolom QueryResult.diagnostic_info berisi informasi error.
Mendeteksi intent
Dengan menggunakan API, Anda dapat meminta analisis sentimen untuk setiap
panggilan detectIntent atau streamingDetectIntent
dengan menetapkan kolom analyzeQueryTextSentiment ke benar (true).
Respons berisi kolom sentimentAnalysisResult
dengan nilai score dan magnitude.
Menggunakan sentimen dalam kondisi
Anda dapat menggunakan hasil analisis sentimen melalui parameter cakupan permintaan saat menentukan kondisi.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 UTC."],[[["\u003cp\u003eSentiment analysis evaluates user input to discern the dominant subjective opinion, categorizing it as positive, negative, or neutral.\u003c/p\u003e\n"],["\u003cp\u003eSentiment analysis can be requested with each \u003ccode\u003edetectIntent\u003c/code\u003e or \u003ccode\u003estreamingDetectIntent\u003c/code\u003e call through the API by setting \u003ccode\u003eanalyzeQueryTextSentiment\u003c/code\u003e to true, resulting in a \u003ccode\u003esentimentAnalysisResult\u003c/code\u003e in the response.\u003c/p\u003e\n"],["\u003cp\u003eSentiment analysis is not supported in all languages, though a request will not fail if an unsupported language is used, error details will be added to the \u003ccode\u003eQueryResult.diagnostic_info\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eSentiment analysis results can be used in conditions via request-scoped parameters, and can also be enabled for use in the simulator.\u003c/p\u003e\n"]]],[],null,["# Sentiment analysis inspects end-user input\nand identifies the prevailing subjective opinion,\nespecially to determine an end-user's attitude as\npositive, negative, or neutral.\nWhen making a detect intent request,\nyou can specify that sentiment analysis be performed,\nand the response will contain sentiment analysis values.\n\nSupported languages\n-------------------\n\nFor a list of supported languages, see the **sentiment** column on the\n[language reference](/dialogflow/cx/docs/reference/language).\nIf you request sentiment analysis for an unsupported language,\nyour detect intent request does not fail,\nbut the `QueryResult.diagnostic_info` field contains error information.\n\nDetect intent\n-------------\n\nUsing the API, you can request sentiment analysis for each\n`detectIntent` or `streamingDetectIntent` call\nby setting the `analyzeQueryTextSentiment` field to true.\nThe response contains a `sentimentAnalysisResult` field\nwith `score` and `magnitude` values.\n\nUsing sentiment in conditions\n-----------------------------\n\nYou can use sentiment analysis results via the request-scoped parameters when defining a condition.\n\nFor more information, see the [sentiment analysis parameters descriptions](/dialogflow/cx/docs/concept/parameter#request-scoped-sentiment), and\n[Conditions reference](/dialogflow/cx/docs/reference/condition#request-scoped) for how the parameters can be used in conditions.\n\nUsing sentiment in the simulator\n--------------------------------\n\nYou can enable sentiment analysis when using the\n[simulator](/dialogflow/cx/docs/concept/console#simulator-settings)."]]