> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# simulateUserInput

> Inject text as simulated user speech input.

[functionresult]: /docs/server-sdks/reference/typescript/agents/function-result

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`** `string` — required

Text to inject as simulated user speech.

---

## **Returns**

[`FunctionResult`][functionresult] -- `this`, for chaining.

## **Example**

```typescript {4}
import { FunctionResult } from '@signalwire/sdk';

const result = new FunctionResult()
  .simulateUserInput('I want to check my balance.');
```