***

title: simulateUserInput
slug: /reference/typescript/agents/function-result/simulate-user-input
description: Inject text as simulated user speech input.
max-toc-depth: 3
---------------------

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

[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**

<ParamField path="text" type="string" required={true} toc={true}>
  Text to inject as simulated user speech.
</ParamField>

## **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.');
```