***

title: prompt_add_to_section
slug: /reference/python/agents/agent-base/prompt-add-to-section
description: Append content to an existing prompt section or create it if it does not exist.
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

Append content to an existing section. If the section does not exist, it is created
automatically.

## **Parameters**

<ParamField path="title" type="str" required={true} toc={true}>
  Title of the section to update (or create).
</ParamField>

<ParamField path="body" type="Optional[str]" toc={true}>
  Text to append to the section body.
</ParamField>

<ParamField path="bullet" type="Optional[str]" toc={true}>
  A single bullet point to add.
</ParamField>

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

## **Returns**

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

## **Example**

```python {5-6}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support")
agent.prompt_add_section("Rules", bullets=["Be polite"])
agent.prompt_add_to_section("Rules", bullet="Never lie")
agent.prompt_add_to_section("Rules", bullets=[
    "Keep responses concise",
    "Ask clarifying questions when needed"
])
agent.serve()
```