***

title: setText
slug: /reference/typescript/agents/context-builder/step/set-text
description: Set the step'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-step]: /docs/server-sdks/reference/typescript/agents/context-builder/step

Set the step's prompt text directly. Cannot be used with `addSection()` or
`addBullets()`.

<Warning>
  Mixing `setText()` with `addSection()` or `addBullets()` throws an error.
  Use one approach or the other.
</Warning>

## **Parameters**

<ParamField path="text" type="string" required={true} toc={true}>
  Plain-text prompt instructions for this step.
</ParamField>

## **Returns**

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

## **Example**

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

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
const step = ctx.addStep('greeting');
step.setText('Welcome the caller and ask how you can help.');
```