# Try an agent (/id/growsocmed/docs/api-reference/ai-agents/test-agent)

Try the agent: it answers the last customer message, nothing is sent

POST /agents/{id}/test

```json
{
  "tags": [
    "AI agents"
  ],
  "summary": "Try an agent",
  "parameters": [
    {
      "schema": {
        "type": "string",
        "format": "uuid"
      },
      "required": true,
      "name": "id",
      "in": "path"
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "turns": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "enum": [
                      "customer",
                      "account"
                    ]
                  },
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  }
                },
                "required": [
                  "from",
                  "text"
                ]
              },
              "minItems": 1,
              "maxItems": 30
            },
            "channel": {
              "type": "string",
              "enum": [
                "dm",
                "comment"
              ],
              "default": "dm"
            }
          },
          "required": [
            "turns"
          ]
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {}
        }
      }
    }
  },
  "operationId": "test-agent",
  "description": "Try the agent: it answers the last customer message, nothing is sent"
}
```