Skip to content

Commit

Permalink
docs (samples): add detect intent samples (#292)
Browse files Browse the repository at this point in the history
* add webhook-configure-session-parameter-enable-agent-response sample and test

Change-Id: Ia8593160ed33060eb497a15723b21c1221ce55c9

* add webhook-configure-session-parameter-trigger-transition sample and test

Change-Id: I118abb59182879b6969018da97d04eea0b8daeb0

* add webhook-configure-optional-or-required-form-parameters sample and test

Change-Id: I7cbfeb11cece7ccf873dbc7a6dd7cff9ae264ffe

* add configure-session-parameters sample and test

Change-Id: Ib9f1a110473751508b50259c4696593580c64a91

* fix form parameter path

Change-Id: I6411000a7d0240d7552d725c2fd1049be781a9ab

* add webhook-validate-form-parameter sample and test

Change-Id: I82097be3fc3f91651c88b99c7431ebb602c42c66

* add cx to region tag

Change-Id: I6640604512c27a341ab8e26238bf8c3fbd1e77ef

* 🦉 Updates from OwlBot post-processor

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

* 🦉 Updates from OwlBot post-processor

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

* fix test

Change-Id: Icc70e18b40d8684c7909e8383b4c226fa94a162b

* fix region tag

Change-Id: I0fe3849c0eaf12eaf247088993898cbb47dace44

* add detect intent with sentiment analysis sample and test

Change-Id: I99aa3985c64b6c80ec1a85591b1e49f381c379de

* punctuation

Change-Id: I2fe6f929f4c786595b4bbc4fbe422f2370d3adf0

* add detect intent with eventInput sample and test

Change-Id: I32a5b04e975b8e1a4c7d92b328d3bdd1e1c70448

* fix region tag

Change-Id: I3795770f8ef68e154f36057ca9aa1bbb2ad8075f

* add detect intent with IntentInput sample and test

Change-Id: Iea12505b745ea8ea3995fdca2381f6e4bf60d051

* add detect intent synthesize tts response sample and test

Change-Id: Ie7d22212f6f8107a36f555e771ff409c2d1f0bf0

* add resource output file

Change-Id: I3f0f78d5dbb30a0c50ecad3996332cbd6ff0b7b5

* fix formatting

Change-Id: Ia651757249955d18613f844734674f1eea49ed82

* 🦉 Updates from OwlBot post-processor

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

* fix test agent

Change-Id: Ib75ccf20985dcfae3130619f69c5fd546b24ca1d

* fix test

Change-Id: I1423fdb6916fa50fe0f21481fb1964e08ab62080

* change function names

Change-Id: Iaa02c248807b72fcff4f07b46f0f70fddf9d6e7a

* change test

Change-Id: If5ea5d044f040cdb0f3b121af5af960322a1cf5a

* change test

Change-Id: I9a6b457d1739b2f51de86b77d75d9d0ce2973b04

* change test

Change-Id: I92f20ec34c132448a0375d0c88f64b705eb216f5

* replace agent ids and add deleteAgent logic

Change-Id: Ibf7504b92e5beb7193bf9b685f4540493dc37ff6

* fix test

Change-Id: Ic5153f8f3f09645eb60b50124fb4961887c59fa4

* add detect intent with disabled webhook sample and test

Change-Id: I1c565063d4e749029b872009722106222ca28b3d

* remove unnecessary comment

Change-Id: I3f56e80f4d2f7df3a1aa863d7b4e3f120ecce7a3

* 🦉 Updates from OwlBot post-processor

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

* update test

Change-Id: Ie37488c281b513a592832836df8fbe4da60f95fb

* add streamingDetectIntent with partial response enabled sample and test

Change-Id: I499e395658d8c8b0e6f7f2229bb70d1969b25b9b

* 🦉 Updates from OwlBot post-processor

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

* clean up extra comments and test lines

Change-Id: I28179e19fb1b567e743a399c2525b2d517ef1a1b

* clean up comments

Change-Id: I6182825f1d5205c0da284dbe27e9a044c0283dda

* update year

Change-Id: Idd732f365062f23a76a31fd3caf66cedd91813bb

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
aribray and gcf-owl-bot[bot] authored Jun 23, 2022
1 parent d1d1e3c commit 88e2ec6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/google-cloud-dialogflow-cx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow-
| 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) |
| Detect-intent-audio | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-audio.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-audio.js,samples/README.md) |
| Detect-intent-disabled-webhook | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-disabled-webhook.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-disabled-webhook.js,samples/README.md) |
| Detect-intent-event | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-event.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-event.js,samples/README.md) |
| Detect-intent-streaming | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-streaming.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-streaming.js,samples/README.md) |
| Detect-intent-synthesize-tts-response | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-synthesize-tts-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/detect-intent-synthesize-tts-response.js,samples/README.md) |
Expand All @@ -155,6 +156,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow-
| List Training Phrases | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/listTrainingPhrases.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/listTrainingPhrases.js,samples/README.md) |
| 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) |
| Streaming-detect-intent-partial-response | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/streaming-detect-intent-partial-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/streaming-detect-intent-partial-response.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-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) |
| Webhook-validate-form-parameter | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/webhook-validate-form-parameter.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-validate-form-parameter.js,samples/README.md) |
Expand Down
36 changes: 36 additions & 0 deletions packages/google-cloud-dialogflow-cx/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* [Create-page](#create-page)
* [Delete-page](#delete-page)
* [Detect-intent-audio](#detect-intent-audio)
* [Detect-intent-disabled-webhook](#detect-intent-disabled-webhook)
* [Detect-intent-event](#detect-intent-event)
* [Detect-intent-streaming](#detect-intent-streaming)
* [Detect-intent-synthesize-tts-response](#detect-intent-synthesize-tts-response)
Expand All @@ -29,6 +30,7 @@
* [List Training Phrases](#list-training-phrases)
* [Long-running-operation](#long-running-operation)
* [Quickstart](#quickstart)
* [Streaming-detect-intent-partial-response](#streaming-detect-intent-partial-response)
* [Update-intent](#update-intent)
* [Webhook-configure-session-parameters](#webhook-configure-session-parameters)
* [Webhook-validate-form-parameter](#webhook-validate-form-parameter)
Expand Down Expand Up @@ -134,6 +136,23 @@ __Usage:__



### Detect-intent-disabled-webhook

View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-disabled-webhook.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-disabled-webhook.js,samples/README.md)

__Usage:__


`node samples/detect-intent-disabled-webhook.js`


-----




### Detect-intent-event

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



### Streaming-detect-intent-partial-response

View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/streaming-detect-intent-partial-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/streaming-detect-intent-partial-response.js,samples/README.md)

__Usage:__


`node samples/streaming-detect-intent-partial-response.js`


-----




### Update-intent

View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/update-intent.js).
Expand Down

0 comments on commit 88e2ec6

Please sign in to comment.