> For the complete documentation index, see [llms.txt](https://documentation.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ajaxsearchpro.com/autocomplete-and-keyword-suggestions/keyword-suggestions.md).

# Results and Keyword suggestions

Predictive keyword and results suggestions

{% embed url="<https://youtu.be/ZhUc4hsUHFQ?si=OCqkbNb4p0mcyTwm>" %}

![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2F9ASc8EhhyeIXVEMi74pV%2Fimage.png?alt=media\&token=26c1a37c-04d7-4e65-8fbe-17b8497f0a08)

### Results Suggestions

Results suggestions appear when the keyword does not match any results. The plugin will get the first matching keyword from the selected sources, make a search query and if anything matches it will suggests the keyword and the resutls.

![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FujwJlGDmvCp9Q8WWSfW9%2Fimage.png?alt=media\&token=d5d8ce00-becc-4ed4-8497-e639b8d3f263)![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2F4OGL2h13MMBCTpatAPeh%2Fimage.png?alt=media\&token=7b6f34ef-72c7-4b39-91a4-8a49406298c7)

### Keyword Suggestions

Keyword suggestions appear when no results match the keyword.

![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FOi0DObwEI7IfztOapP6x%2Fimage.png?alt=media\&token=bc02c83d-0404-4f47-a70f-b421a38e8b5c)![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FFbi9mfhxBDz28AqRzjNe%2Fimage.png?alt=media\&token=fe74c441-56d5-4ee1-9b7f-d03e0d9cb19f)

### Suggestions sources

Currently four different keyword suggestions sources are supported:

* Google keyword suggestions
* The search statistics database
* Post titles
* Categories, tags and other Taxonomy Terms

![](http://i.imgur.com/0GJO96W.png)

You can multiple sources at the same time. Use the drag-and-drop box to select which sources you would like to use. **The order matters**.

The plugin will go through the selected sources (in order) until a keyword is returned.

### Maximal keyword length & count

The maximal keyword length is definable, to avoid lengthy suggestions. Keywords above the defined length (60 by default) will be ignored.

![](http://i.imgur.com/hPjbd8H.png)

By default the plugins shows 10 keywords, but of course you can change that if you want.

![](http://i.imgur.com/yhk0u5e.png)

### Keyword and Results Suggestion Box Styling

The styling settings can be accessed under the `Theme & Styling -> Keyword Suggestions` panel, or by clicking on the **Go to Keyword Suggestions styling options >>** link on the settings.

![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FLuc3Cn6i1pAHNZPDq6on%2Fimage.png?alt=media\&token=f4ca5fe3-421d-4df4-948a-66a9a14bef95)![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2F4qxPm7uoiQppephyY1zR%2Fimage.png?alt=media\&token=73bf5849-7ea9-4029-9e16-9b42c8f4740c)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.ajaxsearchpro.com/autocomplete-and-keyword-suggestions/keyword-suggestions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
