***

title: setResetUserPrompt
slug: /reference/typescript/agents/context-builder/step/set-reset-user-prompt
description: Set a user message to inject when this step triggers a context switch.
max-toc-depth: 3
---------------------

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

[ref-step]: /docs/server-sdks/reference/typescript/agents/context-builder/step

Set a user message to inject when this step triggers a context switch.

## **Parameters**

<ParamField path="userPrompt" type="string" required={true} toc={true}>
  User message to inject.
</ParamField>

## **Returns**

[`Step`][ref-step] -- Self for method chaining.

## **Example**

```typescript {9-11}
import { ContextBuilder } from '@signalwire/sdk';

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
ctx.addStep('greet').setText('Welcome the caller.');
const transfer = ctx.addStep('transfer');
transfer.setText('Transfer the caller to billing.');
transfer.setValidContexts(['billing']);
transfer.setResetUserPrompt(
  'The customer needs help with their most recent invoice.'
);
builder.addContext('billing').addStep('invoice').setText('Help with billing inquiries.');
```