Skip to content

Commit

Permalink
docs: add update intent sample (#160)
Browse files Browse the repository at this point in the history
* add sample

* Fixed lint

* lint fix

* fix lint

* lint fix

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* added broken link

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* added broken link to skip

* Revised come from feedback

* Fixed lint and added async

* Fixed getProjectID call

* Reverted cmd change

* Fixing assert since match breaks testing

* added match back

* added async

* reverted to include because match produces error

* removed displayName Print

* Revised Code

* Lint Fix

* Removed Debug

* Updated Intent Path

* lint fix

* Added Field comments

* added function to main

* lint fix

* lint fix

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Benjamin E. Coe <[email protected]>
  • Loading branch information
3 people authored Aug 20, 2021
1 parent 6fe9575 commit bee964c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/google-cloud-dialogflow-cx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow-
| Detect-intent-text | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-text.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/detect-intent-text.js,samples/README.md) |
| List-intents | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/list-intents.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/list-intents.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) |



Expand Down
4 changes: 3 additions & 1 deletion packages/google-cloud-dialogflow-cx/linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io"
"img.shields.io",
"https://github.com/googleapis/nodejs-dialogflow-cx/blob/master/samples/update-intent.js",
"https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/update-intent.js"
],
"silent": true,
"concurrency": 10
Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-dialogflow-cx/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* [Detect-intent-text](#detect-intent-text)
* [List-intents](#list-intents)
* [Quickstart](#quickstart)
* [Update-intent](#update-intent)

## Before you begin

Expand Down Expand Up @@ -131,6 +132,23 @@ __Usage:__
`node samples/quickstart.js`


-----




### Update-intent

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

__Usage:__


`node samples/update-intent.js`





Expand Down

0 comments on commit bee964c

Please sign in to comment.