> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Agent Node and Search AI to Generate Answers

[Back to How-to Guides](https://koreai.mintlify.site/ai-for-service/automation/how-tos/guide.md)

The Agent Node uses Search AI as a retrieval engine. When a user asks a question, the Agent Node queries Search AI across indexed websites and PDFs, retrieves relevant snippets, and generates an answer. The answer is stored in session memory. For follow-up questions, the Agent Node combines the stored answer with new Search AI results, producing consistent, multi-turn responses grounded in your verified content.

## Prerequisites

* The [Agent Node](https://koreai.mintlify.site/ai-for-service/automation/agent-node) feature is [enabled](https://koreai.mintlify.site/ai-for-service/generative-ai-tools/genai-features.md#enable-a-genai-feature).
* A [custom tool calling prompt](https://koreai.mintlify.site/ai-for-service/automation/agent-node#prompt-setup) is selected for the Agent Node.
* Search AI is configured.

## Setup

### Step 1: Configure Search AI

Index your content in Search AI:

* [Configure Web Crawl for Websites](https://koreai.mintlify.site/ai-for-service/searchai/content-sources.md#websites)
* [Upload Documents](https://koreai.mintlify.site/ai-for-service/searchai/content-sources.md#documents)

### Step 2: Create a Dialog and Configure the Agent Node

1. [Create a new dialog.](https://koreai.mintlify.site/ai-for-service/automation/agent-flows.md#dialog-tasks)

2. Add an [Agent Node](https://koreai.mintlify.site/ai-for-service/automation/agent-node) to the dialog. Select your model and tool calling prompt.

3. Add a **System Context** that instructs the model to use Search AI results. For example:

   > Use Search AI results as the primary source of truth. Generate accurate answers using the website and PDF content. Consider the previous answer when generating responses to follow-up questions.

4. In the **Tools** section, enable Search AI and specify the response path. For example:

   ```
   context.SearchAINode.{{SearchAInodename}}.response.answer
   ```

5. [Test the flow in the Playground](https://koreai.mintlify.site/ai-for-service/automation/testing/playground.md) to verify accurate, context-aware responses.

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.