***

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

Add a POM section to the context prompt. Cannot be used together with `setPrompt()`.

## **Parameters**

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

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

## **Returns**

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

## **Example**

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

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
ctx.addSection('Role', 'You are a billing specialist.');
ctx.addSection('Guidelines', 'Always verify account ownership first.');
ctx.addStep('greet').setText('Greet the caller and ask how you can help.');
```