aws-samples / aws-lex-web-ui

Sample Amazon Lex chat bot web interface
Other
745 stars 471 forks source link

response cards from lambda functions #80

Closed ghost closed 6 years ago

ghost commented 6 years ago

Are there any limitations with response cards from lambda functions? I have one that displays fine in the test bot console but I can't get it to display in the web ui.

CelticRugger commented 6 years ago

i think its a lex issue. change output from facebook to slack or kik. do this for your cards save intent build publishm it starts working. i had that issue. if you edit that intent i think it resets to facebook so watch for that problem. Amazon need to start fixing these bugs. Regardless of setting in cards it should work so maybe its more a lex ui problem. change card target type from facebook thought seems to display it in lex ui.

regards

Sent from my Samsung Galaxy S6 - powered by Three

-------- Original message -------- From: pocppib notifications@github.com Date: 17/07/2018 16:34 (GMT+00:00) To: aws-samples/aws-lex-web-ui aws-lex-web-ui@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [aws-samples/aws-lex-web-ui] response cards from lambda functions (#80)

Are there any limitations with response cards from lambda functions? I have one that displays fine in the test bot console but I can't get it to display in the web ui.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/aws-samples/aws-lex-web-ui/issues/80, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALeshKubbEY5AG8zcPEDh_9KD2v5YaRnks5uHgP-gaJpZM4VTFG-.

ghost commented 6 years ago

Thanks CelticRugger, ends up it was the "title" field under "genericAttachments". Technically it's optional, so I didn't include it (I was just returning a message with an image), but it works now that I added it.

CelticRugger commented 6 years ago

Ok thanks. I added title field but saw this other issue. You jist have to test and fiddle but it does get to work.

Cheers

Get Outlook for Androidhttps://aka.ms/ghei36


From: pocppib notifications@github.com Sent: Tuesday, July 17, 2018 5:23:58 PM To: aws-samples/aws-lex-web-ui Cc: Karl Roberts; Comment Subject: Re: [aws-samples/aws-lex-web-ui] response cards from lambda functions (#80)

Thanks CelticRugger, ends up it was the "title" field under "genericAttachments". Technically it's optional, so I didn't include it (I was just returning a message with an image), but it works now that I added it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/aws-samples/aws-lex-web-ui/issues/80#issuecomment-405642912, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALeshDP62_8TJWGRXdiHRZLN4n5yEHxTks5uHg-egaJpZM4VTFG-.

sasankmukkamala commented 5 years ago

In my case it was "version" field. (Again, it is technically optional). Source

bshelling commented 5 years ago

It's absolutely the version field if you're using version 0.14.2