SlideShare a Scribd company logo
Google Home
Assistant
Integration with
Salesforce.
Google Home
Assistant Integration
with Salesforce.
RAJKIRAN DEWARA
Sr. Salesforce Consultant
Incapsulate,Ahmedabad
Gujarat, India
Trailhead
https://trailhead.com/me/rajkiran-dewara
Facebook
https://facebook.com/rajkiran.dewara
LinkedIn
https://linkedin.com/in/rajkiran-dewara/
Twitter
https://twitter.com/dewara_rajkiran
Dialogflow Configuration
1. Dialogue flow topic to cover in this
session
a. Sign up dialogue flow
b. Create Agent
c. Create Intents
i. Contexts
ii. Events
iii. Training phrases
iv. Action and parameters
v. Response
vi. Fulfillment
d. Integration
e. Demo with test simulator
2. Salesforce topic to cover in this session
a. Site creation.
b. Remote site setting
c. Apex rest class
d. Connected app
e. Account creation
Sign up for Dialogflow
1. Go to https://console.dialogflow.com/
, https://dialogflow.com/ or
https://dialogflow.cloud.google.com/
2. Sign in with your google account.
Create Agent
1. Click on the setting icon left
side menu bar and click
create new agent.
2. Give your agent name in
the form and click
create.keep all the
predefined value as it is.If
you want to change your
default language than
change in the form.
Create Intent
1. Once you are done with
creating your agent now
it’s time to create your
intent for the agent. Intent
will help to identify your
question or queries so that
assistant can give answer
to the queries or question.
2. Intents are mappings
between a user's queries
and actions fulfilled by
your software.
Create Intent
1. Click on Create Intent,Give
the intent name “Create
Account”.
Create Intent
1. Create intent form to fill up give the name create account.
Create Intent- Training
1. Training phrases are the questions answer. Once bot ask you , how may i help
you and if you says to bot create account, it will ask you the follow up question or
have action on the answers. This will be shown in demo.
Create Intent- Action
1. Action and parameters each param is bind with a question.If bot ask what is your
account name and you submit your account name “Rajkiran” it will store the value
into “Name” param. Similar other param are stored and later utilized to sent to
other integrated system(Salesforce)
Create Intent- Responses
1. Once all the action param answered and stored in parameter, the final question
bot will ask through this intent. Are you sure you want to process ? this is
something we need to give yes or no answer so for this purpose, we need to
create the follow up intent.
Intents
1. Click on the add follow up intent and it will prompt you the what intent you want to
create exactly, in our case we are going to create yes follow up intent.
Intents
1. Click on the add follow up intent and it will prompt you the menu what intent you
want to create. In our case we are going to create yes follow up intent.
Create Intent
1. Once you create follow up intent, it will be shown under the parent
intent create account.
Follow up Intent- Training phrase
1. Training phrase will already have predefined set of question because its a yes
follow up intent so the training phase will be sure,yes , okay etc.
Follow up Intent- Training phrase
1.
Follow up Intent- Responses
1. This intent is our end of conversation intent so we are going to enable the response
as end of conversation and send the collected data to integrated system.
Follow up Intent- Fulfillment
1. Fulfillment is nothing but to enable the webhook(integration api) between dialogue
flow and the integrated system.This configuration we will see in Fulfillment section.
Salesforce- Rest Apex Class
1. Before we setup the fulfillment configuration lets create a apex rest class in
development org and we need to have few more setting the the org, lets see.
Salesforce - Site creation
1. Go to setup and search for site and create a site in salesforce, this site url and
path we will be using in dialogflow fulfillment section as a api.
Salesforce- Site Detail
1. Give the site name other field, there is a custom url for site you can create one and
give the path for the url this is we are going to use in dialogflow fulfillment section.
Salesforce- Sites
1. Site url and path from this site we will be using in dialogue flow fulfillment section.
Fulfillment
1. In the url section we used site
htttps://{salesforcesiteurl}/{salesforcesitepath}/services/apexrest/{salesforcerestapexcl
assrestresourcename}
2. https://xxxxx-developer-edition.xx.force.com/dialogflow/services/apexrest/Dialogflow
Salesforce- Remote site setting
1. White list the dialogflow url in the remote site setting.
Salesforce- New Connected App
1. Go to Apps-> App Manager and create new connected app to allow the dialogflow to
salesforce integration.
Salesforce- Connected App
Details1. There is other way to call salesforce api using the connected app details in the
fulfillment url request header, but we are not using at present these configuration.
Integration of intent.
1. We need to integrated our welcome intent and by default its dialogue flow but we
required our “Create Account” intent to be default for this agent.Click on the
integration setting.
Integration of intent
1. Once you click on the integration setting popup will appear and you need to search
for “Create Account” intent in implicit invocation search box select the intent and
click on the “Test” button bottom right.
We are all set to test the
Google Assistant integration
with Salesforce. Lets start
the simulator to test what
we have built it.
1.
Agent detail
1. This agent detail will appear in the test simulator as a user.in our case the project
Id will be in the test simulator screen.(raj-cpejkm)
Test Simulator
1. Once you are in the simulator all the agent created by you will be appear in the list top right section.Select
your agent.
2. Left side Action Directory is your google assistant.Display name is publicly displayed in the Actions directory.
Users say or type the display name to begin interacting with your Actions. For example, if the display name is
Dr. Raj, users can say "Hey Google, Talk to Dr. Raj", or type "Talk to Dr. Raj" to invoke the Actions.
3. Click on “Talk to Dr. Raj” Raj is your agent name by default it comes agent name but you can modify this in
Develop section.
Test Simulator
1. Once you click on “Talk to Dr. Raj” first question will appear from you agent-intent that is
greeting message.
2. Type your answer or input in the box, in our case we want to create account.
Test Simulator
1. Once you type and enter “add account” or “create account” it will show the next
follow up question based on required param we need for this intent.
2. Remember these param we have created in the intent.
Test Simulator
1. Type your account name and enter, next param question will appear , please provied
the phone number. Enter you phone number.
Test Simulator
1.
Test Simulator
1. Once you entered all the required param detail the final intent question shows all the
details and ask the confirmation to create the account using these entered details.
Test Simulator
1. Once you confirm with yes , the webhook enabled in the intent will call the salesforce
api through fulfillment and in the apex rest class we need to parse the request body
and get all the param and set in Account object and insert the detail done.
Salesforce- Account Details
1. Go to the salesforce org and search for your account name and verify the details you
entered.
Summary
1. In this session you were learnt
a. Google assistant integration with salesforce.
b. Creating the agent , intent and how to do webhook.
c. How to train the intent and give param.
d. How to white list the url in salesforce remote site setup.
e. How to create a site so that it can be directly used as a API in dialogue flow.
f. One good thing is when you create a site it will by default create the “User” and “Profile” using
same name of the site, if you have noticed the account details created by: “Rajkiran Virtual
Assistant Guest User” this user created by default when we create a public site.
g. How to test using simulator.
h. You can further enhance your knowledge in
i. https://dialogflow.cloud.google.com/#/assistant_preview
ii. https://console.actions.google.com/
iii. Explore the tab Develop,Deploy and analytics.

