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

# Prompt Agent

> Prompts an agent with a custom instruction

This endpoint lets you prompt an agent with a custom instruction.


## OpenAPI

````yaml api-reference/openapi.json post /api/v1/conversations/{id}/prompt/
openapi: 3.0.3
info:
  title: Wassist API
  version: 1.0.0
  description: API for building WhatsApp AI agents
servers:
  - url: https://backend.wassist.app
    description: Production
  - url: http://localhost:8050
    description: Development
security: []
tags:
  - name: Agents
    description: Create and manage AI agents
  - name: Conversations
    description: Chat conversations and messages
  - name: WhatsApp
    description: WhatsApp Business account management
  - name: Contacts
    description: Contact management
  - name: Integrations
    description: Third-party integrations
paths:
  /api/v1/conversations/{id}/prompt/:
    post:
      tags:
        - api
      description: |-
        Prompt the agent with a custom instruction.
        This can only be called when a conversation is active.
      operationId: api_v1_conversations_prompt_create
      parameters:
        - in: path
          name: id
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TriggerBotInput'
        required: true
      responses:
        '204':
          description: No response body
        '400':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
                description: Unspecified response body
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TriggerBotInput:
      type: object
      properties:
        prompt:
          type: string
      required:
        - prompt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key authentication. Pass your API key in the X-API-Key header.

````