Skip to content

Commit 7389ec9

Browse files
docs(samples) - streamliine and clarify webhook samples (#264)
* streamline and clarify webhook samples Change-Id: I80d80b42f60ac6ccc643afb7b2931916d6843813 * remove sessionInfo config Change-Id: I1b14852ad9e238e7cdc04dbb418ed5ed0fca2992 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 64cfe91 commit 7389ec9

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

packages/google-cloud-dialogflow-cx/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow-
138138

139139
| Sample | Source Code | Try it |
140140
| --------------------------- | --------------------------------- | ------ |
141+
| Configure-webhook-to-set-form-parameter-as-optional-or-required | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/configure-webhook-to-set-form-parameter-as-optional-or-required.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/configure-webhook-to-set-form-parameter-as-optional-or-required.js,samples/README.md) |
141142
| Create-agent | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-agent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/create-agent.js,samples/README.md) |
142143
| Create-page | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/create-page.js,samples/README.md) |
143144
| Delete-page | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/delete-page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/delete-page.js,samples/README.md) |
@@ -155,7 +156,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow-
155156
| Long-running-operation | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/long-running-operation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/long-running-operation.js,samples/README.md) |
156157
| Quickstart | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
157158
| Update-intent | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/update-intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/update-intent.js,samples/README.md) |
158-
| Webhook-configure-optional-or-required-form-parameters | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/webhook-configure-optional-or-required-form-parameters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/webhook-configure-optional-or-required-form-parameters.js,samples/README.md) |
159159
| Webhook-configure-session-parameters-enable-agent-response | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/webhook-configure-session-parameters-enable-agent-response.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/webhook-configure-session-parameters-enable-agent-response.js,samples/README.md) |
160160
| Webhook-configure-session-parameters-trigger-transition | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/webhook-configure-session-parameters-trigger-transition.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/webhook-configure-session-parameters-trigger-transition.js,samples/README.md) |
161161
| Webhook-configure-session-parameters | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/webhook-configure-session-parameters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/webhook-configure-session-parameters.js,samples/README.md) |

packages/google-cloud-dialogflow-cx/samples/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
* [Before you begin](#before-you-begin)
1414
* [Samples](#samples)
15+
* [Configure-webhook-to-set-form-parameter-as-optional-or-required](#configure-webhook-to-set-form-parameter-as-optional-or-required)
1516
* [Create-agent](#create-agent)
1617
* [Create-page](#create-page)
1718
* [Delete-page](#delete-page)
@@ -29,7 +30,6 @@
2930
* [Long-running-operation](#long-running-operation)
3031
* [Quickstart](#quickstart)
3132
* [Update-intent](#update-intent)
32-
* [Webhook-configure-optional-or-required-form-parameters](#webhook-configure-optional-or-required-form-parameters)
3333
* [Webhook-configure-session-parameters-enable-agent-response](#webhook-configure-session-parameters-enable-agent-response)
3434
* [Webhook-configure-session-parameters-trigger-transition](#webhook-configure-session-parameters-trigger-transition)
3535
* [Webhook-configure-session-parameters](#webhook-configure-session-parameters)
@@ -51,6 +51,23 @@ Before running the samples, make sure you've followed the steps outlined in
5151

5252

5353

54+
### Configure-webhook-to-set-form-parameter-as-optional-or-required
55+
56+
View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/configure-webhook-to-set-form-parameter-as-optional-or-required.js).
57+
58+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/configure-webhook-to-set-form-parameter-as-optional-or-required.js,samples/README.md)
59+
60+
__Usage:__
61+
62+
63+
`node samples/configure-webhook-to-set-form-parameter-as-optional-or-required.js`
64+
65+
66+
-----
67+
68+
69+
70+
5471
### Create-agent
5572

5673
View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-agent.js).
@@ -340,23 +357,6 @@ __Usage:__
340357

341358

342359

343-
### Webhook-configure-optional-or-required-form-parameters
344-
345-
View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/webhook-configure-optional-or-required-form-parameters.js).
346-
347-
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/webhook-configure-optional-or-required-form-parameters.js,samples/README.md)
348-
349-
__Usage:__
350-
351-
352-
`node samples/webhook-configure-optional-or-required-form-parameters.js`
353-
354-
355-
-----
356-
357-
358-
359-
360360
### Webhook-configure-session-parameters-enable-agent-response
361361

362362
View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/webhook-configure-session-parameters-enable-agent-response.js).

0 commit comments

Comments
 (0)