- Newest
- Most votes
- Most comments
Yes, you can add images to your QnABot responses, including pulling pictures from Amazon S3 to display with every response. Here's how you can achieve this:
-
First, ensure your images are stored in an Amazon S3 bucket.
-
In the QnABot content designer, when creating or editing a response, you can use the "Advanced" section to add image attachments.
-
Under the "Response Card" area, you'll find a field for "Card ImageUrl". This is where you can specify the URL of your image in S3.
-
To consistently display an image with every response, you would need to add this image URL to each item in your QnABot.
-
The image URL should be in the format of your S3 bucket's public URL, for example: "https://your-bucket-name.s3.amazonaws.com/your-image-name.jpg"
Remember that your S3 bucket and the specific image must be set with the appropriate permissions to allow public access if you want the images to be viewable.
While there isn't a built-in syntax to automatically pull a different picture for every response, you can manually add image URLs to each response. If you want to dynamically change images, you might need to implement a custom Lambda function to select and insert image URLs based on certain criteria.
These images will be displayed in the web UI chat window, and can also be shown on Alexa smartphone apps or Amazon Echo Show devices if you're using those interfaces.
Sources
Adding images to your answers - QnABot on AWS
Relevant content
asked 2 years ago
asked 4 years ago
asked 4 years ago
