> ## 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.

# Agent AI FAQ

Answers to common configuration questions for Agent AI.

***

## Intent Extraction from Summary

**How do I configure the Intent Extraction from Summary feature?**

This feature extracts customer intents from a conversation summary captured during the On-Connect Dialog Task. Follow these steps to set it up.

**Step 1 — Add the context variable to the Dialog Task:**

1. Go to **Bot Builder** > **Dialog Tasks**.

2. Open the Dialog Task you want to configure for intent extraction.

3. Select **Component Properties** > **Edit Script** (or **Define Script** for a new task).

4. Add the following context variable in the script field:

   ```
   context.session.BotUserSession.landingSummary
   ```

   <img src="https://mintcdn.com/koreai/WjnvqVHpgTXAWc0V/ai-for-service/agentai/agent-experience/faq/faq/edit-script.png?fit=max&auto=format&n=WjnvqVHpgTXAWc0V&q=85&s=d101d1916bd02d79eec382fbbf5e370b" alt="Edit Script" width="674" height="418" data-path="ai-for-service/agentai/agent-experience/faq/faq/edit-script.png" />

5. Select **Save**.

**Step 2 — Enable intent extraction in Welcome Events:**

1. Go to **Welcome Event** > **Configure On-Connect Dialog Task** and enable it.
2. Select the relevant dialog task from the **Select Dialog** dropdown.
3. Enable the **Extract intents from On Connect Dialog Task** checkbox.
4. Select **Save**.

   <img src="https://mintcdn.com/koreai/WjnvqVHpgTXAWc0V/ai-for-service/agentai/agent-experience/faq/faq/welcome-events-extract-intents.png?fit=max&auto=format&n=WjnvqVHpgTXAWc0V&q=85&s=59c9cb685ffe8795a29a452c00e666a9" alt="Welcome Events Extract Intents" width="1920" height="827" data-path="ai-for-service/agentai/agent-experience/faq/faq/welcome-events-extract-intents.png" />