More Related Content

What's hot

What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 
Making Sense of APEX Security by Christoph Ruepprich
Making Sense of APEX Security by Christoph RuepprichMaking Sense of APEX Security by Christoph Ruepprich
Making Sense of APEX Security by Christoph Ruepprich
Enkitec
 
Oracle EBS R12.2 - Deployment and System Administration
Oracle EBS R12.2 - Deployment and System AdministrationOracle EBS R12.2 - Deployment and System Administration
Oracle EBS R12.2 - Deployment and System Administration
Mozammel Hoque
 
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACThe Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
Markus Michalewicz
 
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCIDatabase Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Tammy Bednar
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19cMaximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Glen Hawkins
 
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best PracticesOracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Markus Michalewicz
 
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Markus Michalewicz
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
Markus Michalewicz
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureOracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud Infrastructure
SinanPetrusToma
 
INF107 - Integrating HCL Domino and Microsoft 365
INF107 - Integrating HCL Domino and Microsoft 365INF107 - Integrating HCL Domino and Microsoft 365
INF107 - Integrating HCL Domino and Microsoft 365
Dylan Redfield
 
Trace File Analyzer - Usage and Features
Trace File Analyzer - Usage and Features Trace File Analyzer - Usage and Features
Trace File Analyzer - Usage and Features
Sandesh Rao
 
Chapter 11 - Network Address Translation for IPv4
Chapter 11 - Network Address Translation for IPv4Chapter 11 - Network Address Translation for IPv4
Chapter 11 - Network Address Translation for IPv4
Yaser Rahmati
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
Anil Nair
 
