簡體   English   中英

Google 助手無法從 BII“actions.intent.GET_ACCOUNT”獲取自定義帳戶名

[英]Google assistant can't get custom account name from BII “actions.intent.GET_ACCOUNT”

在Android上測試 9. 如果在google assistant中查詢“通過myApp獲取當前余額”和“通過myApp獲取儲蓄余額”,可以捕獲並識別賬戶名稱“交易賬戶”和“儲蓄賬戶”。

似乎不適用於自定義帳戶名稱,例如查詢“使用 myApp 獲取資金余額”。 期望檢索到賬戶名“基金賬戶”,但實際上返回的是“余額”。

正如這篇文章中所建議的, 在應用程序操作中內置的意圖“actions.intent.GET_ACCOUNT”未被用戶查詢“Check Balance in mybank”調用,內聯庫存用於文件 actions.xml 文件中以定義自定義帳戶名稱,但仍然沒有運氣。

這是動作.xml

<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright 2019 Google LLC
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     https://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~
  -->

<actions>

  <!-- This file describes the supported actions by this app -->

  <action intentName="actions.intent.GET_ACCOUNT">

    
    <fulfillment urlTemplate="myApp://mobile.app{?accountName}">
     
      <parameter-mapping
        intentParameter="account.name"
        urlParameter="accountName" />
    </fulfillment>

    <!-- Define parameters with inventories here -->
    <parameter name="account.name">
      <entity-set-reference entitySetId="accountNameEntitySet" />
    </parameter>
  </action>

  <entity-set entitySetId="accountNameEntitySet">
    <!-- Provide an identifier per entity -->
    <entity
      name="fund"
      alternateName="@array/fund_synonyms"
      identifier="fund" />
    <entity
      name="member"
      alternateName="@array/member_synonyms"
      identifier="member" />
  </entity-set>

</actions>

如果有人能幫我解決,我將不勝感激。 :). 請注意:我的應用程序已經部署為游戲控制台中的草稿。

現在應該解決這個問題。 如果您仍然遇到此問題,請隨時通知我。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM