Skip to content

Commit

Permalink
docs: added webhook sample (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
galz10 authored Oct 1, 2021
1 parent 7c0f6c5 commit 9731c5d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/google-cloud-dialogflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow/
| Resource | [source code](https://github.com/googleapis/nodejs-dialogflow/blob/main/samples/resource.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow&page=editor&open_in_editor=samples/resource.js,samples/README.md) |
| Set-agent | [source code](https://github.com/googleapis/nodejs-dialogflow/blob/main/samples/set-agent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow&page=editor&open_in_editor=samples/set-agent.js,samples/README.md) |
| Update-intent | [source code](https://github.com/googleapis/nodejs-dialogflow/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&page=editor&open_in_editor=samples/update-intent.js,samples/README.md) |
| Webhook | [source code](https://github.com/googleapis/nodejs-dialogflow/blob/main/samples/webhook.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow&page=editor&open_in_editor=samples/webhook.js,samples/README.md) |



Expand Down
3 changes: 2 additions & 1 deletion packages/google-cloud-dialogflow/linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io"
"img.shields.io",
"https://github.com/googleapis/nodejs-dialogflow/blob/main/samples/webhook.js"
],
"silent": true,
"concurrency": 10
Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-dialogflow/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* [Resource](#resource)
* [Set-agent](#set-agent)
* [Update-intent](#update-intent)
* [Webhook](#webhook)

## Before you begin

Expand Down Expand Up @@ -204,6 +205,23 @@ __Usage:__
`node samples/update-intent.js`


-----




### Webhook

View the [source code](https://github.com/googleapis/nodejs-dialogflow/blob/main/samples/webhook.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow&page=editor&open_in_editor=samples/webhook.js,samples/README.md)

__Usage:__


`node samples/webhook.js`





Expand Down

0 comments on commit 9731c5d

Please sign in to comment.