Note: Generative Answers is an Advanced Search Tier feature. Contact your Yext account team for more information. Requires Theme v1.35 or above.
The Generative Answers component (GenerativeDirectAnswer) displays an AI-generated answer at the top of the search results page, synthesized from your knowledge graph content.
Configuration
To enable Generative Answers, add a GenerativeDirectAnswer entry to your componentSettings in the vertical or universal config JSON:
"componentSettings": {
"GenerativeDirectAnswer": {
"cardType": "generative-standard",
"sourceUrlFields": ["landingPageUrl", "c_customSourceUrl"]
}
}
cardType- Required. Set to"generative-standard"to use the default card.sourceUrlFields- Optional. An array of field API names to use as the source URL displayed with the generated answer. The first field with a value will be used.
Custom Generative Answers Card
You can create a custom Generative Answers card using Jambo Commands. This allows you to control the layout and content of the generated answer card.
To create a custom card, use the Override Theme command (Tools > Jambo Commands) to shadow the generative answers card template, then modify it as needed.