***

title: prompt_add_subsection
slug: /reference/python/agents/agent-base/prompt-add-subsection
description: Add a subsection to an existing prompt section.
max-toc-depth: 3
---------------------

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

[ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base

Add a subsection to an existing section. If the parent section does not exist, it is
created automatically.

## **Parameters**

<ParamField path="parent_title" type="str" required={true} toc={true}>
  Title of the parent section.
</ParamField>

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

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

<ParamField path="bullets" type="Optional[list[str]]" toc={true}>
  Subsection bullet points.
</ParamField>

## **Returns**

[`AgentBase`][ref-agentbase] -- Returns self for method chaining.

## **Example**

```python {6,8}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support")
agent.prompt_add_section("Capabilities",
    body="You can help with the following:")
agent.prompt_add_subsection("Capabilities", "Orders",
    body="Look up order status, process returns and exchanges.")
agent.prompt_add_subsection("Capabilities", "Billing",
    body="Check account balances and explain recent charges.")
agent.serve()
```