Less12 maintenance
Less12 maintenanceLess12 maintenance
Less12 maintenance
Amit Bhalla
 
Domino OSGi Development
Domino OSGi DevelopmentDomino OSGi Development
Domino OSGi Development
Paul Fiore
 
Configuration management I - Ansible + Packer
Configuration management I - Ansible + PackerConfiguration management I - Ansible + Packer
Configuration management I - Ansible + Packer
Xavier Serrat Bordas
 
Oracle ACFS High Availability NFS Services (HANFS)
Oracle ACFS High Availability NFS Services (HANFS)Oracle ACFS High Availability NFS Services (HANFS)
Oracle ACFS High Availability NFS Services (HANFS)
Anju Garg
 
OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2
OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2
OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2
vasuballa
 
Learn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationLearn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c Administration
Revelation Technologies
 

What's hot (20)

What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
 
Making Sense of APEX Security by Christoph Ruepprich
Making Sense of APEX Security by Christoph RuepprichMaking Sense of APEX Security by Christoph Ruepprich
Making Sense of APEX Security by Christoph Ruepprich
 
Oracle EBS R12.2 - Deployment and System Administration
Oracle EBS R12.2 - Deployment and System AdministrationOracle EBS R12.2 - Deployment and System Administration
Oracle EBS R12.2 - Deployment and System Administration
 
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACThe Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
 
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCIDatabase Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19cMaximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19c
 
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best PracticesOracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
 
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureOracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud Infrastructure
 
INF107 - Integrating HCL Domino and Microsoft 365
INF107 - Integrating HCL Domino and Microsoft 365INF107 - Integrating HCL Domino and Microsoft 365
INF107 - Integrating HCL Domino and Microsoft 365
 
Trace File Analyzer - Usage and Features
Trace File Analyzer - Usage and Features Trace File Analyzer - Usage and Features
Trace File Analyzer - Usage and Features
 
Chapter 11 - Network Address Translation for IPv4
Chapter 11 - Network Address Translation for IPv4Chapter 11 - Network Address Translation for IPv4
Chapter 11 - Network Address Translation for IPv4
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
 
Less12 maintenance
Less12 maintenanceLess12 maintenance
Less12 maintenance
 
Domino OSGi Development
Domino OSGi DevelopmentDomino OSGi Development
Domino OSGi Development
 
Configuration management I - Ansible + Packer
Configuration management I - Ansible + PackerConfiguration management I - Ansible + Packer
Configuration management I - Ansible + Packer
 
Oracle ACFS High Availability NFS Services (HANFS)
Oracle ACFS High Availability NFS Services (HANFS)Oracle ACFS High Availability NFS Services (HANFS)
Oracle ACFS High Availability NFS Services (HANFS)
 
OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2
OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2
OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2
 
Learn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationLearn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c Administration
 

Similar to Google home assistant integration with salesforce.

MuleSoft Surat Virtual Meetup#36 - MuleSoft Composer for Salesforce - No Code...
MuleSoft Surat Virtual Meetup#36 - MuleSoft Composer for Salesforce - No Code...MuleSoft Surat Virtual Meetup#36 - MuleSoft Composer for Salesforce - No Code...
MuleSoft Surat Virtual Meetup#36 - MuleSoft Composer for Salesforce - No Code...
Jitendra Bafna
 
MuleSoft Composer for Salesforce.pptx
MuleSoft Composer for Salesforce.pptxMuleSoft Composer for Salesforce.pptx
MuleSoft Composer for Salesforce.pptx
AmitSingh192710
 
Point and Click App Building Workshop
Point and Click App Building WorkshopPoint and Click App Building Workshop
Point and Click App Building Workshop
Salesforce Developers
 
Force com getting_started_trial
Force com getting_started_trialForce com getting_started_trial
Force com getting_started_trial
ronmechling
 
Contribute to community (1)
Contribute to community (1)Contribute to community (1)
Contribute to community (1)
Ankit Arora
 
Dreamwares_SF Expertise
Dreamwares_SF ExpertiseDreamwares_SF Expertise
Dreamwares_SF Expertise
Manidipa Mitra
 
Salesforce integration with_javacode
Salesforce integration with_javacode Salesforce integration with_javacode
Salesforce integration with_javacode
prasad04517
 
