SlideShare a Scribd company logo
Build a bot hands on snowforce19
Hands-On Track
Building Chatbots
Bryan Wise
bwise@salesforce.com
Agenda
• Prework items
• Community, Live Agent, Permissions, Package
• Build Bot
• 3 dialogs with data interactions
• Train the bot
• Test the bot
• Deployment
• Debugging, Model Improvements
• Community Deployment
Developer Org & download
• Get an Org: https://developer.salesforce.com/signup
• Username: yourname@snowforce.demo
• Email: real email you can get access to
• Download CSV and save to your downloads folder
• https://sfdc.co/SnowCSV
Intro to Bots
Setup – enable communities
• Setup-> Communities->Communities Settings
• Use unique, throwaway name for your community domain
Example: <yourname>-snowforce
1 2
Create Community
• Setup -> Communities -> All Communities: New Community
• Use Customer Service Template
• Give it a name and hit create
1
Activate and Publish & Copy URL
• Community Workspaces ->
Administration
• Settings: Activate Community
• Copy URL
• Community Builder
• Publish
1
2
3
4
Live Agent Setup
• Service Setup
• Recommend Setup -> View All
• Live Agent Setup
1
2
3
Live Agent setup wizard
• Name queue, agent group, Add yourself
• Paste the URL you copied earlier
• Select Service chat type
1
2
3
Enable Bots!
• Just turn it on
for now
• We’ll be back
soon!
Permissions
• Bot needs permission to access data
• Case Object: view all, modify all
• Field: Edit on key case fields
1
2
3
Install Package
• https://sfdc.co/SnowPackage
• Installs 3 flows
Enable Einstein Bots
• Setup -> Service Cloud Einstein ->
Einstein Bots
• Enable Logs and Options Menu
• Create New Bot
1
2
Bot Setup Wizard
• Name, Description
• Greeting
• Menu Items
1
2
3
Add a Channel
• Bot Builder -> Overview
• Channels: Add
1
2
3
Testing your bot
• Bot Builder -> Dialogs
• Activate, Preview, Submit
• Pre-Chat Form
1
2
3
Contact & Case
• Notice that a contact and case were created automatically
Action: Flow – Get Contact By Id
1
2
3
4
Message, Next Step
1
2
• Add a message
• Reference Variables using
{!VariableName} format
• Set Next Step to go back to the
main menu
Test your bot
1 2
Action: Question
• Question can have embedded
action
• Use Variable to store answer to
the question
• Note the variable type: Object
1
2
3
Question with Embedded Action
• Dynamic menu based
on the data returned
as output from action
• CaseNumber and
Subject are fields
returned within the
object that was
returned
• Examine the flow to
see the fields
returned
1
2
3
Recap, Message and Next Step
1
2
• Action returned a list of cases
• List of cases displayed as question
• User selects specific case, stored in
variable
• Variable format:
{!ObjectName.FieldName}
• Next Step: Main Menu
Test Bot
1 2
Update Case
• Clear variable
• Ask “which case” just like
before (not pictured)
• Ask 2nd question to get
case update and store in
text variable
1
2 3
Action: Flow – Log Call on Case
• Call flow to log a call on the case
• Message
• Next Step: Main Menu1
2
Test Bot
1 2
3
Create Einstein Intent Set
• Create Intent Set: CaseIntents
• 2 Intents:
• API Name: Main_Menu
• API Name: Check_Case_Status
• Make sure items in bold match exactly
1 2
3
4
Load CSV:
https://workbench.developerforce.com
• Using CSV downloaded earlier, load training data
• (this is why things had to match exactly)
1
2
3 4 5
Add Intent Set
• Verify they loaded
• On Main Menu dialog:
• Enable Dialog Intent
• Add Intent
1
2
3
Add Intent Set
• On Check on Cases Dialog
• Enable Dialog Intent
• Add Intent
1
Build Model
1 2
3
Verify
1 2
3 4
• Type in something similar to
• I want to check on my case
• Main Menu Please
Debugging
• Use Performance -> Event Logs to debug
Optimize NLP
Deploy to community
• Open Community Builder
• Add Snap-in Chat Lightning Component
to the page footer
1
2
Fix CSP Security Error
1
2
3
Resources
• Slides: https://sfdc.co/SnowSlides
• Developer Org: https://developer.salesforce.com/signup
• Flows Package: https://sfdc.co/SnowPackage
• Intent Training Data: https://sfdc.co/SnowCSV
• Trailmix: https://trailhead.salesforce.com/users/bryanwise/trailmixes/snowforce-bots
Build a bot hands on snowforce19

More Related Content

