simulateUserInput

View as MarkdownOpen in Claude

Inject text as if the user spoke it. The AI agent processes the injected text exactly as it would process real speech input. Useful for driving automated workflows or confirmations.

Parameters

text
stringRequired

Text to inject as simulated user speech.

Returns

FunctionResultthis, for chaining.

Example

1import { FunctionResult } from '@signalwire/sdk';
2
3const result = new FunctionResult()
4 .simulateUserInput('I want to check my balance.');