> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whirl.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Save tone example

> Teach an agent how to write, from an example you give it.



## OpenAPI

````yaml POST /operations/save_tone_of_voice_example
openapi: 3.1.0
info:
  title: Whirl API
  version: 1.0.0
  description: >-
    Read and change Whirl workspaces, tasks, reminders, agents' instructions and
    approvals as the signed-in user. The same operations are available as tools
    on the MCP server at /mcp.
servers:
  - url: https://api.whirl.sh/api/v1
security:
  - oauth2: []
paths:
  /operations/save_tone_of_voice_example:
    post:
      tags:
        - agents
      summary: Save tone example
      description: >-
        Learn one user-supplied writing-style example for the selected agent and
        eligible account. The same backend privacy templating and audit as Whirl
        removes identifying details before saving. Rejected examples are never
        stored; no message is sent to the integration.
      operationId: save_tone_of_voice_example
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                connectedAccount:
                  type: string
                  minLength: 1
                  description: >-
                    Exact connected-account selector used when searching or
                    reading messages.
                integrationType:
                  type: string
                  enum:
                    - slack
                    - whatsapp
                    - gmail
                    - aircall
                    - smily
                    - github
                    - zendesk
                    - hostaway
                    - outlook
                    - teams
                    - gorgias
                    - linear
                    - hubspot_conversations
                    - guesty
                    - hospitable
                    - trustpilot
                  description: >-
                    Connected integration type from Connected Integrations. Use
                    "aircall" for Aircall SMS and WhatsApp; "whatsapp" refers to
                    the separate WhatsApp integration.
                example:
                  type: string
                  minLength: 40
                  maxLength: 8000
                  description: >-
                    One original message from the selected account, or one
                    example message the user supplied verbatim for it. The
                    backend removes identifying details while preserving its
                    wording and meaning.
                agentId:
                  type: string
                  minLength: 1
                  maxLength: 64
                  description: Agent whose account-specific tone examples to use.
              required:
                - connectedAccount
                - integrationType
                - example
                - agentId
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  outcome:
                    type: string
                    enum:
                      - saved
                      - duplicate
                      - rejected
                  rejectionReason:
                    type: string
                required:
                  - outcome
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
      security:
        - oauth2:
            - agents:write
components:
  responses:
    Problem:
      description: RFC 9457 problem details
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  schemas:
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        code:
          type: string
      required:
        - title
        - status
        - code
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.whirl.sh/oauth/authorize
          tokenUrl: https://api.whirl.sh/oauth/token
          refreshUrl: https://api.whirl.sh/oauth/token
          scopes:
            workspace:read: >-
              Workspaces, tasks, People, task context, notes, messages,
              reminders, and pending approvals.
            workspace:write: >-
              Create and update tasks, People, task context, notes, tags,
              reminders, and workspaces.
            agents:read: >-
              Agents, runs, configuration, handbook, memory, tone examples,
              scheduled tasks, and connected-service research.
            agents:write: >-
              Edit agent configuration, handbook, memory, tone examples, and
              schedules, and give agents tasks.
            approvals:write: Approve, reject, or edit actions agents want to take.
            offline_access: >-
              Keep access without asking you to sign in again, until you
              disconnect it.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.