Integration of Salesforce With Dialogflow to Build Action For Google Home Assistant

Salesforce With Dialogflow to Build Action For Google Home Assistant
Table of Contents

Prerequisites :-
1.Google dialogflow account
2.npm
3.ngrok.exe
This tutorial shows you how to do Salesforce Integration with dialogflow to build a simple Dialog flow agent, walking you through the most important features of Dialog flow. You’ll learn how to:

  • Create a Dialogflow account and your first Dialogflow agent, which lets you define a natural language understanding model.
  • Extract parameters with entities, which let you define how data is extracted from user utterances. Entities let you categorize important parts of user utterances. This lets you extract data that matches a category instead of a specific utterance, giving you more flexibility.
  • Manage states with contexts, which lets you persist conversation state across turns of a conversation.
  • Integrate with the Google Assistant, which lets you deploy your Dialogflow agent as actions that users can invoke through the Assistant

Create your Dialogflow account
Now that you’re signed into your Google account, you can sign into Dialogflow by following these steps:
1. Click the Google login button.

Sign In page for Integration of Salesforce With Dialogflow to Build Action For Google Home Assistant

2.Create your first Dialogflow agent

  • Click Create agent in the left menu.
  • Enter your agent’s name, default language, and default time zone, then click the Create button.

Integration of Salesforce With Dialogflow Setup view page

3. Create Intents

Dashboard view of Dialogflow

From Intent Tab create Multiple Phrases for single question

Response live page of integration of salesforce with Dialogflow

  • For the Intent From Fulfilment it’s required to use this intent for the web hook.
  • Also We can add the text response related to phrases.

4. Create Entities in Dial flow

Visual representation of Creation Entities in Dial flow

There are some standard entities available in dialogflow but if we want to create new entity then go with the entity tab and create entity and also add the synonyms for the entity.
5. Create Fulfilment for Google Action.

Live website image for Creation of Fulfilment for Google Action.

Here Two different types for call Fulfilment

1.Web HookIn Webhook we have to set URL for authentication through ngrok call a node.js code for call a rest services From
SalesforceInstead of ngrok we can create a heroku application for call node.js code for call rest services from Salesforce
2.Inline Editor(Powered by Cloud Functions for Firebase)In inline editor we can can direct use index.js and package.json

6. Integrations for Google Action.

Google Assistant test for Google action page from dialog flow.

From Google Assistant test the the application go with test and it’s redirect on the Google action page from dialog flow.
Here you can see the output get from Salesforce records.

Integration of Salesforce With Dialogflow to Build Action For Google Home Assistant page

Get thoughtful updates on what’s new in technology and innovation

    Want to build CRM Solutions with Salesforce?

    Share it:
    As the Head of Technology at GetOnCRM, I thrive on transforming complex technical landscapes into scalable, business-first solutions. With years of experience leading innovative projects, I’m passionate about leveraging Salesforce and emerging technologies to help organizations achieve seamless digital transformation. My focus is always on creating a synergy between technology and business goals.