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

# Sub-Intents and Follow-up Intents

Real conversations jump between topics and combine multiple requests into one. Sub-intents and follow-up intents give you structured ways to handle these natural transitions without manually managing context.

***

## Sub-Intents

A sub-intent is a child intent that is only active when a specific parent intent has already been matched. The Platform automatically adds an output context to the parent and a matching input context to the child, linking them together.

### Ways to Define Sub-Intents

| Method                                               | Description                                                                                                                                                                                         |
| ---------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Intent Node within a Dialog Task**                 | The sub-intent exists only within that dialog and is not available elsewhere. [Learn more](/ai-for-service/automation/dialogs/node-types/user-intent-node)                                          |
| **Existing Dialog Task (Sub-Intent-only)**           | Reusable across multiple dialogs. The dialog cannot be invoked by user utterance and does not appear in the Help task list. [Learn more](/ai-for-service/automation/dialogs/node-types/dialog-node) |
| **Linked Tasks (Manage Sub-Intents and Exceptions)** | Use when the sub-intent can be invoked by the user at any point within the current dialog.                                                                                                          |

***

## Linked Task Exceptions

Linked task exceptions let you define customized Hold and Resume behavior when transitioning between specific tasks. You can also add conditions and map parameters between tasks.

### Pre-assignments and Post-assignments

* **Pre-assignments** — Map current context values to entities in the linked (next) task before it starts.
* **Post-assignments** — Map context values from the linked task back to the main task when the main task resumes.

<Note>Post-assignment applies only when the main task is resumed.</Note>

### Add an Exception

1. Open the dialog task you want to customize.
2. Click the **more options** icon (top-right of Dialog Builder) and select **Manage Interruptions**.
3. Click **Add sub-intents or exceptions**.
4. From the **Tasks** dropdown, select one or more tasks to link.
5. Define the **Hold and Resume settings** and click **Save**.

The selected tasks appear under **Exceptions** on the Manage Interruption Behavior page.

<img src="https://mintcdn.com/koreai/w09kb1UZUWzj6OHW/ai-for-service/automation/intelligence/images/add-exceptions.png?fit=max&auto=format&n=w09kb1UZUWzj6OHW&q=85&s=6177a40cde2941e253f91387dc9713e7" alt="add exceptions" width="780" height="809" data-path="ai-for-service/automation/intelligence/images/add-exceptions.png" />

### Add Conditional Expressions

Conditions limit when the exception's Hold and Resume rules take effect.

1. Click the task name under **Exceptions**.
2. Under **Interruption Precondition**, click **Add If Condition**.
3. Select **Entity** or **Context** as the condition basis.
4. Select the entity or enter the context path.
5. Select a connector: *Exists*, *equals to*, *greater than equals to*, *less than equals to*, *not equal to*, *greater than*, or *less than*.
6. Enter a comparison value.
7. Repeat for additional conditions. All conditions must be met for the rule to apply.

> **Important notes:**
>
> * The same target task can be linked multiple times with different preconditions. The Platform evaluates exceptions in order.
> * If no precondition matches, the intent is added to the Follow-up Intents array.
> * Preconditions are evaluated only on user-triggered intents — not on developer-initiated transitions or end-of-dialog user selections.

<img src="https://mintcdn.com/koreai/Unx9yfFXBZX99ORY/ai-for-service/automation/intelligence/images/interruption-precondition.png?fit=max&auto=format&n=Unx9yfFXBZX99ORY&q=85&s=dbdb656285d828681a803eeac9c8dc26" alt="interruption precondition" width="780" height="808" data-path="ai-for-service/automation/intelligence/images/interruption-precondition.png" />

### Parameter Mapping

**Pre-assignments:**

1. Under **Parameter Mapping**, the Entity pre-assignment section lists entities needed for the linked task.
2. Enter a direct value or context reference for each entity you want to pre-fill.
3. To use a variable, click **Add Key/Value** and enter a variable name and value.

**Post-assignments:**

1. Under **Entity post-assignment**, the section lists entities in the current (main) task.
2. Enter a direct value or context reference for each entity.
3. To use a variable, click **Add Key/Value** and enter a variable name and value.

<Note>To reset a value, use the keyword `null`. Spaces are ignored by the Platform.</Note>

<img src="https://mintcdn.com/koreai/w09kb1UZUWzj6OHW/ai-for-service/automation/intelligence/images/book-flight-example.png?fit=max&auto=format&n=w09kb1UZUWzj6OHW&q=85&s=47e3c26bcffc65d953cc0652303bea22" alt="book flight example" width="776" height="805" data-path="ai-for-service/automation/intelligence/images/book-flight-example.png" />

***

## Follow-up Intents

Follow-up intents are user intents that came up during a dialog but were not handled at the time. The AI Agent captures them in the `FollowupIntents` array.

<Note>The AI Agent does not capture follow-up intents if **Do not Hold and Resume** is selected at the node, task, or app level.</Note>

### Show Follow-up Tasks at End of Dialog

1. Open the dialog task you want to configure.
2. Click the **more options** icon and select **Dialog Settings**.
3. In the **Follow-up Task** section, choose:

| Option                                                                                  | Behavior                                                                                                                         |
| --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **Yes** — Ask the user to select from the follow-up task list at the end of the dialog. | Presents all unhandled intents to the user. Click **Manage Response** to customize the prompt.                                   |
| **No** — Handle the follow-up task list via node connections (default).                 | The AI Agent does not surface follow-up intents automatically. Developers can still access them via the `FollowupIntents` array. |

<img src="https://mintcdn.com/koreai/Unx9yfFXBZX99ORY/ai-for-service/automation/intelligence/images/follow-up-task.png?fit=max&auto=format&n=Unx9yfFXBZX99ORY&q=85&s=717f664b8122080ad5915a575c27e8eb" alt="follow up task" width="735" height="806" data-path="ai-for-service/automation/intelligence/images/follow-up-task.png" />
