在集成到网站的聊天机器人上显示AWS Lex Responce卡 [英] Showing AWS Lex Responce cards on chatbot integrated to website

查看:69
本文介绍了在集成到网站的聊天机器人上显示AWS Lex Responce卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在AWS Lex中创建了一个聊天机器人并将其与我的网站集成.之后,我在聊天机器人上使用了AWS Lex响应卡,但这些响应卡在集成到网站中的聊天机器人中不起作用.我已经在Facebook页面中集成了相同的bot,因此响应卡工作正常.
如何在我的网站的聊天机器人上显示响应卡?

I have created a chatbot in AWS Lex and integrated it with my website. After that, I used AWS Lex Response Cards on my chatbot and those response cards are not working in my chatbot integrated into my website. I have integrated the same bot in Facebook page there response cards are working fine.
How to display response cards onto my website's chatbot?

推荐答案

Chatbot客户端负责向用户呈现和显示响应和响应卡.Facebook(客户端)能够呈现Lex发送的响应卡.
您可以执行以下操作:

The Chatbot client is responsible for rendering and showing the responses and response cards to the user. Facebook (client) is able to render the response cards sent by Lex.
You could do below:

  • 在您的网站中,您应该编写一些逻辑来呈现响应卡并将JSON转换为HTML
  • 从Lambda发送HTML代码,而不是发送响应卡您要在网站上显示的功能

希望有帮助.

这篇关于在集成到网站的聊天机器人上显示AWS Lex Responce卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