PDF
4th quarter 17 php & my sql registration page
PDF
CREATING AND MANAGING USER ACCOUNTS.pdf
PPTX
Database training for developers
PPT
Chapter03 Creating And Managing User Accounts
PPTX
Windows Server 2012 Managing Active Directory Domain
PDF
The inherent complexity of stream processing
KEY
Reimaging Your MacBook
PDF
Web works hol
4th quarter 17 php & my sql registration page
CREATING AND MANAGING USER ACCOUNTS.pdf
Database training for developers
Chapter03 Creating And Managing User Accounts
Windows Server 2012 Managing Active Directory Domain
The inherent complexity of stream processing
Reimaging Your MacBook
Web works hol

Similar to Build a bot hands on snowforce19 (20)

PPT
PPTX
Module5SADP.pptx
PPTX
configure and DMINISTER SERVER ----.pptx
PDF
Frappe Open Day - March 2017
PDF
Refactoring a web application with Python
PPTX
Orion Context Broker Exercises
PPTX
API Testing Presentations.pptx
PPTX
UNIT 6-EXPLAINING THE ROLE OF THE NETWORK ADMINISTRATOR AND SUPPORT.pptx
PPTX
Salesforce Automation
PPTX
Coffee_Desk Android App Presentation
PDF
Ca1 report
PPTX
Using the Corporate Geographic Data Model with Subversion
ODP
New Features Lotus Domino Administration 8.5
PDF
Treasure Data Summer Internship 2016
PPTX
Web hacking series part 3
PPTX
User server interaction-Cookies
PDF
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
PPTX
Bitbucket git-bamboo-jira
PPTX
Cloud Computing Simple REST API in PHP: Read
PPTX
Mobile app master class - Session 2.pptx
Module5SADP.pptx
configure and DMINISTER SERVER ----.pptx
Frappe Open Day - March 2017
Refactoring a web application with Python
Orion Context Broker Exercises
API Testing Presentations.pptx
UNIT 6-EXPLAINING THE ROLE OF THE NETWORK ADMINISTRATOR AND SUPPORT.pptx
Salesforce Automation
Coffee_Desk Android App Presentation
Ca1 report
Using the Corporate Geographic Data Model with Subversion
New Features Lotus Domino Administration 8.5
Treasure Data Summer Internship 2016
Web hacking series part 3
User server interaction-Cookies
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
Bitbucket git-bamboo-jira
Cloud Computing Simple REST API in PHP: Read
Mobile app master class - Session 2.pptx
Ad

More from rikkehovgaard (18)

PDF
UX Design Workshop - Tableau CRM Edition
PDF
Czech Dreamin
PDF
Enhancing Your Lightning Apps with Einstein Analytics
PDF
Einstein Analytics, the art of the possible
PDF
Get the Analytic Edge, Learn Einstein Analytics
PPTX
Txd19 speaker session template v1
PDF
Data hero dream ole19
PPSX
Snowforce how to drive rapid business value with ai
PDF
Toronto dev group mar2019
PPTX
Accelerate time to insights with Einstein Analytics templates
PDF
Building einstein analytics apps uk-compressed
PDF
His master's voice, take command of Einstein Analytics
PPTX
Einstein Analytics Prediction Builder
PDF
ABC of Einstein Analytics
PDF
Demystifying salesforce predictions ea user group brightgen
PDF
Velocity Calculation in Salesforce
PDF
Pug presentation - reporting
PPTX
Dynamic Pardot Reporting with Wave
UX Design Workshop - Tableau CRM Edition
Czech Dreamin
Enhancing Your Lightning Apps with Einstein Analytics
Einstein Analytics, the art of the possible
Get the Analytic Edge, Learn Einstein Analytics
Txd19 speaker session template v1
Data hero dream ole19
Snowforce how to drive rapid business value with ai
Toronto dev group mar2019
Accelerate time to insights with Einstein Analytics templates
Building einstein analytics apps uk-compressed
His master's voice, take command of Einstein Analytics
Einstein Analytics Prediction Builder
ABC of Einstein Analytics
Demystifying salesforce predictions ea user group brightgen
Velocity Calculation in Salesforce
Pug presentation - reporting
Dynamic Pardot Reporting with Wave
Ad

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Cloud computing and distributed systems.
PDF
KodekX | Application Modernization Development
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Spectroscopy.pptx food analysis technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Machine learning based COVID-19 study performance prediction
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
cuic standard and advanced reporting.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Big Data Technologies - Introduction.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Cloud computing and distributed systems.
KodekX | Application Modernization Development
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Advanced methodologies resolving dimensionality complications for autism neur...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Spectroscopy.pptx food analysis technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Unlocking AI with Model Context Protocol (MCP)
Machine learning based COVID-19 study performance prediction
sap open course for s4hana steps from ECC to s4
Network Security Unit 5.pdf for BCA BBA.
cuic standard and advanced reporting.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
“AI and Expert System Decision Support & Business Intelligence Systems”
NewMind AI Weekly Chronicles - August'25 Week I

Build a bot hands on snowforce19