<h2>Sentiment Analysis action</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2026" /><meta name="DC.rights.owner" content="(C) Copyright 2026" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="reference" /><meta name="DC.title" content="Sentiment Analysis action" /><meta name="abstract" content="Use the Sentiment Analysis action with Workflow Studio and Virtual Agent to detect the sentiment of your users from their input." /><meta name="description" content="Use the Sentiment Analysis action with Workflow Studio and Virtual Agent to detect the sentiment of your users from their input." /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-07-11T16:55:39-04:00" /><meta name="DC.date.modified" content="2025-01-30" /><meta name="page-type" content="ai-now-assist" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="sentiment-analysis-action" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Sentiment Analysis action</title></head><body id="sentiment-analysis-action"> <h1 class="title topictitle1" id="ariaid-title1">Sentiment Analysis action</h1> <div class="body refbody"><p class="shortdesc">Use the Sentiment Analysis action with <span class="ph">Workflow Studio</span> and <span class="ph">Virtual Agent</span> to detect the sentiment of your users from their input.</p> <div class="section"><h2 class="title sectiontitle">Fields</h2> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" class="table" frame="border" border="1" rules="all"><colgroup><col style="width:17.98561151079137%" /><col style="width:82.01438848920863%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d176497e65">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d176497e68">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d176497e65 ">Utterance</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d176497e68 ">Text to analyze for user sentiment.</td></tr></tbody></table> </div> </div> <div class="section"><h2 class="title sectiontitle">Inputs</h2> <p class="p inputs-description" id="sentiment-analysis-action__inputs-description">Provide a value for each input that your flow needs. To add dynamic values, you can also drag pills from the Data panel or select them from the pill picker.</p> <dl class="dl"> <dt class="dt dlterm">Utterance</dt> <dd class="dd"><span class="ph flow-designer-input-output">Data type: <span class="keyword parmname">String</span></span> <p class="p flow-designer-input-output">User-generated text to analyze the sentiment. You can enter text directly or use pills from the Data panel.</p> </dd> </dl> </div> <div class="section" id="sentiment-analysis-action__section_ldx_pyb_pmb"><h2 class="title sectiontitle">Outputs</h2> <p class="p outputs-description" id="sentiment-analysis-action__outputs-description">These outputs appear in the Data panel. You can use them as inputs elsewhere in your flow.</p> <dl class="dl"> <dt class="dt dlterm">Response</dt> <dd class="dd"><span class="ph flow-designer-input-output">Data type: <span class="keyword parmname">String</span></span> <p class="p flow-designer-input-output">Content generated by the AI model.</p> </dd> <dt class="dt dlterm">Provider</dt> <dd class="dd"><span class="ph flow-designer-input-output">Data type: <span class="keyword parmname">String</span></span> <p class="p flow-designer-input-output">Name of the AI model that generated the response.</p> </dd> <dt class="dt dlterm">Action Status</dt> <dd class="dd"><span class="ph flow-designer-input-output">Data type: <span class="keyword parmname">String</span></span> <p class="p flow-designer-input-output">Details about the success of the action.</p> </dd> </dl> </div> </div> </body></html></div>