如要查詢天氣預報,您可能需要一些資訊,例如使用者想取得天氣預報的時間和位置。不過,如我們前所述,不同使用者可能會透過不同的方式提出預測要求。Google 助理可以瞭解這些差異,並將其轉譯成標準的使用者意圖,以便取得預測資訊。接著,比對服務會剖析使用者要求,提供執行要求所需的適當資料。在這個案例中,也就是使用者希望天氣預報的時間和地點。最後,您可以透過公開 REST API 使用這項資料來查詢天氣,並以提示的形式將天氣回傳給使用者。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2023-12-01 (世界標準時間)。"],[[["Conversational Actions on Google Assistant let you create custom voice experiences for users by handling requests and returning audio/visual responses."],["Assistant's natural language understanding (NLU) handles language nuances, making it easier to build conversational interfaces compared to traditional structured input methods."],["Conversational Actions are best for simple, quick tasks, or immersive, voice-forward experiences."],["You can build Actions with the Actions SDK, Actions Builder, or both, offering flexibility in your development workflow."]]],[]]