---
title: "QuestionsAnswersOptions"
slug: "cloud-sdk-search-questionsanswersoptions"
abstract: "The QuestionsAnswersOptions interface represents options for questions and answers."
---
# QuestionsAnswersOptions

|     |     |
| --- | --- |
| Type | Interface |
| Import path | `@sitecore-cloudsdk/search/browser` |

Options for retrieving AI-powered questions and answers.

## Signature

```typescript
export interface QuestionsAnswersOptions {
  keyphrase: string;
  exactAnswer?: ExactAnswerOptions;
  relatedQuestions?: RelatedQuestionsOptions;
  rule?: SearchRuleOptions;
}
```

## Properties

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| `keyphrase` | `string` | Required.<br><br>The text the site visitor enters in the search field to perform a search.<br><br>In questions-answers widgets, Sitecore Search only returns `exactAnswer` and `relatedQuestions` if it qualifies the `keyphrase` as a question or a statement. If it qualifies `keyphrase` as a keyword, the questions-answers widget returns empty.<br><br>Minimum length: 1.<br><br>Maximum length: 100. | `"athletic sneakers"` |
| `exactAnswer` | [`ExactAnswerOptions`](https://doc.sitecore.com/sdk/en/developers/005/cloud-sdk/cloud-sdk-reference/cloud-sdk-search/cloud-sdk-search-browser/interfaces/cloud-sdk-search-exactansweroptions.html "ExactAnswerOptions") | Optional.<br><br>Options to retrieve a single answer to the site visitor's query. Used in the questions-answers object of a widget item. | N/A |
| `relatedQuestions` | [`RelatedQuestionsOptions`](https://doc.sitecore.com/sdk/en/developers/005/cloud-sdk/cloud-sdk-reference/cloud-sdk-search/cloud-sdk-search-browser/interfaces/cloud-sdk-search-relatedquestionsoptions.html "RelatedQuestionsOptions") | Optional.<br><br>Options to retrieve AI-generated question-and-answer pairs relevant to the site visitor's query. Used in the questions-answers object of a widget item. | N/A |
| `rule` | [`SearchRuleOptions`](https://doc.sitecore.com/sdk/en/developers/005/cloud-sdk/cloud-sdk-reference/cloud-sdk-search/cloud-sdk-search-browser/interfaces/cloud-sdk-search-searchruleoptions.html "SearchRuleOptions") | Optional.<br><br>Options for rules. Rules are modifications to widget behavior that can be used to overwrite the natural set of search results, for example, to boost, bury, pin, and blacklist items. | N/A |