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

# KeywordMatcherNode

> Keyword matcher node that matches keywords in text input. This node processes text input and identifies matching keywords from a predefined list.

## Input

**Type:** `String`

The data type that KeywordMatcherNode accepts as input

## Output

**Type:** `GraphTypes.MatchedKeywords`

The data type that KeywordMatcherNode outputs

## Examples

```typescript theme={"system"}
const keywordNode = new KeywordMatcherNode({
keywords: ['urgent', 'important', 'priority', 'asap'],
reportToClient: true
});
```

## Constructors

* [constructor](#constructor)

## Interfaces

* [KeywordMatcherNodeProps](#keywordmatchernodeprops)

***

## Constructors

### constructor

```typescript theme={"system"}
new KeywordMatcherNode(props: KeywordMatcherNodeProps): KeywordMatcherNode
```

Creates a new KeywordMatcherNode instance.

#### Parameters

<ParamField body="props" type="KeywordMatcherNodeProps" required>
  Configuration for the keyword matcher node.
</ParamField>

#### Returns

`KeywordMatcherNode`

## Interfaces

### KeywordMatcherNodeProps

Configuration interface for `KeywordMatcherNode` creation.

#### Properties

**keywords**: `string[] | { name: string; keywords: string[]; }[]`

Keywords can be either a flat array of strings or structured groups. For CPP compatibility, use structured format: `Array<{name: string, keywords: string[]}>`
