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

# Send App Message

> Send an [interaction event](/sections/conversational-video-interface/interactions-protocols/overview) to a live conversation from your server, without joining the call. The body is the same message you would send with Daily's `sendAppMessage`.

**Delivery:** Interactions the PAL acts on, such as `conversation.respond`, `conversation.echo`, `conversation.interrupt`, `conversation.overwrite_llm_context`, `conversation.append_llm_context`, `conversation.sensitivity`, `conversation.set_emotion`, and `conversation.tool_result`, go straight to the PAL, in the order you send them. They are not broadcast into the call, so other participants' `app-message` listeners do not see them. Any other `event_type` is relayed into the conversation's Daily room for participants to receive.

**Before the PAL joins:** Interactions sent while the PAL is still starting up wait for it and are handled once it is ready, for up to one hour.

**A `200` means accepted, not acted on:** The interaction was queued for the PAL (or relayed into the room). The PAL handles it when it next can.

**Retries:** A `502` delivered nothing, so retry it. A `504` may have been delivered, so check before retrying anything that should not happen twice, such as `conversation.respond`.

**Limits:** 120 requests per 60-second window per conversation, and a request body of at most 64 KB. Exceeding the rate limit returns `429` with a `Retry-After` header.

**Echo mode:** LiveKit, Agora, and echo-mode conversations accept only `conversation.echo`, `conversation.interrupt`, and `conversation.set_emotion`. Other interactions return `400`.


> [!NOTE]
>
> For AI agents, use `https://docs.tavus.io/openapi.yaml` for the full HTTP API contract.

Use this endpoint to control a conversation from your backend. It takes the same payloads as the [Interaction Events](https://docs.tavus.io/sections/conversational-video-interface/interactions-protocols/overview.md) you send with Daily's `sendAppMessage`, so you don't need to join the call.


## OpenAPI

````yaml post /v2/conversations/{conversation_id}/send-app-message
openapi: 3.0.3
info:
  title: Tavus Developer API Collection
  version: 1.0.0
  contact: {}
servers:
  - url: https://tavusapi.com
security:
  - apiKey: []
tags:
  - name: Videos
  - name: Faces
  - name: Voices
  - name: Conversations
  - name: Deployments
  - name: PALs
  - name: Tools
  - name: PAL Tools
  - name: Connectors
  - name: Pronunciation Dictionaries
  - name: Replacements
  - name: Transcriptions
  - name: Documents
  - name: Memory Stores
  - name: Content Verification
paths:
  /v2/conversations/{conversation_id}/send-app-message:
    parameters:
      - name: conversation_id
        in: path
        required: true
        description: The unique identifier of the conversation.
        schema:
          type: string
          example: c123456
    post:
      tags:
        - Conversations
      summary: Send App Message
      description: >
        Send an [interaction
        event](/sections/conversational-video-interface/interactions-protocols/overview)
        to a live conversation from your server, without joining the call. The
        body is the same message you would send with Daily's `sendAppMessage`.


        **Delivery:** Interactions the PAL acts on, such as
        `conversation.respond`, `conversation.echo`, `conversation.interrupt`,
        `conversation.overwrite_llm_context`, `conversation.append_llm_context`,
        `conversation.sensitivity`, `conversation.set_emotion`, and
        `conversation.tool_result`, go straight to the PAL, in the order you
        send them. They are not broadcast into the call, so other participants'
        `app-message` listeners do not see them. Any other `event_type` is
        relayed into the conversation's Daily room for participants to receive.


        **Before the PAL joins:** Interactions sent while the PAL is still
        starting up wait for it and are handled once it is ready, for up to one
        hour.


        **A `200` means accepted, not acted on:** The interaction was queued for
        the PAL (or relayed into the room). The PAL handles it when it next can.


        **Retries:** A `502` delivered nothing, so retry it. A `504` may have
        been delivered, so check before retrying anything that should not happen
        twice, such as `conversation.respond`.


        **Limits:** 120 requests per 60-second window per conversation, and a
        request body of at most 64 KB. Exceeding the rate limit returns `429`
        with a `Retry-After` header.


        **Echo mode:** LiveKit, Agora, and echo-mode conversations accept only
        `conversation.echo`, `conversation.interrupt`, and
        `conversation.set_emotion`. Other interactions return `400`.
      operationId: sendAppMessage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - message_type
                - event_type
              properties:
                message_type:
                  type: string
                  description: The message type. Use `conversation` for interaction events.
                  example: conversation
                event_type:
                  type: string
                  description: >-
                    The interaction to send, such as `conversation.respond`. See
                    [Interaction
                    Events](/sections/conversational-video-interface/interactions-protocols/overview)
                    for every type and its `properties`.
                  example: conversation.respond
                properties:
                  type: object
                  description: >-
                    The interaction's properties. Their shape depends on
                    `event_type`.
                  additionalProperties: true
                conversation_id:
                  type: string
                  description: >-
                    Optional. Accepted so you can reuse the same payload you
                    send over Daily. The `conversation_id` in the path is always
                    used.
                  example: c123456
            examples:
              respond:
                summary: Make the PAL respond to text
                value:
                  message_type: conversation
                  event_type: conversation.respond
                  properties:
                    text: What are your opening hours?
              echo:
                summary: Make the PAL say exact text
                value:
                  message_type: conversation
                  event_type: conversation.echo
                  properties:
                    modality: text
                    text: One moment while I look that up.
                    done: true
              interrupt:
                summary: Stop the PAL speaking
                value:
                  message_type: conversation
                  event_type: conversation.interrupt
              append_context:
                summary: Add context to the PAL's LLM
                value:
                  message_type: conversation
                  event_type: conversation.append_llm_context
                  properties:
                    context: 'The user''s order #4821 shipped this morning.'
      responses:
        '200':
          description: >-
            Accepted. The interaction was queued for the PAL or relayed into the
            conversation's room. The response has no body.
        '400':
          description: >-
            Bad Request. The body is not a JSON object or is missing
            `message_type` or `event_type`; the conversation does not exist,
            belongs to another account, or has ended; the interaction is not
            supported in echo mode; or the conversation uses your own Daily room
            (send app messages with your Daily API key instead).
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: string
                        example: App messages can only be sent to active conversations.
                  - type: object
                    properties:
                      message:
                        type: string
                        example: Invalid conversation_id
        '401':
          description: UNAUTHORIZED
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Invalid access token
        '409':
          description: Conflict. The conversation's room is no longer available.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: The conversation's room is no longer available.
        '413':
          description: The request body is larger than 64 KB.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Request body exceeds 65536 bytes
        '429':
          description: >-
            Too Many Requests. More than 120 requests in a 60-second window for
            this conversation.
          headers:
            Retry-After:
              description: Seconds until the current rate-limit window resets.
              schema:
                type: integer
                example: 60
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Too many requests
        '502':
          description: Bad Gateway. The interaction was not delivered. It is safe to retry.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: The app message could not be delivered. Please retry.
        '504':
          description: >-
            Gateway Timeout. The interaction may have been delivered. Check
            before retrying one that should not happen twice.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: >-
                      The app message may have been delivered; check before
                      retrying.
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````

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