SlideShare a Scribd company logo
1 of 39
Download to read offline
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

Salesforce Integration Pattern Overview
Salesforce Integration Pattern OverviewSalesforce Integration Pattern Overview
Salesforce Integration Pattern OverviewDhanik Sahni
 
Salesforce and SAP Integration with Informatica Cloud
Salesforce and SAP Integration with Informatica CloudSalesforce and SAP Integration with Informatica Cloud
Salesforce and SAP Integration with Informatica CloudDarren Cunningham
 
Salesforce Marketing Cloud overview demo
Salesforce Marketing Cloud overview demoSalesforce Marketing Cloud overview demo
Salesforce Marketing Cloud overview demoAdama Sidibé
 
Salesforce Field Service Lightning
Salesforce Field Service LightningSalesforce Field Service Lightning
Salesforce Field Service LightningJayant Jindal
 
Quick Start to Field Service Lightning, Paweł Dobrzynski
Quick Start to Field Service Lightning, Paweł DobrzynskiQuick Start to Field Service Lightning, Paweł Dobrzynski
Quick Start to Field Service Lightning, Paweł DobrzynskiCzechDreamin
 
Best Practices for Successful Deployment
Best Practices for Successful DeploymentBest Practices for Successful Deployment
Best Practices for Successful DeploymentSalesforce Developers
 
Salesforce Release Management - Best Practices and Tools for Deployment
Salesforce Release Management - Best Practices and Tools for DeploymentSalesforce Release Management - Best Practices and Tools for Deployment
Salesforce Release Management - Best Practices and Tools for DeploymentSalesforce Developers
 
CleverTap & App Promo: App Retention & Engagement Strategy Seminar
CleverTap & App Promo: App Retention & Engagement Strategy SeminarCleverTap & App Promo: App Retention & Engagement Strategy Seminar
CleverTap & App Promo: App Retention & Engagement Strategy SeminarCleverTap
 
Introduction to appDynamics
Introduction to appDynamics Introduction to appDynamics
Introduction to appDynamics Siddhanta Rath
 
Marketing cloud development
Marketing cloud developmentMarketing cloud development
Marketing cloud developmentAmit Chaudhary
 
Salesforce Integration
Salesforce IntegrationSalesforce Integration
Salesforce IntegrationJoshua Hoskins
 
Complete Guide To Salesforce Einstein Analytics
Complete Guide To Salesforce Einstein AnalyticsComplete Guide To Salesforce Einstein Analytics
Complete Guide To Salesforce Einstein AnalyticsCloud Analogy
 
What Is Salesforce CRM? | Salesforce CRM Tutorial For Beginners | Salesforce ...
What Is Salesforce CRM? | Salesforce CRM Tutorial For Beginners | Salesforce ...What Is Salesforce CRM? | Salesforce CRM Tutorial For Beginners | Salesforce ...
What Is Salesforce CRM? | Salesforce CRM Tutorial For Beginners | Salesforce ...Edureka!
 
Marketing Cloud - Partner Office Hour (February 2, 2016)
Marketing Cloud - Partner Office Hour (February 2, 2016)Marketing Cloud - Partner Office Hour (February 2, 2016)
Marketing Cloud - Partner Office Hour (February 2, 2016)Salesforce Partners
 
414: Build an agile CI/CD Pipeline for application integration
414: Build an agile CI/CD Pipeline for application integration414: Build an agile CI/CD Pipeline for application integration
414: Build an agile CI/CD Pipeline for application integrationTrevor Dolby
 
Salesforce admin training 1
Salesforce admin training 1Salesforce admin training 1
Salesforce admin training 1HungPham381
 
Whats new in data power
Whats new in data powerWhats new in data power
Whats new in data powersflynn073
 
Salesforce Service Cloud
Salesforce Service CloudSalesforce Service Cloud
Salesforce Service Cloudsharad soni
 

What's hot (20)

Salesforce Integration Pattern Overview
Salesforce Integration Pattern OverviewSalesforce Integration Pattern Overview
Salesforce Integration Pattern Overview
 
Salesforce and SAP Integration with Informatica Cloud
Salesforce and SAP Integration with Informatica CloudSalesforce and SAP Integration with Informatica Cloud
Salesforce and SAP Integration with Informatica Cloud
 
Salesforce Marketing Cloud overview demo
Salesforce Marketing Cloud overview demoSalesforce Marketing Cloud overview demo
Salesforce Marketing Cloud overview demo
 
Salesforce Field Service Lightning
Salesforce Field Service LightningSalesforce Field Service Lightning
Salesforce Field Service Lightning
 