SFA MGR PG_ 1st Day
SFA MGR PG_ 1st DaySFA MGR PG_ 1st Day
SFA MGR PG_ 1st Day
Robert B. Burghardt
 
Salesforce Summer'13 - Chennai DUG
Salesforce Summer'13 - Chennai DUGSalesforce Summer'13 - Chennai DUG
Salesforce Summer'13 - Chennai DUG
Karanraj Sankaranarayanan
 
Introduction to Point-and-Click App Building
Introduction to Point-and-Click App BuildingIntroduction to Point-and-Click App Building
Introduction to Point-and-Click App Building
Salesforce Developers
 
Dev day paris020415
Dev day paris020415Dev day paris020415
Dev day paris020415
pdufourSFDC
 
Dreamwares_Salesforce Updated
Dreamwares_Salesforce UpdatedDreamwares_Salesforce Updated
Dreamwares_Salesforce Updated
Amit Ahuja
 
How to build a Chatbot with Google's Dialogflow
How to build a Chatbot with Google's DialogflowHow to build a Chatbot with Google's Dialogflow
How to build a Chatbot with Google's Dialogflow
Moses Sam Paul Johnraj
 
Salesforce Integration Using javacode
Salesforce Integration Using javacodeSalesforce Integration Using javacode
Salesforce Integration Using javacode
Ramakrishna Narkedamilli
 
Salesforce.com Lightning
Salesforce.com LightningSalesforce.com Lightning
Salesforce.com Lightning
Malinda Lamahewa
 
Webinar - Admin Friendly App Builder (1).pdf
Webinar - Admin Friendly App Builder (1).pdfWebinar - Admin Friendly App Builder (1).pdf
Webinar - Admin Friendly App Builder (1).pdf
Dean Infotech
 
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using ClearbitCustomer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
JanBogaert8
 
Dynamics 365 self hosting bots
Dynamics 365 self hosting botsDynamics 365 self hosting bots
Dynamics 365 self hosting bots
Amit Patil
 
Salesforce Summer'15 release overview
 Salesforce Summer'15 release overview Salesforce Summer'15 release overview
Salesforce Summer'15 release overview
Rakesh Gupta
 
GenAI for Daily Operation including PromQL generator
GenAI for Daily Operation including PromQL generatorGenAI for Daily Operation including PromQL generator
GenAI for Daily Operation including PromQL generator
Tzung-Hsien (Shawn) Ho
 

Similar to Google home assistant integration with salesforce. (20)

MuleSoft Surat Virtual Meetup#36 - MuleSoft Composer for Salesforce - No Code...
MuleSoft Surat Virtual Meetup#36 - MuleSoft Composer for Salesforce - No Code...MuleSoft Surat Virtual Meetup#36 - MuleSoft Composer for Salesforce - No Code...
MuleSoft Surat Virtual Meetup#36 - MuleSoft Composer for Salesforce - No Code...
 
MuleSoft Composer for Salesforce.pptx
MuleSoft Composer for Salesforce.pptxMuleSoft Composer for Salesforce.pptx
MuleSoft Composer for Salesforce.pptx
 
Point and Click App Building Workshop
Point and Click App Building WorkshopPoint and Click App Building Workshop
Point and Click App Building Workshop
 
Force com getting_started_trial
Force com getting_started_trialForce com getting_started_trial
Force com getting_started_trial
 
Contribute to community (1)
Contribute to community (1)Contribute to community (1)
Contribute to community (1)
 
Dreamwares_SF Expertise
Dreamwares_SF ExpertiseDreamwares_SF Expertise
Dreamwares_SF Expertise
 
Salesforce integration with_javacode
Salesforce integration with_javacode Salesforce integration with_javacode
Salesforce integration with_javacode
 
SFA MGR PG_ 1st Day
SFA MGR PG_ 1st DaySFA MGR PG_ 1st Day
SFA MGR PG_ 1st Day
 
Salesforce Summer'13 - Chennai DUG
Salesforce Summer'13 - Chennai DUGSalesforce Summer'13 - Chennai DUG
Salesforce Summer'13 - Chennai DUG
 
Introduction to Point-and-Click App Building
Introduction to Point-and-Click App BuildingIntroduction to Point-and-Click App Building
Introduction to Point-and-Click App Building
 
Dev day paris020415
Dev day paris020415Dev day paris020415
Dev day paris020415
 
