***

title: add_section
slug: /reference/python/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/python/agents/context-builder/step

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

## **Parameters**

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

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

## **Returns**

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

## **Example**

```python {8-9}
from signalwire import AgentBase

agent = AgentBase(name="my-agent", route="/agent")

contexts = agent.define_contexts()
ctx = contexts.add_context("default")
step = ctx.add_step("collect_info")
step.add_section("Task", "Collect the caller's account information.")
step.add_section("Guidelines", "Be polite and patient. Confirm each piece of information.")

agent.serve()
```