***

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

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

## **Parameters**

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

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

## **Returns**

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

## **Example**

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

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

contexts = agent.define_contexts()
ctx = contexts.add_context("default")
ctx.add_section("Role", "You are a billing specialist.")
ctx.add_section("Guidelines", "Always verify account ownership first.")
ctx.add_step("greet").set_text("Greet the caller and ask how you can help.")

agent.serve()
```