2019年6月23日 星期日

Google Actions 基本操作教學筆記 - Follow-up-intent and context

Follow-up-intent 是關聯性對話,是從你所選擇的 Intent 去延伸,看例子比較快。


在已存在的 Intent 新增 Follow-up-intent




原本的 Intent 的 Contexts 就會多出一個東西

有承接下文的作用,下文就是剛剛的 Follow-up-intent
數字代表這個 Context 可以存活的時間
2代表可以存活兩次對話




Follow-up-intent 所承接的上文




Demo


我們促發了兩次 Follow-up-intent,他回覆我們預期的內容




第三次因為 Context 失效,回答就會被其他有接收「好」的 Intent 給接走


當 Intent 有設定 Follow-up-intent , Training phrases 同時符合 Follow-up-intent 與其他 Custom Intent 會以 Follow-up-intent 優先,若下一題 Training phrases 符合其他 Custom Intent 則會跳到別題,依然會消耗 Context 回合


當錯誤的 Training phrases 流進 Default Fallback Intent 依然會消耗 Context 回合


可以自行 try try 看~



沒有留言:

張貼留言