douxing5199 2019-07-08 22:14
浏览 22

无法向bot添加意图

When trying to add an intent to a bot, I'm getting the following:

{"message":"The resource 'SomeBotThatDefinitelyExists' referenced in resource 'TestBot' was not found. Choose another resource."}

I'm calling the putBot method, and passing the intents below:

`'intents' => [
            [
                'intentName' => 'SomeBotThatDefinitelyExists',
                'intentVersion' => '1',
            ],
            [
                'intentName' => 'TestingTheBot',
                'intentVersion' => '1'
            ]

        ]`

I am absolutely positive that I've successfully created the offending intent. I can see it in the AWS panel, and via the api. The only difference that I can see between the two intents is that the second intent, 'TestingTheBot' has been included in a previous version of the bot. I am able to add it via the api without issue, but, again, trying to add SomeBotThatDefinitelyExists returns the error above.

  • 写回答

1条回答 默认 最新

  • doudou1897 2019-07-09 00:09
    关注

    For anyone with the same issue, I discovered that intents created with putIntent don't have a version. After creating an intent, you must call createIntentVersion. You can then obtain the latest version from the intent returned by the API. That should be the version you use to set the intentVersion property when adding an intent to a bot.

    评论

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line