Hey guys, I’m facing a problem trying to generate a GenerativeQnA, it works pretty good with Dashboard and QSearchBar but fails with GenerativeQnA with this error:
‘Must specify at least one valid Experience Configuration option.’
Hello Ruan,
First of all Welcome to the QuickSight Community !
The error you’re encountering with GenerativeQnA embedding may be related to incorrect experience configuration parameters. When trying to generate an embed URL for the new Q Topic Generative Q&A experience, the parameter “GenerativeQnA” in ExperienceConfiguration is not recognized by the system. some Reference
To properly embed the Generative Q&A experience, you need to use the correct API operations and configuration parameters. The Amazon QuickSight embedding SDK supports embedding the Generative Q&A experience for both registered and anonymous users. Refer here
For embedding the Generative Q&A experience, you should:
-
Use the GenerateEmbedUrlForRegisteredUser or GenerateEmbedUrlForAnonymousUser API operations depending on your user type.
-
When configuring the experience, make sure to use the correct configuration parameter. For anonymous users, you need to use AnonymousUserGenerativeQnAEmbeddingConfiguration which requires specifying a Q topic ID. Refer here
-
Ensure that the Q topic you’re trying to embed has been properly converted for the new Generative Q&A experience.
-
Use the embedGenerativeQnA method from the amazon-quicksight-embedding-sdk instead of other embedding methods. Refer here
I guess the error message “Must specify at least one valid Experience Configuration option” indicates that the configuration parameter you’re using is not recognized or is incorrectly formatted.
Make sure you’re using the latest version of the SDK and following the correct API documentation for embedding the Generative Q&A experience.
Hope this helps.
Cheers,
Deep
Hello Deep, hope everything is good.
I followed those steps and I am still not able to generate an GenerativeQ&A.
Here is part of the code I am trying to run.
const getSearchbarParams = {
AwsAccountId: accountId,
ExperienceConfiguration: {
GenerativeQnA: {
InitialTopicId: topicId,
},
},
UserArn: userArn,
AllowedDomains: allowedDomains,
SessionLifetimeInMinutes: 10,
};
const quicksightGeneraUrlCommand =
new GenerateEmbedUrlForRegisteredUserCommand(getSearchbarParams);
const quicksightEmbedUrlResponse: GenerateEmbedUrlForRegisteredUserResponse =
await quicksightClient.send(quicksightGeneraUrlCommand);
The problem was the Topic id