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

# Inworld Graph Runtime Data Intent

[Overview](../overview) > [Inworld Graph Runtime Data](./InworldGraphRuntimeData) > Inworld Graph Runtime Data Intent

**Class:** `UInworldGraphRuntimeData_Intent` | **Inherits from:** `UInworldGraphRuntimeData`

Runtime data class for managing intent recognition in Inworld graphs. This class compiles and stores all necessary data for intent matching operations, including text embeddings for intent recognition, enable/disable states, and asset management. It supports dynamic adding, removing, and toggling of intents during graph execution.

## Methods

* [AddIntentTextEmbeddingAsset](#addintenttextembeddingasset)
* [AddIntentTextEmbeddings](#addintenttextembeddings)
* [DisableIntent](#disableintent)
* [EnableIntent](#enableintent)
* [GetIntentMapKeys](#getintentmapkeys)
* [RemoveIntent](#removeintent)
* [Set](#set)

## Reference

### AddIntentTextEmbeddingAsset

Adds a new intent to the runtime data, with an option to replace an existing set.

<img src="https://mintcdn.com/inworldai/StlB2j_TRDiuzJEK/img/unreal/runtime/nd_img_AddIntentTextEmbeddingAsset.png?fit=max&auto=format&n=StlB2j_TRDiuzJEK&q=85&s=070d3e922e2d22c9aaf88fea8eb60a1b" alt="AddIntentTextEmbeddingAsset Blueprint Node" width="257" height="231" data-path="img/unreal/runtime/nd_img_AddIntentTextEmbeddingAsset.png" />

## Examples

```c++ theme={"system"}
void AddIntentTextEmbeddingAsset(
    FName Id,
    const UInworldTextEmbeddingAsset* Intent,
    bool Replace
)
```

#### Parameters

| Parameter | Type                                | Description                                                               |
| --------- | ----------------------------------- | ------------------------------------------------------------------------- |
| Id        | `FName`                             | The unique identifier of the intent set to be added.                      |
| Intent    | `const UInworldTextEmbeddingAsset*` | The intent to be added.                                                   |
| Replace   | `bool`                              | If true, replaces an existing intent with the same ID. Defaults to false. |

***

### AddIntentTextEmbeddings

Adds a new intent to the runtime data, with an option to replace an existing set.

<img src="https://mintcdn.com/inworldai/StlB2j_TRDiuzJEK/img/unreal/runtime/nd_img_AddIntentTextEmbeddings.png?fit=max&auto=format&n=StlB2j_TRDiuzJEK&q=85&s=43db476dc1dd7e7fa91342c657a0417e" alt="AddIntentTextEmbeddings Blueprint Node" width="227" height="207" data-path="img/unreal/runtime/nd_img_AddIntentTextEmbeddings.png" />

## Examples

```c++ theme={"system"}
void AddIntentTextEmbeddings(
    FName Id,
    const TArray<FInworldTextEmbedding>& Intent,
    bool Replace
)
```

#### Parameters

| Parameter | Type                                   | Description                                                               |
| --------- | -------------------------------------- | ------------------------------------------------------------------------- |
| Id        | `FName`                                | The unique identifier of the intent set to be added.                      |
| Intent    | `const TArray<FInworldTextEmbedding>&` | The intent to be added.                                                   |
| Replace   | `bool`                                 | If true, replaces an existing intent with the same ID. Defaults to false. |

***

### DisableIntent

Disables a specific intent within the runtime data.

<img src="https://mintcdn.com/inworldai/mZNEEtl7pbzQ55cC/img/unreal/runtime/nd_img_DisableIntent.png?fit=max&auto=format&n=mZNEEtl7pbzQ55cC&q=85&s=79a79d65964387954e09bdab85df7291" alt="DisableIntent Blueprint Node" width="175" height="143" data-path="img/unreal/runtime/nd_img_DisableIntent.png" />

## Examples

```c++ theme={"system"}
void DisableIntent(FName Id)
```

#### Parameters

| Parameter | Type    | Description                                          |
| --------- | ------- | ---------------------------------------------------- |
| Id        | `FName` | The unique identifier for the intent to be disabled. |

***

### EnableIntent

Enables a specific intent within the runtime data.

<img src="https://mintcdn.com/inworldai/mZNEEtl7pbzQ55cC/img/unreal/runtime/nd_img_EnableIntent.png?fit=max&auto=format&n=mZNEEtl7pbzQ55cC&q=85&s=09900db67f5a2e44dfdc0e779c6fe691" alt="EnableIntent Blueprint Node" width="175" height="143" data-path="img/unreal/runtime/nd_img_EnableIntent.png" />

## Examples

```c++ theme={"system"}
void EnableIntent(FName Id)
```

#### Parameters

| Parameter | Type    | Description                                         |
| --------- | ------- | --------------------------------------------------- |
| Id        | `FName` | The unique identifier for the intent to be enabled. |

***

### GetIntentMapKeys

Retrieves all intent set IDs currently stored in the runtime data.

<img src="https://mintcdn.com/inworldai/jW_EGJyM8Okshayp/img/unreal/runtime/nd_img_GetIntentMapKeys.png?fit=max&auto=format&n=jW_EGJyM8Okshayp&q=85&s=18f72f261acbcddbd5772914f1d44fa8" alt="GetIntentMapKeys Blueprint Node" width="202" height="76" data-path="img/unreal/runtime/nd_img_GetIntentMapKeys.png" />

## Examples

```c++ theme={"system"}
TArray<FName> GetIntentMapKeys()
```

#### Returns

**Type:** `TArray<FName>`

***

### RemoveIntent

Removes a specific intent identified by its unique ID.

<img src="https://mintcdn.com/inworldai/UjBJ5lUznbajzMw5/img/unreal/runtime/nd_img_RemoveIntent.png?fit=max&auto=format&n=UjBJ5lUznbajzMw5&q=85&s=f2c91c2e172c04e143b214a4df3fb77f" alt="RemoveIntent Blueprint Node" width="175" height="143" data-path="img/unreal/runtime/nd_img_RemoveIntent.png" />

## Examples

```c++ theme={"system"}
void RemoveIntent(FName Id)
```

#### Parameters

| Parameter | Type    | Description                                        |
| --------- | ------- | -------------------------------------------------- |
| Id        | `FName` | The unique identifier of the intent to be removed. |

***

### Set

Sets the initial intent assets for the runtime data.

<img src="https://mintcdn.com/inworldai/UjBJ5lUznbajzMw5/img/unreal/runtime/nd_img_Set.png?fit=max&auto=format&n=UjBJ5lUznbajzMw5&q=85&s=cfaf0a12692e49dc755b7538b2329e8b" alt="Set Blueprint Node" width="229" height="162" data-path="img/unreal/runtime/nd_img_Set.png" />

## Examples

```c++ theme={"system"}
void Set(const TMap<FName, UInworldTextEmbeddingAsset*>& IntentAssets)
```

#### Parameters

| Parameter    | Type                                              | Description                                                            |
| ------------ | ------------------------------------------------- | ---------------------------------------------------------------------- |
| IntentAssets | `const TMap<FName, UInworldTextEmbeddingAsset*>&` | Map of intent identifiers to their corresponding text embedding assets |

***
