3

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?

sid8491
  • 6,622
  • 6
  • 38
  • 64
Akhil Gudimetla
  • 342
  • 3
  • 11

1 Answers1

1

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:

  • In your website you should write some logic to render the response card and convert the JSON into HTML
  • Instead of sending the response card, send the HTML code from Lambda function which you want to show on website

Hope it helps.

sid8491
  • 6,622
  • 6
  • 38
  • 64
  • Can I have any examples of your first suggestion.Converting JSON to HTML.I am facing a similar issue. – lakshmi Jul 19 '20 at 16:17