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

# Test Meta agent

> Send a message as a customer and get the agent reply, without WhatsApp. Free, and works while the agent is off.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json post /orgs/{org_id}/connections/{connection_id}/whatsapp/phone-numbers/{phone_number_id}/meta-agent/test
openapi: 3.1.0
info:
  version: 1.0.0
  title: Invent API
servers:
  - url: https://api.useinvent.com
security:
  - bearerAuth: []
tags:
  - name: Inbox
  - name: Chats
  - name: Messages
  - name: Contacts
  - name: Custom channels
  - name: Segments
  - name: Suppressions
  - name: Assistants
  - name: Agents
  - name: Skills
  - name: Knowledge
  - name: AI
  - name: Broadcasts
  - name: Email sending
  - name: WhatsApp
  - name: WhatsApp Meta agent
  - name: Tables
  - name: Records
  - name: Views
  - name: Pages
  - name: Connections
  - name: Workspace
  - name: Sub-organizations
  - name: Analytics and logs
  - name: Workflows
paths:
  /orgs/{org_id}/connections/{connection_id}/whatsapp/phone-numbers/{phone_number_id}/meta-agent/test:
    post:
      tags:
        - WhatsApp Meta agent
      summary: Test Meta agent
      description: >-
        Send a message as a customer and get the agent reply, without WhatsApp.
        Free, and works while the agent is off.
      parameters:
        - schema:
            type: string
          required: true
          description: The ID of the org
          name: org_id
          in: path
        - schema:
            type: string
          required: true
          description: The ID of the connection
          name: connection_id
          in: path
        - schema:
            type: string
          required: true
          description: The ID of the WhatsApp phone number the Meta agent runs on
          name: phone_number_id
          in: path
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestWhatsAppMetaAgentSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/TestWhatsAppMetaAgentSchema'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatsAppMetaAgentTestReplySchema'
components:
  schemas:
    TestWhatsAppMetaAgentSchema:
      type: object
      properties:
        user_msg:
          type: string
          minLength: 1
          maxLength: 20000
          description: What the customer says.
        conversation_id:
          type: string
          maxLength: 128
          description: Continue an earlier test conversation. Omit it to start a new one.
      required:
        - user_msg
    WhatsAppMetaAgentTestReplySchema:
      type: object
      properties:
        message_id:
          type: string
        conversation_id:
          type: string
        agent_response:
          type: string
        timestamp:
          type: number
        handoff_reason:
          type: string
        no_response_reason:
          type: string
        quick_replies:
          type: array
          items:
            type: string
        product_variant_ids:
          type: array
          items:
            type: string
      required:
        - message_id
        - conversation_id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````