ghl_agent_studio_execute_deprecated
Execute a GoHighLevel agent via the deprecated Agent Studio endpoint and return its complete JSON response; migrate to the documented execute endpoint.
Instructions
Deprecated per official spec — use ghl_agent_studio_execute (POST /agent-studio/agent/{agentId}/execute) instead. [DEPRECATED per official docs — prefer the documented replacement if one exists.] Execute Agent (Deprecated) Deprecated endpoint - use POST /agent/:agentId/execute instead.
Executes the specified agent and returns a non-streaming JSON response with the complete agent output. The agent must be in active status and belong to the specified location. locationId is required in the request body.
Session Management:
For the first message in a new session, do not include the
executionIdin the request payload.The API will return an
executionIdalong with the agent response, which uniquely identifies this conversation session.To continue the conversation within the same session, include the
executionIdfrom the previous response in subsequent requests. Endpoint: POST /agent-studio/public-api/agents/{agentId}/execute (Version header: v3; source: v3/agent-studio-v3.json) Requires a Sub-Account (location) token. OAuth scopes: agent-studio.write
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agentId": "<agentId>",
"body": "<body>"
},
"name": "ghl_agent_studio_execute_deprecated"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body (schema carried verbatim from the official OpenAPI spec). | |
| source | No | Origin channel attributed to this execution for auditing (e.g. public_api, internal) | |
| agentId | Yes | Managed Agent ID |