***

title: addSection
slug: /reference/typescript/agents/context-builder/step/add-section
description: Add a POM section to the 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

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

## **Parameters**

<ParamField path="title" type="string" required={true} toc={true}>
  Section heading (rendered as a Markdown `##` heading).
</ParamField>

<ParamField path="body" type="string" required={true} toc={true}>
  Section body text.
</ParamField>

## **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.');
```