***

title: promptAddToSection
slug: /reference/typescript/agents/agent-base/prompt-add-to-section
description: Append content 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/typescript/agents/agent-base

Append content to an existing section.

## **Parameters**

<ParamField path="title" type="string" required={true} toc={true}>
  Title of the section to update.
</ParamField>

<ParamField path="opts" type="object" toc={true}>
  Content to add.
</ParamField>

<Indent>
  <ParamField path="opts.body" type="string" toc={true}>
    Text to append to the section body.
  </ParamField>

  <ParamField path="opts.bullet" type="string" toc={true}>
    A single bullet point to add.
  </ParamField>

  <ParamField path="opts.bullets" type="string[]" toc={true}>
    Multiple bullet points to add.
  </ParamField>
</Indent>

## **Returns**

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

## **Example**

```typescript {7}
import { AgentBase } from '@signalwire/sdk';

const agent = new AgentBase({ name: 'support', route: '/support' });
agent.promptAddSection('Rules', {
  bullets: ['Be polite.'],
});
agent.promptAddToSection('Rules', { bullet: 'Never lie.' });
agent.promptAddToSection('Rules', {
  bullets: [
    'Keep responses concise',
    'Ask clarifying questions when needed',
  ],
});
await agent.serve();
```