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

# addSection

> Add a POM section to the step.

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

Add a POM section to the step. Cannot be used with `setText()`.

## **Parameters**

**`title`** `string` — required

Section heading (rendered as a Markdown `##` heading).

---

**`body`** `string` — required

Section body text.

---

## **Returns**

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

## **Example**

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

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
const step = ctx.addStep('collect_info');
step.addSection('Task', 'Collect the caller\'s account information.');
step.addSection('Guidelines', 'Be polite and patient. Confirm each piece of information.');
```