- Newest
- Most votes
- Most comments
The error "QuickSightEmbedding is not defined" suggests that you haven't properly included or loaded the Amazon QuickSight Embedding SDK in your HTML file. To resolve this issue, you need to include the QuickSight Embedding SDK script before using it in your code.
Here are the steps to fix this problem:
- Add the QuickSight Embedding SDK to your HTML file. You can do this by including the following script tag in the head section of your HTML:
<script src="https://unpkg.com/amazon-quicksight-embedding-sdk@1.x.x/dist/quicksight-embedding-js-sdk.min.js"></script>
Replace "1.x.x" with the specific version you want to use, or keep it as is to always use the latest version.
-
Make sure this script tag is placed before your custom script that uses QuickSightEmbedding.
-
After including the SDK, you should be able to use QuickSightEmbedding in your code.
Additionally, for embedding the Generative Q&A experience, you should use the embedGenerativeQnaExperience method instead of embedSearchEmbed. Here's how you can modify your code:
const result = await QuickSightEmbedding.embedGenerativeQnaExperience(options);
Make sure your backend is correctly configured to generate the embed URL for the Generative Q&A experience. The ExperienceConfiguration in your backend code should include the GenerativeQnA key when calling the generate_embed_url_for_registered_user API.
If you've made these changes and are still experiencing issues, double-check that your server is correctly generating the embed URL and that all necessary permissions are in place. Also, ensure that your AWS account has access to the Generative Q&A feature, as it may not be available in all regions or accounts.
Sources
Embedding the Amazon Q in QuickSight Generative Q&A experience for registered users - Amazon QuickSight
Embedding QuickSight visuals for registered users - Amazon QuickSight
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated 16 days ago
- AWS OFFICIALUpdated 2 days ago

Added <script src="https://unpkg.com/amazon-quicksight-embedding-sdk@1.21.2/dist/quicksight-embedding-js-sdk.min.js"></script> in <Head> tag.