Skip to main content
PATCH
/
ghl
/
agents
/
{id}
/
update
Update GHL agent prompt
curl --request PATCH \
  --url https://ai.wisepilot.app/api/v1/ghl/agents/{id}/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "personality": "<string>",
  "instructions": "<string>",
  "goal": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "ghlAgentId": "<string>",
    "name": "<string>",
    "status": "<string>",
    "activePromptVersion": {
      "versionNumber": 123,
      "promptText": "<string>",
      "isActive": true
    },
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key prefixed with cr_ (e.g. cr_a1b2c3...)

Path Parameters

id
string
required

GHL agent ID

Body

application/json
personality
string
instructions
string
goal
string

Response

Agent updated

success
boolean
required
data
object