0

我是 aws-amplify、lex 和 react-native 的新手。

尝试在没有用户交互的情况下以某种意图创建/触发和交互。基本上我正在研究的方法是当用户点击推送通知时它应该自动触发意图(我假设这是机器人首先发起对话的机器人第一次对话)我在 aws re:post https:/ /repost.aws/questions/QUONBDhLUBTViTCP-rsIvXPA/scheduling-a-aws-lex-intent-as-push-notification并知道有这个 putSession API 可用于创建对话,但我不知道关于如何将其与放大相匹配。

我很好奇的另一件事是我从@aws-sdk/client-lex-runtime-service 看到了PutSessionCommand,我看到了一个类 AVOSLexProvider,其中 sendMessage 被配置为使用 PostTextCommand,并且在 App.tsx Interactions.addPluggable 中有这个配置(新的 AVOSLexProvider()); 那么有没有办法我可以使用 aws-amplify 进行 PutSession 如果没有还有其他方法可以实现我的期望吗?

提前致谢。

4

0 回答 0