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

# RandomCannedTextNode

> Random canned text node for selecting a random text from a list of predefined phrases. This node outputs a randomly selected phrase from the configured list, useful for generating varied responses or fallback messages.

## Input

**Type:** `any`

any - The data type that RandomCannedTextNode accepts as input

## Output

**Type:** `String`

The data type that RandomCannedTextNode outputs

## Examples

```typescript theme={"system"}
const cannedTextNode = new RandomCannedTextNode({
id: 'greeting-node',
cannedPhrases: [
'Hello! How can I help you?',
'Hi there! What can I do for you?',
'Welcome! How may I assist you today?'
]
});
```

## Constructors

* [constructor](#constructor)

## Interfaces

* [RandomCannedTextNodeProps](#randomcannedtextnodeprops)

***

## Constructors

### constructor

```typescript theme={"system"}
new RandomCannedTextNode(props: RandomCannedTextNodeProps): RandomCannedTextNode
```

Creates a new RandomCannedTextNode instance.

#### Parameters

<ParamField body="props" type="RandomCannedTextNodeProps" required>
  Configuration for the random canned text node.
</ParamField>

#### Returns

`RandomCannedTextNode`

## Interfaces

### RandomCannedTextNodeProps

Configuration interface for RandomCannedTextNode creation.

#### Properties

**cannedPhrases**: `string[]`

List of phrases to randomly select from.
