Enrich Salesforce cases with Watson sentiment analysis

CRMMarketingBotsArtificial IntelligenceRecipe Tools

What it does

When a case is created or updated in Salesforce with a status of New, this automation searches for the related account and case creator. It analyzes the case content in Watson Tone Analyzer and posts the results to Slack so the team understands customer sentiment.

Who it's for

Customer support teams who want to understand customer emotion in cases without leaving Slack.

How teams use this

Spot high-emotion cases in Slack

Support agents see case details and tone analysis posted to a Slack channel when a new case arrives, so they can prioritize cases with strong emotions before opening Salesforce.

Route cases by emotion to specialists

Extend this automation to check the emotion score and route cases with anger or frustration to senior agents. Only cases above the confidence threshold are routed.

Track sentiment trends across accounts

Add a logging step to store each case emotion result and account identifier in a data warehouse so the team can see which accounts generate the most negative sentiment over time.

How it works

  1. Monitor for new or updated cases. When a case is created or updated in Salesforce with a status of New, this automation starts right away.
  2. Look up the account and creator. Search Salesforce for the account attached to the case and retrieve details about the person who created it.
  3. Analyze case content for tone. Send the case content to Watson Tone Analyzer to detect emotions and identify which tones have a confidence score above 0.1.
  4. Post case and analysis to Slack. Reply in Slack with the case details, account information, case creator, and the dominant emotion tones Watson detected.