Google助手无法从BII“ actions.intent.GET_ACCOUNT”获取自定义帐户名称

问题描述

在Android 9上进行了测试。如果在Google助手中查询“使用myApp获取当前余额”和“使用myApp获取储蓄余额”,则可以捕获并识别帐户名称“交易帐户”和“储蓄帐户”。

似乎不适用于自定义帐户名称,例如查询“使用myApp获取资金余额”。预期的帐户名称为“资金帐户”,但实际上返回的是“余额”。

如本文Built in intent "actions.intent.GET_ACCOUNT" in App actions not called by user query "Check Balance in mybank"中所建议的那样,在文件actions.xml文件中使用内联清单来定义自定义帐户名,但是仍然没有运气。

这是actions.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>

非常感谢有人能帮我解决这个问题。 :)。请注意:我的应用程序已作为草稿部署在游戏机中。

解决方法

现在应该解决此问题。如果您仍然遇到此问题,请告诉我。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...