***

title: setPrompt
slug: /reference/typescript/agents/context-builder/context/set-prompt
description: Set the context's prompt text directly.
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 the context's prompt text directly. Cannot be used together with `addSection()`
or `addBullets()`.

## **Parameters**

<ParamField path="prompt" type="string" required={true} toc={true}>
  Plain-text 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 ctx = builder.addContext('default');
ctx.setPrompt('You are handling billing inquiries. Be concise and accurate.');
ctx.addStep('greet').setText('Greet the caller and ask how you can help.');
```