Downloading images to add to responses (API operations)
If you have implemented your own application with the Amazon Q Business Chat and ChatSync
APIs, you can use the GetMedia API operation
to download the images to add to chat responses. You can find the mediaId
using the Chat, ChatSync and ListMessages API operations. The mediaId
is
listed in the textMessageSegments
as part of the source attribution.
aws qbusiness get-media \ --application-id
app-12345abcde
\ --conversation-idconv-67890fghij
\ --media-idmedia-12345abcde
\ --message-idmsg-67890fghij