Skip to main content

Input

Type: any any - The data type that RandomCannedTextNode accepts as input

Output

Type: String The data type that RandomCannedTextNode outputs

Examples

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

Interfaces


Constructors

constructor

new RandomCannedTextNode(props: RandomCannedTextNodeProps): RandomCannedTextNode
Creates a new RandomCannedTextNode instance.

Parameters

props
RandomCannedTextNodeProps
required
Configuration for the random canned text node.

Returns

RandomCannedTextNode

Interfaces

RandomCannedTextNodeProps

Configuration interface for RandomCannedTextNode creation.

Properties

cannedPhrases: string[] List of phrases to randomly select from.