Skip to content

Commit

Permalink
docs(samples) - streamliine and clarify webhook samples (#264)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
aribray and gcf-owl-bot[bot] authored May 5, 2022
1 parent 64cfe91 commit 7389ec9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-dialogflow-cx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow-

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| 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) |
| 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) |
| 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) |
| 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) |
Expand All @@ -155,7 +156,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow-
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
Expand Down
36 changes: 18 additions & 18 deletions packages/google-cloud-dialogflow-cx/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

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



### Configure-webhook-to-set-form-parameter-as-optional-or-required

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).

[![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)

__Usage:__


`node samples/configure-webhook-to-set-form-parameter-as-optional-or-required.js`


-----




### Create-agent

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



### Webhook-configure-optional-or-required-form-parameters

View the [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)

__Usage:__


`node samples/webhook-configure-optional-or-required-form-parameters.js`


-----




### Webhook-configure-session-parameters-enable-agent-response

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

0 comments on commit 7389ec9

Please sign in to comment.