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

# Use Agent Node and Search AI to Generate Answers

<Badge icon="arrow-left" color="gray">[Back to How-to Guides](/ai-for-service/automation/how-tos/guide)</Badge>

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](/ai-for-service/automation/agent-node#agent-node) feature is [enabled](/ai-for-service/generative-ai-tools/genai-features#enable-a-genai-feature).
* A [custom tool calling prompt](/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](/ai-for-service/searchai/content-sources?search=Configure+Web+Crawl+for+Websites#websites)
* [Upload Documents](/ai-for-service/searchai/content-sources?search=Configure+Web+Crawl+for+Websites#documents)

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

1. [Create a new dialog.](/ai-for-service/automation/dialogs/manage-dialogs#create-a-dialog-task)

2. Add an [Agent Node](/ai-for-service/automation/agent-node#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](/ai-for-service/automation/testing/playground#playground) to verify accurate, context-aware responses.

***