Dreamwares_Salesforce Updated
Dreamwares_Salesforce UpdatedDreamwares_Salesforce Updated
Dreamwares_Salesforce Updated
 
How to build a Chatbot with Google's Dialogflow
How to build a Chatbot with Google's DialogflowHow to build a Chatbot with Google's Dialogflow
How to build a Chatbot with Google's Dialogflow
 
Salesforce Integration Using javacode
Salesforce Integration Using javacodeSalesforce Integration Using javacode
Salesforce Integration Using javacode
 
Salesforce.com Lightning
Salesforce.com LightningSalesforce.com Lightning
Salesforce.com Lightning
 
Webinar - Admin Friendly App Builder (1).pdf
Webinar - Admin Friendly App Builder (1).pdfWebinar - Admin Friendly App Builder (1).pdf
Webinar - Admin Friendly App Builder (1).pdf
 
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using ClearbitCustomer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
 
Dynamics 365 self hosting bots
Dynamics 365 self hosting botsDynamics 365 self hosting bots
Dynamics 365 self hosting bots
 
Salesforce Summer'15 release overview
 Salesforce Summer'15 release overview Salesforce Summer'15 release overview
Salesforce Summer'15 release overview
 
GenAI for Daily Operation including PromQL generator
GenAI for Daily Operation including PromQL generatorGenAI for Daily Operation including PromQL generator
GenAI for Daily Operation including PromQL generator
 

Recently uploaded

June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 

Recently uploaded (20)

June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 

