# Create a Complex Boolean Search using AI

Creating a complex search with multiple terms can be a time-consuming task. With Govtribe AI you can speed up this process by asking the AI to generate a list of terms that you can use for creating complicated boolean searches, and market reports.&#x20;

### Step 1: Navigate to AI Insights:

<figure><img src="/files/QE5aDqcxqHjNDkWss6xQ" alt=""><figcaption></figcaption></figure>

### Step 2: Now on this page, try entering the following prompt:

**"Create a list of keywords related to \[insert market of interest]"**

So for example, say you were interested in IT - specifically data networks, cyber security, and firewall. You can enter the following:

<figure><img src="/files/JQuZCmVWjnBxvgSUXDS5" alt=""><figcaption></figcaption></figure>

I then got back some terms such as:

<figure><img src="/files/dBbMSSvY4HbUFyqvnD3r" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/iKLl16xDzLzb3mexI0f0" alt=""><figcaption></figcaption></figure>

### Step 3: Next, augment your list of terms to include a Boolean operator. If you are not sure what these are, or how they work in the context of a search, you can read more about Booleans [here](/user-guide/getting-started-understanding-the-basics/search-101.md).&#x20;

### To do this - in the same conversation thread follow up with the prompt:

"Take these keywords and organize them into a single list. Separate each term with a space and pipe character"

<figure><img src="/files/ygsuEq6Un2oh0aXh4B0I" alt=""><figcaption></figcaption></figure>

Which then provided the following:

<figure><img src="/files/U1X1EoeIfrCnemfIcKeV" alt=""><figcaption></figcaption></figure>

Finally - we can use these terms to create a search, or even a market report. Copy the terms, and then paste them into a new search like this:

<figure><img src="/files/ZwBQYcid6aGkITTXQiAt" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/jSeDBrPzvYWKNAYwM5cL" alt=""><figcaption></figcaption></figure>

Now add whatever filters you think would work best for the data you are trying to pull.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.govtribe.com/user-guide/use-cases/leveraging-ai-to-empower-your-research/create-a-complex-boolean-search-using-ai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
