繁体   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