ghl_agent_studio_execute_deprecated
Executes an agent with a message and returns a non-streaming JSON response with complete output. Deprecated — use the POST agent execute endpoint instead.
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 Endpoint: POST /agent-studio/public-api/agents/{agentId}/execute (Version header: v3; source: v3/agent-studio-v3.json) OAuth scopes: agent-studio.write
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body (schema carried verbatim from the official OpenAPI spec). | |
| source | No | ||
| agentId | Yes |