Quick Start to Field Service Lightning, Paweł Dobrzynski
Quick Start to Field Service Lightning, Paweł DobrzynskiQuick Start to Field Service Lightning, Paweł Dobrzynski
Quick Start to Field Service Lightning, Paweł Dobrzynski
 
Best Practices for Successful Deployment
Best Practices for Successful DeploymentBest Practices for Successful Deployment
Best Practices for Successful Deployment
 
Salesforce Release Management - Best Practices and Tools for Deployment
Salesforce Release Management - Best Practices and Tools for DeploymentSalesforce Release Management - Best Practices and Tools for Deployment
Salesforce Release Management - Best Practices and Tools for Deployment
 
CleverTap & App Promo: App Retention & Engagement Strategy Seminar
CleverTap & App Promo: App Retention & Engagement Strategy SeminarCleverTap & App Promo: App Retention & Engagement Strategy Seminar
CleverTap & App Promo: App Retention & Engagement Strategy Seminar
 
Introduction to appDynamics
Introduction to appDynamics Introduction to appDynamics
Introduction to appDynamics
 
Marketing cloud development
Marketing cloud developmentMarketing cloud development
Marketing cloud development
 
Salesforce Integration
Salesforce IntegrationSalesforce Integration
Salesforce Integration
 
Complete Guide To Salesforce Einstein Analytics
Complete Guide To Salesforce Einstein AnalyticsComplete Guide To Salesforce Einstein Analytics
Complete Guide To Salesforce Einstein Analytics
 
What Is Salesforce CRM? | Salesforce CRM Tutorial For Beginners | Salesforce ...
What Is Salesforce CRM? | Salesforce CRM Tutorial For Beginners | Salesforce ...What Is Salesforce CRM? | Salesforce CRM Tutorial For Beginners | Salesforce ...
What Is Salesforce CRM? | Salesforce CRM Tutorial For Beginners | Salesforce ...
 
Marketing Cloud - Partner Office Hour (February 2, 2016)
Marketing Cloud - Partner Office Hour (February 2, 2016)Marketing Cloud - Partner Office Hour (February 2, 2016)
Marketing Cloud - Partner Office Hour (February 2, 2016)
 
414: Build an agile CI/CD Pipeline for application integration
414: Build an agile CI/CD Pipeline for application integration414: Build an agile CI/CD Pipeline for application integration
414: Build an agile CI/CD Pipeline for application integration
 
Salesforce admin training 1
Salesforce admin training 1Salesforce admin training 1
Salesforce admin training 1
 
Whats new in data power
Whats new in data powerWhats new in data power
Whats new in data power
 
How Salesforce Uses the Marketing Cloud
How Salesforce Uses the Marketing CloudHow Salesforce Uses the Marketing Cloud
How Salesforce Uses the Marketing Cloud
 
Architect day 20181128 - Afternoon Session
Architect day 20181128 - Afternoon SessionArchitect day 20181128 - Afternoon Session
Architect day 20181128 - Afternoon Session
 
Salesforce Service Cloud
Salesforce Service CloudSalesforce Service Cloud
Salesforce Service Cloud
 

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.pptxAmitSingh192710
 
Point and Click App Building Workshop
Point and Click App Building WorkshopPoint and Click App Building Workshop
Point and Click App Building WorkshopSalesforce Developers
 
Force com getting_started_trial
Force com getting_started_trialForce com getting_started_trial
Force com getting_started_trialronmechling
 
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 ExpertiseManidipa Mitra
 
Salesforce integration with_javacode
Salesforce integration with_javacode Salesforce integration with_javacode
Salesforce integration with_javacode prasad04517
 
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 BuildingSalesforce Developers
 
Dev day paris020415
Dev day paris020415Dev day paris020415
Dev day paris020415pdufourSFDC
 
Dreamwares_Salesforce Updated
Dreamwares_Salesforce UpdatedDreamwares_Salesforce Updated
Dreamwares_Salesforce UpdatedAmit 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 DialogflowMoses Sam Paul Johnraj
 
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).pdfDean 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 ClearbitJanBogaert8
 
Dynamics 365 self hosting bots
Dynamics 365 self hosting botsDynamics 365 self hosting bots
Dynamics 365 self hosting botsAmit Patil
 
Salesforce Summer'15 release overview
 Salesforce Summer'15 release overview Salesforce Summer'15 release overview
Salesforce Summer'15 release overviewRakesh 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 generatorTzung-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

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 

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.