Salesforce Contact Personality Insights with Watson

1. Introduction

In this blog, I am going to explain how to use contact personality insight by using contact twitter handler to Predict personality characteristics by using the twitter timeline. but you can leverage the Personality Insights other aspects based on the user profile information or Facebook post or even you can use Salesforce chatter post it self to understand.

2.What is Personality Insight?

Personality Insights extracts and analyzes a spectrum of personality attributes to help discover actionable insights about people and entities, and in turn guides end users to highly personalized interactions. The IBM Watson Personality Insights service provides an API that enables applications to derive insights from social media, enterprise data, or other digital communications. The service uses linguistic analytics to infer individuals’ intrinsic personality characteristics, including Big Five, Needs, and Values, from digital communications such as email, text messages, tweets, and forum posts.The service can automatically infer, from potentially noisy social media, portraits of individuals that reflect their personality characteristics. It can also determine individuals’ consumption preferences, which indicate their likelihood to prefer various products, services, and activities.As a core service of the IBM Watson platform, the Personality Insights service can help businesses understand their customers at a deeper level. It can help businesses learn their clients’ preferences, improve customer satisfaction, and strengthen client relations. Businesses can use these insights to improve client acquisition, retention, and engagement, and to guide highly personalized engagements and interactions to better tailor their products, services, campaigns, and communications for individual clients.

3. Create a custom field on Contact

Create a new text field on the contact twitter_handler__c text of 255 on contact object. we will use this to store the contact twitter handler.  We are going to see the personality insight sunburst Chart which contains all the insights of the contacts

4. Making API calls to twitter / Connected App in twitter.

Go to https://apps.twitter.com/ and create an app from the twitter. After this, you are going to get the OAuth details which we will make an API call to the twitter timeline. Here is the below code which we will use to make an API call to twitter

5. Create a Services in IBM Watson console.

Go to IBM Watson console and create a new Personality  insight services and obtain the service credentials

Click on Create and Get the Service Credentials as shown below

6. Created Named Credential in Salesforce

Create a named credential in Salesforce with the IBM Watson personality insight API authentication which we will use for call out with Watson Personality services.

7. Finally, Visualforce Page and Controller to make API call

Here is the apex controller that calls IBM Watson personality services.

This is the visualforce page

You can find the complete code in this GitHub URL https://github.com/rajamohanvakati/Personality-Insights-

 

 

 

 

 

 

 

Tags:,