Google Assistant to GINA Talk Plan

事前調查

  • Google Assistant (下稱GA) 可否有客制行為
  • 客制行為如何動作
  • 客制行為需求環境

客制行為

  • 可以建立Actions on Google App
  • 但不是用安裝App的方式啟用
  • 在使用者與GA交談時Look up
  • 需要審過才會被Look up & Invoke所以並不能算客制行為
  • 實機上加入該專案的使用者也無法測試,只能本人測試

https://developers.google.com/actions/distributing-your-apps
How users invoke and discover actions

如何動作

  • 介面上有兩種方式可建立Action
  • API.AI提供類似Alexa Skill Builder較智慧的方式建立對談模型
  • Action SDK被建議用在簡單的模型或是有自有NLU可處理原始輸入的情境中

如何動作 (續)

API.AI Alexa Skill Builder
Action Skill
Intent* Intent
User says Sample Utterances
Parameter Slot
Entities Slot Types
N/A Intent confirmation
Fulfillment Endpoint

* Intent也有Action Session 不過那欄比較像描述

需求環境

  • 因為API.AI沒有像Alexa有跟AWS Lambda整合,需自行hold一個http server跑Actions on Google的Client
  • 因為沒有http server所以目前也不清楚fulfillment收到request的時機
  • 需研究Node.js Client Library

關於中文

  • API.AI可以有中文句User Say測試用介面可以通
  • 但實機如果語系不是英文叫不出GA
  • 語系是英文時說中文不會被辨識
  • 回中文可以顯示但不會被唸出來
  • 目前最好當沒有這東西

ActionOnGooglePlan

By Ted Wu

ActionOnGooglePlan

  • 853