Integration Guide

Dialogflow Integration Data Dictionary

This document explains the voice and text data dictionaries for Google DialogFlow integration.

November 15, 2019

TOPIC

DialogFlow | Artificial Intelligence

UPDATED

Voice:

workitem.data.botWebhookRequest =
 {
  "action": "actionName"
   "queryText": "user's original query to your agent",
   "parameters": {
     "param": "param value"
   },
   "allRequiredParamsPresent": true,
   "fulfillmentText": "Text defined in Dialogflow's console for the intent that was matched",
   "fulfillmentMessages": [
     {
       "text": {
         "text": [
           "Text defined in Dialogflow's console for the intent that was matched"
         ]
       }
     }
   ],
   "intent": {
     "name": "projects/your-agents-project-id/agent/intents/29bcd7f8-f717-4261-a8fd-2d3e451b8af8",
     "displayName": "Matched Intent Name"
   },
   "intentDetectionConfidence": 1,
   "diagnosticInfo": {},
   "languageCode": "en"
 }


Text:

workitem.chatBotResponse =
 {
   "intentName": "Name of intent matched",
   "action": "actionName",
   "text": ["Fulfillment text defined in dialogflow console"],
   "parameters": {
     "hasAllParameters": true,
     "orderId": {
       "number": 84296.0,
       "bool": false,
       "string": ""
     }
   },
   "status": 200
 }


-Due to how Google sends us the parameters, each parameter is a map with three possible values for different data types (bool, string and number).