***

title: getPromptSections
slug: /reference/typescript/agents/skill-base/get-prompt-sections
description: Return prompt sections for the agent.
max-toc-depth: 3
---------------------

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

Returns prompt sections that the agent incorporates into its system prompt.

<Note>
  Subclasses should override the internal `_getPromptSections()` method, not
  `getPromptSections()` directly. The public method checks `skip_prompt` before
  delegating to the internal one.
</Note>

Takes no parameters.

## **Returns**

`SkillPromptSection[]` -- Array of prompt section objects. Each section has a `title`
and either a `body` string or a `bullets` array. An optional `numbered` boolean flag renders bullets as a numbered list.

## **Example**

```typescript {17}
import { SkillBase, SkillManifest, SkillToolDefinition, SkillPromptSection } from '@signalwire/sdk';

class WeatherSkill extends SkillBase {
  constructor(config?: Record<string, unknown>) {
    super('weather', config);
  }

  getManifest(): SkillManifest {
    return { name: 'weather', description: 'Provides weather information', version: '1.0.0' };
  }

  getTools(): SkillToolDefinition[] {
    return [];
  }

  protected _getPromptSections(): SkillPromptSection[] {
    return [
      {
        title: 'Weather Information',
        body: 'You can check weather for any location using the get_weather tool.',
      },
      {
        title: 'Weather Guidelines',
        bullets: [
          'Always confirm the location before checking weather',
          'Report temperature in the user\'s preferred units',
        ],
      },
    ];
  }
}
```