agent_studio_execute_agent
Send a message to trigger a GoHighLevel agent execution, optionally associating a contact and maintaining conversation context with a session ID.
Instructions
Execute Agent
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| agentId | Yes | ||
| message | Yes | Message to send to the agent | |
| contactId | No | Contact ID to associate with this execution. When provided, contact data will be hydrated and made available to the agent. | |
| versionId | No | Published version ID to execute. If not provided, the latest published production version will be used. | |
| locationId | No | Location ID Defaults to GHL_LOCATION_ID when omitted. | |
| attachments | No | Attachments for the message | |
| executionId | No | Unique session identifier that maintains conversational context across multiple interactions within the same agent session. Omit this field for the first message in a new session. Include the executionId returned from the previous response to maintain context in subsequent messages. | |
| inputVariables | No | Input variables to pass to the agent. These should match the input variables defined in the agent configuration. |