@makingchatbots/genesys-cloud-mcp-server
Version:
A Model Context Protocol (MCP) server exposing Genesys Cloud tools for LLMs, including sentiment analysis, conversation search, topic detection and more.
14 lines (13 loc) • 378 B
JavaScript
export function interpretSentiment(score) {
if (score === undefined)
return "Unknown";
if (score > 55)
return "Positive";
if (score >= 20 && score <= 55)
return "Slightly Positive";
if (score > -20 && score < 20)
return "Neutral";
if (score >= -55 && score <= -20)
return "Slightly Negative";
return "Negative";
}