ユーザ用ツール

サイト用ツール


ionic4とdialogflow_v1_でチャットボットアプリ

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
ionic4とdialogflow_v1_でチャットボットアプリ [2018/10/25] – [@angular/http の HttpModule から、 @angular/common/http の HttpClientModuleへ] adash333ionic4とdialogflow_v1_でチャットボットアプリ [2018/10/28] (現在) – [Dialogflow V2 APIのAuth(認証)のセットアップ] adash333
行 65: 行 65:
  
  
-https://medium.com/codingthesmartway-com-blog/angular-4-3-httpclient-accessing-rest-web-services-with-angular-2305b8fd654b&ved+https://medium.com/codingthesmartway-com-blog/angular-4-3-httpclient-accessing-rest-web-services-with-angular-2305b8fd654b
 Angular 4.3 HttpClient (Accessing REST Web Services With Angular) - Medium Angular 4.3 HttpClient (Accessing REST Web Services With Angular) - Medium
-https://medium.com › codingthesmartwa...+ 
 +公式サイト 
 +https://angular.jp/guide/http 
 + 
 +===== DialogflowV1とV2 ===== 
 + 
 +response 
 + 
 +https://github.com/dialogflow/fulfillment-webhook-json/blob/master/requests/v1/request.json 
 +{{:pasted:20181026-113600.png}} 
 + 
 +https://github.com/dialogflow/fulfillment-webhook-json/blob/master/requests/v2/request.json 
 +{{:pasted:20181026-113628.png}} 
 + 
 +https://dialogflow.com/docs/reference/v1-v2-migration-guide-fulfillment#webhook_responses 
 +{{:pasted:20181026-114142.png}} 
 + 
 +{{:pasted:20181026-114722.png}} 
 + 
 +上記より、以下のように変更で正しいのだろうか・・・ 
 + 
 +<code> 
 +//V1 
 +res.result.fulfillment.speech 
 + 
 +//V2 
 +res.queryResult.fulfillmentText 
 +</code> 
 + 
 +しかし、以下のページでは、fulfillment.text のよう。 
 + 
 +https://dialogflow.com/docs/reference/v1-v2-migration-guide-api#query_to_detectintent 
 + 
 +{{:pasted:20181026-121430.png}} 
 + 
 +===== Dialogflow V2 APIのセットアップ ===== 
 +https://dialogflow.com/docs/reference/v2-agent-setup 
 + 
 + 
 + 
 +https://dialogflow.com/docs/reference/v1-v2-migration-guide-api 
 + 
 +{{:pasted:20181026-121120.png}} 
 + 
 +===== Dialogflow V2 APIのAuth(認証)のセットアップ ===== 
 +V1よりかなり難しそう。 
 + 
 + 
 +In order to use the V2 API, you will need to create a new Service Account and obtain a private key associated with the Service Account. The key is downloaded as a JSON file upon creation of the Service Account. 
 + 
 +らしい。 
 + 
 +https://dialogflow.com/docs/reference/v2-auth-setup 
 + 
 +https://qiita.com/tayack/items/6f0d76c980200be10c85 
 +@tayack 
 +2018年09月25日に投稿 
 +DialogFlow v2 APIの使い方1 API実行に必要なアクセストークンをコマンドプロンプトで取得する方法 
 + 
 +{{:pasted:20181026-174344.png}} 
 + 
 +ところが、私の場合、Service Account のメールアドレスのリンクをクリックしても、リンク先で、 
 + 
 +「このプロジェクトのサービス アカウントを表示する権限がありません。」 
 + 
 +と表示されてしまい、先に進めない。 
 + 
 +数時間後、なぜか、進めるようになった。 
 + 
 +{{:pasted:20181026-174500.png}} 
 + 
 +続きは[[[z_blog:2018:181026_ionic4_dialogflowv2|181026 ionic4でdialogflowV2にtryしてみる]]へ 
 + 
 +===== 参考リンク ===== 
 + 
 + 
 +http://blog.akanumahiroaki.com/entry/2018/03/03/100000 
 + 
 +https://medium.com/@tzahi/how-to-setup-dialogflow-v2-authentication-programmatically-with-node-js-b37fa4815d89 
 + 
 + 
 +https://techwithsach.com/how-to-create-a-chatbot-using-dialogflow-enterprise-edition-and-dialogflow-api-v2/
  
  

ionic4とdialogflow_v1_でチャットボットアプリ.1540475922.txt.gz · 最終更新: 2018/10/25 by adash333

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki