From 1d76a04518480e770cab8709831e3bd5be83ac64 Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Tue, 14 Nov 2017 10:42:25 -0800 Subject: [PATCH 1/5] Dialogflow API client (#6) --- .cloud-repo-tools.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .cloud-repo-tools.json diff --git a/.cloud-repo-tools.json b/.cloud-repo-tools.json new file mode 100644 index 000000000..1ca7ce4ba --- /dev/null +++ b/.cloud-repo-tools.json @@ -0,0 +1,16 @@ +{ + "requiresKeyFile": true, + "requiresProjectId": true, + "product": "dialogflow", + "client_reference_url": "https://cloud.google.com/nodejs/docs/reference/storage/latest/", + "release_quality": "beta", + "samples": [ + { + "id": "detect_intent_texts", + "name": "Detect Intent", + "file": "detect_intent_texts.py", + "docs_link": "https://cloud.google.com/storage/docs/dialogflow", + "usage": "python detect_intent_texts.py --help" + } + ] +} \ No newline at end of file From f27b380be70a77bce6db87990056a01e5f808e09 Mon Sep 17 00:00:00 2001 From: Yu-Han Liu Date: Wed, 15 Nov 2017 15:10:37 -0800 Subject: [PATCH 2/5] add sample readme, and sample agent --- samples/README.rst | 270 ++++++++++++++++++++++++++ samples/resources/RoomReservation.zip | Bin 0 -> 10922 bytes 2 files changed, 270 insertions(+) create mode 100644 samples/README.rst create mode 100644 samples/resources/RoomReservation.zip diff --git a/samples/README.rst b/samples/README.rst new file mode 100644 index 000000000..231f65d17 --- /dev/null +++ b/samples/README.rst @@ -0,0 +1,270 @@ +Dialogflow: Python Samples +============================= + +Dialogflow samples using python client. + +Table of Contents +----------------- + +- `Before you begin <#before-you-begin>`__ +- `Samples <#samples>`__ + + - `Detect intent (texts) <#detect-intent-texts>`__ + - `Detect intent (audio) <#detect-intent-audio>`__ + - `Detect intent (streaming) <#detect-intent-streaming>`__ + - `Intent management <#intent-management>`__ + - `Entity type management <#entity-type-management>`__ + - `Entity management <#entity-management>`__ + - `Session entity type management <#session-entity-type-management>`__ + + +Before you begin +---------------- + +#. Before running the samples, make sure you’ve followed the steps in the +`Before you begin section <../README.rst#before-you-begin>`__ of the +client library’s README. + +#. If your project does not already have an agent, create one following the instructions: + + - `Create a standard edition agent `__ + - `Create an enterprise edition agent `__ + +#. This sample comes with a `sample agent <./resources/RoomReservation.zip>`__ which you can use to try the samples with. Following the instructions on `this page `__ to import the agent from the `console `__. + + - **WARNING: Importing the sample agent will add intents and entities to your Dialogflow agent. You might want to use a different Google Cloud Platform Project, or export your Dialogflow agent before importing the sample agent to save a version of your agent before the sample agent was imported.** + +Samples +------- + +Detect intent (texts) +~~~~~~~~~~~~~~~~~~~~~ + +View the `source code `__. + +**Usage:** ``python detect_intent_texts.py --help`` + +.. code-block:: + + usage: detect_intent_texts.py [-h] --project-id PROJECT_ID + [--session-id SESSION_ID] + [--language-code LANGUAGE_CODE] + texts [texts ...] + + DialogFlow API Detect Intent Python sample with text inputs. + + Examples: + python detect_intent_texts.py -h + python detect_intent_texts.py --project-id PROJECT_ID --session-id SESSION_ID "hello" "book a meeting room" "Mountain View" + python detect_intent_text.py --project-id PROJECT_ID --session-id SESSION_ID "tomorrow" "10 AM" "2 hours" "10 people" "A" "yes" + + positional arguments: + texts Text inputs. + + optional arguments: + -h, --help show this help message and exit + --project-id PROJECT_ID + Project/agent id. Required. + --session-id SESSION_ID + Identifier of the DetectIntent session. Defaults to a + random UUID. + --language-code LANGUAGE_CODE + Language code of the query. Defaults to "en-US". + +Detect intent (audio) +~~~~~~~~~~~~~~~~~~~~~ + +View the `source code `__. + +**Usage:** ``python detect_intent_audio.py --help`` + +.. code-block:: + + usage: detect_intent_audio.py [-h] --project-id PROJECT_ID + [--session-id SESSION_ID] + [--language-code LANGUAGE_CODE] + --audio-file-path AUDIO_FILE_PATH + + DialogFlow API Detect Intent Python sample with audio file. + + Examples: + python detect_intent_audio.py -h + python detect_intent_audio.py --project-id PROJECT_ID --session-id SESSION_ID --audio-file-path resources/book_a_room.wav + python detect_intent_audio.py --project-id PROJECT_ID --session-id SESSION_ID --audio-file-path resources/mountain_view.wav + python detect_intent_audio.py --project-id PROJECT_ID --session-id SESSION_ID --audio-file-path resources/today.wav + + optional arguments: + -h, --help show this help message and exit + --project-id PROJECT_ID + Project/agent id. Required. + --session-id SESSION_ID + Identifier of the DetectIntent session. Defaults to a + random UUID. + --language-code LANGUAGE_CODE + Language code of the query. Defaults to "en-US". + --audio-file-path AUDIO_FILE_PATH + Path to the audio file. + +Detect intent (streaming) +~~~~~~~~~~~~~~~~~~~~~~~~~ + +View the `source code `__. + +**Usage:** ``python detect_intent_stream.py --help`` + +.. code-block:: + + usage: detect_intent_stream.py [-h] --project-id PROJECT_ID + [--session-id SESSION_ID] + [--language-code LANGUAGE_CODE] + --audio-file-path AUDIO_FILE_PATH + + DialogFlow API Detect Intent Python sample with audio files processed + as an audio stream. + + Examples: + python detect_intent_stream.py -h + python detect_intent_stream.py --project-id PROJECT_ID --session-id SESSION_ID --audio-file-path resources/book_a_room.wav + python detect_intent_stream.py --project-id PROJECT_ID --session-id SESSION_ID --audio-file-path resources/mountain_view.wav + + optional arguments: + -h, --help show this help message and exit + --project-id PROJECT_ID + Project/agent id. Required. + --session-id SESSION_ID + Identifier of the DetectIntent session. Defaults to a + random UUID. + --language-code LANGUAGE_CODE + Language code of the query. Defaults to "en-US". + --audio-file-path AUDIO_FILE_PATH + Path to the audio file. + +Intent management +~~~~~~~~~~~~~~~~~ + +View the `source code `__. + +**Usage:** ``python intent_management.py --help`` + +.. code-block:: + + usage: intent_management.py [-h] --project-id PROJECT_ID + {list,create,delete} ... + + DialogFlow API Intent Python sample showing how to manage intents. + + Examples: + python intent_management.py -h + python intent_management.py --project-id PROJECT_ID list + python intent_management.py --project-id PROJECT_ID create "room.cancellation - yes" --training-phrases-parts "cancel" "cancellation" --message-texts "Are you sure you want to cancel?" "Cancelled." + python intent_management.py --project-id PROJECT_ID delete 74892d81-7901-496a-bb0a-c769eda5180e + + positional arguments: + {list,create,delete} + list + create Create an intent of the given intent type. + delete Delete intent with the given intent type and intent + value. + + optional arguments: + -h, --help show this help message and exit + --project-id PROJECT_ID + Project/agent id. Required. + +Entity type management +~~~~~~~~~~~~~~~~~~~~~~ + +View the `source code `__. + +**Usage:** ``python entity_type_management.py --help`` + +.. code-block:: + + usage: entity_type_management.py [-h] --project-id PROJECT_ID + {list,create,delete} ... + + DialogFlow API EntityType Python sample showing how to manage entity types. + + Examples: + python entity_type_management.py -h + python entity_type_management.py --project-id PROJECT_ID list + python entity_type_management.py --project-id PROJECT_ID create employee + python entity_type_management.py --project-id PROJECT_ID delete e57238e2-e692-44ea-9216-6be1b2332e2a + + positional arguments: + {list,create,delete} + list + create Create an entity type with the given display name. + delete Delete entity type with the given entity type name. + + optional arguments: + -h, --help show this help message and exit + --project-id PROJECT_ID + Project/agent id. Required. + +Entity management +~~~~~~~~~~~~~~~~~ + +View the `source code `__. + +**Usage:** ``python entity_management.py --help`` + +.. code-block:: + + usage: entity_management.py [-h] --project-id PROJECT_ID + {list,create,delete} ... + + DialogFlow API Entity Python sample showing how to manage entities. + + Examples: + python entity_management.py -h + python entity_management.py --project-id PROJECT_ID list --entity-type-id e57238e2-e692-44ea-9216-6be1b2332e2a + python entity_management.py --project-id PROJECT_ID create new_room --synonyms basement cellar --entity-type-id e57238e2-e692-44ea-9216-6be1b2332e2a + python entity_management.py --project-id PROJECT_ID delete new_room --entity-type-id e57238e2-e692-44ea-9216-6be1b2332e2a + + positional arguments: + {list,create,delete} + list + create Create an entity of the given entity type. + delete Delete entity with the given entity type and entity + value. + + optional arguments: + -h, --help show this help message and exit + --project-id PROJECT_ID + Project/agent id. Required. + +Session entity type management +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +View the `source code `__. + +**Usage:** ``python session_entity_type_management.py --help`` + +.. code-block:: + + usage: session_entity_type_management.py [-h] --project-id PROJECT_ID + {list,create,delete} ... + + DialogFlow API SessionEntityType Python sample showing how to manage + session entity types. + + Examples: + python session_entity_type_management.py -h + python session_entity_type_management.py --project-id PROJECT_ID list --session-id SESSION_ID + python session_entity_type_management.py --project-id PROJECT_ID create --session-id SESSION_ID --entity-type-display-name room --entity-values C D E F + python session_entity_type_management.py --project-id PROJECT_ID delete --session-id SESSION_ID --entity-type-display-name room + + positional arguments: + {list,create,delete} + list + create Create a session entity type with the given display + name. + delete Delete session entity type with the given entity type + display name. + + optional arguments: + -h, --help show this help message and exit + --project-id PROJECT_ID + Project/agent id. Required. + diff --git a/samples/resources/RoomReservation.zip b/samples/resources/RoomReservation.zip new file mode 100644 index 0000000000000000000000000000000000000000..7873fb628c895e7510bac677d0ad35820759094d GIT binary patch literal 10922 zcmaia1yGzzw=M4O?(XjH?k>TdFu1#0aCdjt06~JgI|O$RE&(1n_q{r~=l=J+JvCL| z)Xc2zneMgw+j}h~Sx_)EASfs(AY4dfS)e}x=HuGP!pzQ@!P*I6_gQ5|0fZUJ`+;_t zA9w!oU=3VZ8VtT5f;p6~v(rfw@L=1D#P-&4jxQr*U{Nxct{@oe*;yq7z+;!`T@hy- zi$S#vs02c%0Bh^(p{izj$oU3h^NF}JHZXN5rACaVqmc9`_I7u_&5R@k_!FPc^F#Bosw_~>3=_k=g?B2xPo09)Z5 zewXt4dbUh!Z0CJ@v5lEeTNjR8-8lz|+KZ80EsM0oL4uIG`^V#cqdX#SmW9)nYr?f~5$!wr`&8UE)^@se-uVvk%K%(cJZj z{K6s6$CaIFiL8HCqG_*D_&n4Px}5-Hnuu2VdQ(^nP?Cj&nlE@TGyw(z>I4A-Qu<$) z2KQrWOkA9t0iVSHpN*{SoK(!5>;ZO8W=?;tRpo(-l9J5Gl>GR(YJ-Xr&7}PJ2(|S1 zh{i0iG+8P}>fRwlF$U(|A$lnWsJhsY;{wRXSddVco!W$~AINMU&;NaFl8<+-?3_RL zg%hJA0PvZ?(ag!r(bdS=3SdV>PhCoNg#4CAfx*+IiH%+Num^q>+&z1~SFghNzI#%x~}BK?-g54BbkpY|W` zmZ&8K-(yZEfY3)c`_MY}pzu8`^9V zr=s&}GOzB)5e&L@FxsU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UYvNI zWzROF-@14NUKr*stpZ;kqM9vUZFYTjpA>gJ-dC!Mt$hicLf6_n)*S^IW7k?HM>fas zqC-y&Ed66w?#_V-Th|e<9M&#?5teEdq%Ikc6^Q5yISj0ga?x7cqFzi-S3v|TP#GVl32j*aUQ&USrb z@O8*B*}QM+dJPdxrgY=|vv2I)V)uJ~W@onZE25bR0;NHqh!*nD`Pm1{1`DB>vzl zKCFW&VMEA^zVzz9W86;-Ca01>h5mCBx3E}=%9SoRLV4wyKp^;U$6Acl^cIEsn4 zkxCx9fHkU-%7)2KD}l*WsE?dcc*`+A8Kts!!bPas16ICOOXJ}PK1sugO`*LlIc`ML z0&e<_Ai*neX`CtieE7eVWPw4@fc`e-{pkz)ZOr@c@wZLypWpk_ z)Aidm_IG4{jPfrYvVQ{o>1-kS8|C8)^P{o$|2KsF6Yo!v|F<9J@6h>>mi`6rpYE7{ z0{fiAd_J0EYC#ChDh<|qY|N9hq5&lN}4_*EL zC!GBg@X!9{Z(-o?$oZhqzx|ni%LM<#{F8vcJEMQcPqhCX^RGVXKcW8I*uNS3cNBfh a_J8tMNfsR9_h(=}9 Date: Wed, 15 Nov 2017 15:31:57 -0800 Subject: [PATCH 3/5] formatting --- samples/README.rst | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/samples/README.rst b/samples/README.rst index 231f65d17..d77f681c3 100644 --- a/samples/README.rst +++ b/samples/README.rst @@ -21,18 +21,20 @@ Table of Contents Before you begin ---------------- -#. Before running the samples, make sure you’ve followed the steps in the -`Before you begin section <../README.rst#before-you-begin>`__ of the -client library’s README. +#. Before running the samples, make sure you’ve followed the steps in + the `Before you begin section <../README.rst#before-you-begin>`__ of + the client library’s README. -#. If your project does not already have an agent, create one following the instructions: +#. If your project does not already have an agent, create one following + the `instructions `__. - - `Create a standard edition agent `__ - - `Create an enterprise edition agent `__ + (If you want to create an enterprise agent, follow `these instructions `__.) -#. This sample comes with a `sample agent <./resources/RoomReservation.zip>`__ which you can use to try the samples with. Following the instructions on `this page `__ to import the agent from the `console `__. +#. This sample comes with a `sample agent <./resources/RoomReservation.zip>`__ + which you can use to try the samples with. Following the instructions on `this page `__ + to import the agent from the `console `__. - - **WARNING: Importing the sample agent will add intents and entities to your Dialogflow agent. You might want to use a different Google Cloud Platform Project, or export your Dialogflow agent before importing the sample agent to save a version of your agent before the sample agent was imported.** + **WARNING: Importing the sample agent will add intents and entities to your Dialogflow agent. You might want to use a different Google Cloud Platform Project, or export your Dialogflow agent before importing the sample agent to save a version of your agent before the sample agent was imported.** Samples ------- From 3d0c9b725ccc96b82627daa38ddb50a1dd41f8da Mon Sep 17 00:00:00 2001 From: Yu-Han Liu Date: Wed, 15 Nov 2017 20:05:49 -0800 Subject: [PATCH 4/5] no change --- samples/README.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/samples/README.rst b/samples/README.rst index d77f681c3..018217a10 100644 --- a/samples/README.rst +++ b/samples/README.rst @@ -17,7 +17,6 @@ Table of Contents - `Entity management <#entity-management>`__ - `Session entity type management <#session-entity-type-management>`__ - Before you begin ---------------- From f6703b076b2b22e38c240f4445f172527a4b464b Mon Sep 17 00:00:00 2001 From: Yu-Han Liu Date: Wed, 15 Nov 2017 20:09:07 -0800 Subject: [PATCH 5/5] cleanup --- .cloud-repo-tools.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .cloud-repo-tools.json diff --git a/.cloud-repo-tools.json b/.cloud-repo-tools.json deleted file mode 100644 index 1ca7ce4ba..000000000 --- a/.cloud-repo-tools.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "requiresKeyFile": true, - "requiresProjectId": true, - "product": "dialogflow", - "client_reference_url": "https://cloud.google.com/nodejs/docs/reference/storage/latest/", - "release_quality": "beta", - "samples": [ - { - "id": "detect_intent_texts", - "name": "Detect Intent", - "file": "detect_intent_texts.py", - "docs_link": "https://cloud.google.com/storage/docs/dialogflow", - "usage": "python detect_intent_texts.py --help" - } - ] -} \ No newline at end of file