Skip to content

Looking to add a picture with every response from the QnA bot

0

Is there some kind of syntax that can pull a picture from S3 to display at every response?

asked 2 years ago243 views

1 Answer
0

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:

  1. First, ensure your images are stored in an Amazon S3 bucket.

  2. In the QnABot content designer, when creating or editing a response, you can use the "Advanced" section to add image attachments.

  3. 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.

  4. To consistently display an image with every response, you would need to add this image URL to each item in your QnABot.

  5. 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

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.