Service Cloud

How to Detect the Sentiment of Your Customers on Cases in Salesforce Using OpenAI

Here is a step-by-step guide on how to analyze the sentiment of your customers on cases in Salesforce.

Detect the Sentiment of Customers on Cases in Salesforce

Traditionally when a customer logs a case with the company, we have used different factors to route the cases to different support queues for resolution. Like using customer tier, customer lifetime value, their support entitlement, the nature/type/category of the case or language, geographical location etc.

One of the critical factors that have been missing is detecting the sentiment of the customer on that case. Like are they happy, angry or frustrated about your product or services?

But why is it important to detect customers sentiments?

It is important because it provides valuable insights into how customers feel about their experience with the business. By analyzing customer sentiment, businesses can better understand their customers’ needs, preferences, and pain points, and use that information to improve their products, services, and overall customer experience.

Detecting customer sentiment can also help businesses identify potential issues or trends that may be affecting multiple customers, allowing them to proactively address those issues before they escalate. Additionally, analyzing customer sentiment can help businesses identify and prioritize which cases need to be handled urgently and which ones can wait, which can improve overall efficiency and customer satisfaction.

And why is it important to prioritize handling of unhappy customers?

Unhappy customers are at a higher risk of churning or leaving your business. Studies have also shown that unhappy customers are more likely to share their negative experiences with others and leave negative reviews online, which can harm your business’s reputation and ultimately impact your bottom line.

By prioritizing unhappy customer cases, you can address their concerns and complaints in a timely and effective manner, potentially preventing them from leaving your business and even turning them into loyal customers. Additionally, addressing unhappy customer cases first shows that you value your customers and are committed to providing excellent customer service, which can help build trust and loyalty with your customer base.

How do I detect sentiments?

In the past, it was challenging for computer systems to comprehend human emotions. However, thanks to the latest advancements in AI technology, particularly in generative AI, detecting a customer’s sentiment when they log a case has become much simpler than before.

By analyzing the customer’s tone and language, it is now possible to identify if they are unhappy, angry, or frustrated. Consequently, such cases can be fast-tracked and directed to more experienced personnel who can handle them more effectively.

Here is a step-by-step guide on how to do this on a Case in Salesforce Using OpenAI

It’s time to put words into action and learn something super cool. Follow these step-by-step instructions to use OpenAI, the company behind ChatGPT, to detect the sentiment of cases created in Salesforce. Knowing the sentiment will enable you to use Salesforce’s native features to route the cases, monitor their progress, and ensure timely and effective resolution. It won’t take more than 30-40 minutes for you to get this working end-to-end in your Salesforce org.

This will help you get started. Once you get the idea of how this is done, it will be up to your imagination and creativity on how you can marry these two technologies to achieve amazing results for your business. Enjoy!

Here is what we will be covering in this guide, step-by-step:

  1. Register with OpenAI & Get API Key
  2. Prework
  3. Create Permission Set
  4. Create External Credential
  5. Create Named Credential
  6. Create Apex Class
  7. Create Screen Flow
  8. Deploy & Test the Flow

References & Useful URLs

#SalesforceSpring23 – Prevent Duplicate Cases with Lightning Threading in Email-To-Case

#1MinuteTip #SalesforceSpring23 Lightning threading is a new Email-to-Case threading approach that matches incoming emails to cases using a combination of token- and header-based threading. This approach helps Email-to-Case find corresponding cases so that a new case isn’t created when a related case exists.

Product Area: Service Cloud -> Cases

Lightning Threading in Email-To-Case

References & Useful URLs

  • For Related Spring ’23 Release Note Article – Click Here

Want to Receive these Tips in your Inbox?

Finding it overwhelming to keep pace with Salesforce’s new release features? Try our “1 Day 1 Tip 1 Minute” emails, where you are going to get 1 tip every day that won’t take more than a minute to read. To find out more and subscribe please click here.

#SalesforceSpring23 – Send Case Related Emails Through Your Email Server

#1MinuteTip #SalesforceSpring23 Allow your authorized Gmail or Outlook account to send case-related emails instead of using Salesforce email services. With this configuration, you can apply email filters or rules so that outbound emails comply with your business practices and email policies.

Product Area: Service Cloud -> Cases

Send Case Related Emails Through Your Email Server

References & Useful URLs

  • For Related Spring ’23 Release Note Article – Click here

Want to Receive these Tips in your Inbox?

Finding it overwhelming to keep pace with Salesforce’s new release features? Try our “1 Day 1 Tip 1 Minute” emails, where you are going to get 1 tip every day that won’t take more than a minute to read. To find out more and subscribe please click here.

#SalesforceSpring23 – Case Email – Reply with New Content Only

#1MinuteTip #SalesforceSpring23 Start every reply with a blank email. Compose replies with only new content, automatically removing the previous email history – reducing the size of email and ensuring the reply isn’t lost.

Product Area: Service Cloud -> Cases

Case Email - Reply with New Content Only

References & Useful URLs

Want to Receive these Tips in your Inbox?

Finding it overwhelming to keep pace with Salesforce’s new release features? Try our “1 Day 1 Tip 1 Minute” emails, where you are going to get 1 tip every day that won’t take more than a minute to read. To find out more and subscribe please click here.

Display Rich Interactive Content to Your Chat and Bot Users

#1MinuteTip Here is a useful LWC pack from Salesforce Labs on AppExchange that will enhance the experience of your customers using Chat & Bot. With this pack, you will be able to embed the following in your chat window:

  • Show a Date Picker and the customer select a date
  • Show Google Map for a particular location
  • Show HTML
  • Let customers upload a file
  • Show records as tiles (e.g. all open cases) and let customer select a record
  • Show carousel (e.g. display product images)
  • Embed a Flow

References & Useful URLs

Scroll to Top