***

title: setSystemPrompt
slug: /reference/typescript/agents/context-builder/context/set-system-prompt
description: Set a new system prompt that takes effect when this context is entered.
max-toc-depth: 3
---------------------

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

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

Set a new system prompt that takes effect when this context is entered. Triggers
a context reset. Cannot be combined with `addSystemSection()` / `addSystemBullets()`.

## **Parameters**

<ParamField path="systemPrompt" type="string" required={true} toc={true}>
  New system prompt for this context.
</ParamField>

## **Returns**

[`Context`][ref-context] -- Self for method chaining.

## **Example**

```typescript {5}
import { ContextBuilder } from '@signalwire/sdk';

const builder = new ContextBuilder();
const support = builder.addContext('default');
support.setSystemPrompt('You are a patient technical support engineer.');
support.addStep('greet').setText('Greet the caller and ask about their issue.');
```