***

title: setResetSystemPrompt
slug: /reference/typescript/agents/context-builder/step/set-reset-system-prompt
description: Set a new system prompt for context switching from this step.
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 new system prompt for when this step navigates to another context.

## **Parameters**

<ParamField path="systemPrompt" type="string" required={true} toc={true}>
  New system prompt to use during the context switch.
</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.setResetSystemPrompt(
  'You are now a billing specialist. Help the customer with their invoice.'
);
builder.addContext('billing').addStep('invoice').setText('Help with billing inquiries.');
```