Salesforce Apex Hours: Einstein Intent

16
Farmington Hills Salesforce Developer User Group Salesforce Apex Hours :-Einstein Intent #SalesforceApexHours #FarmingtonHillsSFDCDug Speaker :- Daniel Peter(Salesforce MVP), Amit Chaudhary Date :- Saturday, OCT 28, 2017 11:00 AM EST Venue/Link :- Online

Transcript of Salesforce Apex Hours: Einstein Intent

Page 1: Salesforce Apex Hours: Einstein Intent

Farmington Hills Salesforce Developer User

Group

Salesforce Apex Hours :-Einstein Intent

#SalesforceApexHours #FarmingtonHillsSFDCDug

Speaker :- Daniel Peter(Salesforce MVP), Amit Chaudhary

Date :- Saturday, OCT 28, 2017 11:00 AM EST

Venue/Link :- Online

Page 2: Salesforce Apex Hours: Einstein Intent

Who am I ?

Amit Chaudhary

• Active on Salesforce Developer Community

• Blogging at http://amitsalesforce.blogspot.in/

• Co-Organizer of :- FarmingtonHillsSFDCDug

• Salesforce MVP

Page 3: Salesforce Apex Hours: Einstein Intent

Our Speaker

Daniel Peter

2x Salesforce MVP

22x Salesforce Certified

Lead Applications Engineer, Kenandy

Bay Area Salesforce Developer Group

Organizer

Page 4: Salesforce Apex Hours: Einstein Intent

Einstein Intent and the bigger picture

Einstein Platform ServicesEinstein Vision

Einstein Image Classification

Einstein Object Detection (Beta)

Einstein Language (Beta)Einstein Sentiment (Beta)

Einstein Intent (Beta)

Page 5: Salesforce Apex Hours: Einstein Intent

Authentication to access the APIs

▶ One time (key): RSA Private Key – download

▶ Ongoing (token): OAuth 2.0 JWT bearer token flow

Page 6: Salesforce Apex Hours: Einstein Intent

Sign up, get your RSA Private Key

▶ https://api.einstein.ai/signup

Page 7: Salesforce Apex Hours: Einstein Intent

Use your key to get a token

https://github.com/salesforceidentity/jwt/bl

ob/master/JWT.apex

Page 8: Salesforce Apex Hours: Einstein Intent

Easy way to get the token…

▶ https://api.einstein.ai/token

Page 9: Salesforce Apex Hours: Einstein Intent

Intent Datasets

▶ CSV / TSV

Page 10: Salesforce Apex Hours: Einstein Intent

▶ JSON

Intent Datasets

Page 11: Salesforce Apex Hours: Einstein Intent

(location) Local Upload Remote URL

(format) CSV TSV JSON CSV TSV JSON

(transaction)

Sync 1 2 3 4 5 6

Async 7 8 9 10 11 12

Uploading datasets – 12 ways!

Page 12: Salesforce Apex Hours: Einstein Intent

DEMO

Page 13: Salesforce Apex Hours: Einstein Intent

Evaluating the ModelEvaluating the Model

1) Overall Accuracy Percentage train and test

2) F1 for each label3) Confusion Matrix

(wikipedia)

Page 14: Salesforce Apex Hours: Einstein Intent

Data Prep Considerations

Might need to clean / combine / reclassify /

de-dupe your examples and labels

You need at least 5 examples per label

Duplicate examples will only be added in the

first label they appear in

Labels can only be 180 characters. They

don’t need to be words.

Examples needs to be words to produce a

decent model.

Page 15: Salesforce Apex Hours: Einstein Intent

Thank You

Thank you for attending the session.

Page 16: Salesforce Apex Hours: Einstein Intent

Follow Farmington Hills SFDC Developer Group

Twitter Hashtag

#FarmingtonHillsSFDCDug

Meetup.com

https://www.meetup.com/Farmington-Hills-Salesforce-Developer-

Meetup/

Facebook Page

https://www.facebook.com/FarmingtonHillsSfdcdug/?ref=bookmarks