You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
List of messages defined in Dialogflow's console for the matched intent
118
+
https://dialogflow.com/docs/rich-messages
119
+
112
120
**Kind**: instance property of [<code>WebhookClient</code>](#WebhookClient)
113
121
<aname="WebhookClient+add"></a>
114
122
115
-
### webhookClient.add(response)
123
+
### webhookClient.add(responses)
124
+
Add a response or list of responses to be sent to Dialogflow
125
+
126
+
**Kind**: instance method of [<code>WebhookClient</code>](#WebhookClient)
127
+
128
+
| Param | Type | Description |
129
+
| --- | --- | --- |
130
+
| responses |[<code>RichResponse</code>](#RichResponse)\| <code>string</code> \|[<code>Array.<RichResponse></code>](#RichResponse)\| <code>Array.<string></code> | (list) or single responses |
131
+
132
+
<aname="WebhookClient+addResponse_"></a>
133
+
134
+
### webhookClient.addResponse_(response)
116
135
Add a response to be sent to Dialogflow
117
136
118
137
**Kind**: instance method of [<code>WebhookClient</code>](#WebhookClient)
@@ -133,14 +152,6 @@ Each handler must be a function callback.
133
152
| --- | --- | --- |
134
153
| handler | <code>Map</code> \| <code>requestCallback</code> | map of Dialogflow action name to handler function or function to handle all requests (regardless of Dialogflow action). |
Copy file name to clipboardexpand all lines: samples/actions-on-google/README.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,16 @@ Click on the **Add to Dialogflow** button below and follow the prompts to create
9
9
[](https://console.dialogflow.com/api-client/oneclick?templateUrl=https%3A%2F%2Fstorage.googleapis.com%2Fdialogflow-oneclick%2Factions-on-google-agent.zip&agentName=ActionsOnGoogleSample)
10
10
11
11
### Option 2: Dialogflow Inline Editor
12
-
1.[Sign up for or sign into Dialogflow](https://console.dialogflow.com/api-client/#/login)
13
-
1.Create a Dialogflow agent
12
+
1.[Sign up for or sign into Dialogflow](https://console.dialogflow.com/api-client/#/login) and [create a agent](https://dialogflow.com/docs/agents#create_an_agent)
13
+
1.Go to your agent's settings and [Restore from zip](https://dialogflow.com/docs/agents#export_and_import) using the `dialogflow-agent.zip` in this directory (Note: this will overwrite your existing agent)
14
14
1.[Enable the Cloud Function for Firebase inline editor](https://dialogflow.com/docs/fulfillment#cloud_functions_for_firebase)
15
15
1. Copy this code in `functions/index.js` the `index.js` file in the Dialogflow Cloud Function for Firebase inline editor.
16
-
1. Add `"dialogflow-fulfillment": "^0.4.0"` and `"actions-on-google": "^2.1.2"` to the `package.json` file's `dependencies` object in the Dialogflow Cloud Function for Firebase inline editor.
16
+
1. Add `"dialogflow-fulfillment": "^0.4.1"` and `"actions-on-google": "^2.1.3"` to the `package.json` file's `dependencies` object in the Dialogflow Cloud Function for Firebase inline editor.
17
17
1. Click `Deploy`
18
18
19
19
### Option 3: Firebase CLI
20
-
1. Create a Dialogflow agent
20
+
1.[Sign up for or sign into Dialogflow](https://console.dialogflow.com/api-client/#/login) and [create a agent](https://dialogflow.com/docs/agents#create_an_agent)
21
+
1. Go to your agent's settings and [Restore from zip](https://dialogflow.com/docs/agents#export_and_import) using the `dialogflow-agent.zip` in this directory (Note: this will overwrite your existing agent)
21
22
1.`cd` to the `functions` directory
22
23
1. Run `npm install`
23
24
1. Install the Firebase CLI by running `npm install -g firebase-tools`
1.[Sign up for or sign into Dialogflow](https://console.dialogflow.com/api-client/#/login)
13
-
1.Create a Dialogflow agent
12
+
1.[Sign up for or sign into Dialogflow](https://console.dialogflow.com/api-client/#/login) and [create a agent](https://dialogflow.com/docs/agents#create_an_agent)
13
+
1.Go to your agent's settings and [Restore from zip](https://dialogflow.com/docs/agents#export_and_import) using the `dialogflow-agent.zip` in this directory (Note: this will overwrite your existing agent)
14
14
1.[Enable the Cloud Function for Firebase inline editor](https://dialogflow.com/docs/fulfillment#cloud_functions_for_firebase)
15
15
1. Change the name of the function in `functions/index.js` from `dialogflowFulfillmentMultiLocale` to `dialogflowFirebaseFulfillment`
16
16
1. Copy this code in `functions/index.js` the `index.js` file in the Dialogflow Cloud Function for Firebase inline editor.
17
17
1. Add `"dialogflow-fulfillment": "^0.4.0"` to the `package.json` file's `dependencies` object in the Dialogflow Cloud Function for Firebase inline editor.
18
18
1. Click `Deploy`
19
19
20
20
### Option 3: Firebase CLI
21
-
1.Create a Dialogflowagent
22
-
1. Go to your agent's settings and [Restore from zip](https://dialogflow.com/docs/agents#export_and_import) using the `multilocaleAgent.zip` in this directory (Note: this will overwrite your existing agent)
21
+
1.[Sign up for or sign into Dialogflow](https://console.dialogflow.com/api-client/#/login) and [create a agent](https://dialogflow.com/docs/agents#create_an_agent)
22
+
1. Go to your agent's settings and [Restore from zip](https://dialogflow.com/docs/agents#export_and_import) using the `dialogflow-agent.zip` in this directory (Note: this will overwrite your existing agent)
23
23
1.`cd` to the `functions` directory
24
24
1. Run `npm install`
25
25
1. Install the Firebase CLI by running `npm install -g firebase-tools`
0 commit comments