Google home assistant integration with salesforce.

  • 2. Google Home Assistant Integration with Salesforce. RAJKIRAN DEWARA Sr. Salesforce Consultant Incapsulate,Ahmedabad Gujarat, India Trailhead https://trailhead.com/me/rajkiran-dewara Facebook https://facebook.com/rajkiran.dewara LinkedIn https://linkedin.com/in/rajkiran-dewara/ Twitter https://twitter.com/dewara_rajkiran
  • 3. Dialogflow Configuration 1. Dialogue flow topic to cover in this session a. Sign up dialogue flow b. Create Agent c. Create Intents i. Contexts ii. Events iii. Training phrases iv. Action and parameters v. Response vi. Fulfillment d. Integration e. Demo with test simulator 2. Salesforce topic to cover in this session a. Site creation. b. Remote site setting c. Apex rest class d. Connected app e. Account creation
  • 4. Sign up for Dialogflow 1. Go to https://console.dialogflow.com/ , https://dialogflow.com/ or https://dialogflow.cloud.google.com/ 2. Sign in with your google account.
  • 5. Create Agent 1. Click on the setting icon left side menu bar and click create new agent. 2. Give your agent name in the form and click create.keep all the predefined value as it is.If you want to change your default language than change in the form.
  • 6. Create Intent 1. Once you are done with creating your agent now it’s time to create your intent for the agent. Intent will help to identify your question or queries so that assistant can give answer to the queries or question. 2. Intents are mappings between a user's queries and actions fulfilled by your software.
  • 7. Create Intent 1. Click on Create Intent,Give the intent name “Create Account”.
  • 8. Create Intent 1. Create intent form to fill up give the name create account.
  • 9. Create Intent- Training 1. Training phrases are the questions answer. Once bot ask you , how may i help you and if you says to bot create account, it will ask you the follow up question or have action on the answers. This will be shown in demo.
  • 10. Create Intent- Action 1. Action and parameters each param is bind with a question.If bot ask what is your account name and you submit your account name “Rajkiran” it will store the value into “Name” param. Similar other param are stored and later utilized to sent to other integrated system(Salesforce)
  • 11. Create Intent- Responses 1. Once all the action param answered and stored in parameter, the final question bot will ask through this intent. Are you sure you want to process ? this is something we need to give yes or no answer so for this purpose, we need to create the follow up intent.
  • 12. Intents 1. Click on the add follow up intent and it will prompt you the what intent you want to create exactly, in our case we are going to create yes follow up intent.
  • 13. Intents 1. Click on the add follow up intent and it will prompt you the menu what intent you want to create. In our case we are going to create yes follow up intent.
  • 14. Create Intent 1. Once you create follow up intent, it will be shown under the parent intent create account.
  • 15. Follow up Intent- Training phrase 1. Training phrase will already have predefined set of question because its a yes follow up intent so the training phase will be sure,yes , okay etc.
  • 16. Follow up Intent- Training phrase 1.
  • 17. Follow up Intent- Responses 1. This intent is our end of conversation intent so we are going to enable the response as end of conversation and send the collected data to integrated system.
  • 18. Follow up Intent- Fulfillment 1. Fulfillment is nothing but to enable the webhook(integration api) between dialogue flow and the integrated system.This configuration we will see in Fulfillment section.
  • 19. Salesforce- Rest Apex Class 1. Before we setup the fulfillment configuration lets create a apex rest class in development org and we need to have few more setting the the org, lets see.
  • 20. Salesforce - Site creation 1. Go to setup and search for site and create a site in salesforce, this site url and path we will be using in dialogflow fulfillment section as a api.
  • 21. Salesforce- Site Detail 1. Give the site name other field, there is a custom url for site you can create one and give the path for the url this is we are going to use in dialogflow fulfillment section.
  • 22. Salesforce- Sites 1. Site url and path from this site we will be using in dialogue flow fulfillment section.
  • 23. Fulfillment 1. In the url section we used site htttps://{salesforcesiteurl}/{salesforcesitepath}/services/apexrest/{salesforcerestapexcl assrestresourcename} 2. https://xxxxx-developer-edition.xx.force.com/dialogflow/services/apexrest/Dialogflow
  • 24. Salesforce- Remote site setting 1. White list the dialogflow url in the remote site setting.
  • 25. Salesforce- New Connected App 1. Go to Apps-> App Manager and create new connected app to allow the dialogflow to salesforce integration.
  • 26. Salesforce- Connected App Details1. There is other way to call salesforce api using the connected app details in the fulfillment url request header, but we are not using at present these configuration.
  • 27. Integration of intent. 1. We need to integrated our welcome intent and by default its dialogue flow but we required our “Create Account” intent to be default for this agent.Click on the integration setting.
  • 28. Integration of intent 1. Once you click on the integration setting popup will appear and you need to search for “Create Account” intent in implicit invocation search box select the intent and click on the “Test” button bottom right.
  • 29. We are all set to test the Google Assistant integration with Salesforce. Lets start the simulator to test what we have built it. 1.
  • 30. Agent detail 1. This agent detail will appear in the test simulator as a user.in our case the project Id will be in the test simulator screen.(raj-cpejkm)
  • 31. Test Simulator 1. Once you are in the simulator all the agent created by you will be appear in the list top right section.Select your agent. 2. Left side Action Directory is your google assistant.Display name is publicly displayed in the Actions directory. Users say or type the display name to begin interacting with your Actions. For example, if the display name is Dr. Raj, users can say "Hey Google, Talk to Dr. Raj", or type "Talk to Dr. Raj" to invoke the Actions. 3. Click on “Talk to Dr. Raj” Raj is your agent name by default it comes agent name but you can modify this in Develop section.
  • 32. Test Simulator 1. Once you click on “Talk to Dr. Raj” first question will appear from you agent-intent that is greeting message. 2. Type your answer or input in the box, in our case we want to create account.
  • 33. Test Simulator 1. Once you type and enter “add account” or “create account” it will show the next follow up question based on required param we need for this intent. 2. Remember these param we have created in the intent.
  • 34. Test Simulator 1. Type your account name and enter, next param question will appear , please provied the phone number. Enter you phone number.
  • 36. Test Simulator 1. Once you entered all the required param detail the final intent question shows all the details and ask the confirmation to create the account using these entered details.
  • 37. Test Simulator 1. Once you confirm with yes , the webhook enabled in the intent will call the salesforce api through fulfillment and in the apex rest class we need to parse the request body and get all the param and set in Account object and insert the detail done.
  • 38. Salesforce- Account Details 1. Go to the salesforce org and search for your account name and verify the details you entered.
  • 39. Summary 1. In this session you were learnt a. Google assistant integration with salesforce. b. Creating the agent , intent and how to do webhook. c. How to train the intent and give param. d. How to white list the url in salesforce remote site setup. e. How to create a site so that it can be directly used as a API in dialogue flow. f. One good thing is when you create a site it will by default create the “User” and “Profile” using same name of the site, if you have noticed the account details created by: “Rajkiran Virtual Assistant Guest User” this user created by default when we create a public site. g. How to test using simulator. h. You can further enhance your knowledge in i. https://dialogflow.cloud.google.com/#/assistant_preview ii. https://console.actions.google.com/ iii. Explore the tab Develop,Deploy and analytics.