Search code examples
amazon-web-servicesamazon-s3amazon-ec2aws-lambdaamazon-lex

Does Amazon aws lex chatbot supports videos?


I am new to Amazon aws, Is lex chat bot support video eg MP4 , ?

Assume something like this:

Bot: would you like to watch the tutorial?

Human: Yes.

Bot: displays a video

A video can be alone or with response card . Is this possible????


Solution

  • You can define a custom payload as a response from a Lex bot (using a Lambda function for the fulfillment), but you would also have to integrate the Lex bot into an application that could appropriately handle that response (display the video based on the response from the Lex fulfillment lambda).

    The supported message formats are:

    • PlainText—The message contains plain UTF-8 text.
    • SSML—The message contains text formatted for voice output.
    • CustomPayload—The message contains a custom format that you have created for your client. You can define the payload to meet the needs of your application.
    • Composite—The message is a collection of messages, one from each message group. For more information about message groups, see Message Groups.

    Moere info on Lex messaging and the CustomPayload here: https://docs.aws.amazon.com/lex/latest/dg/howitworks-manage-prompts.html

    So the answer is that it is possible, but not a built in functionality.