A modern cosmetics e-commerce website is incomplete without a virtual assistant for product consultation and customer care. In this section, we will use Amazon Bedrock – a fully managed service that offers access to leading Foundation Models.
To adhere to Security Best Practices, we will absolutely not call Bedrock directly from the Frontend (React). Instead, the user interface will send the question to our Amazon ECS Backend. The Backend will verify access permissions and then call the Bedrock API to generate a response and return it to the customer.