Docs
Growth

Update the demo agent's settings

PATCH/workspaces/current/agent-settingsNeedsworkspace.settings

Only the fields you send change; playbook is replaced whole. drives and leadCapture need a paid plan (402). blockedDomains entries are normalized (URLs and @domain become the domain). slackWebhookUrl must be a Slack incoming webhook (hooks.slack.com); null removes it.

Authorization

secretKey
headerAuthorizationBearer <sk_…>

A secret API key from Settings → API keys. It acts with its creator's role.

Request Body

application/json
  1. body
suggestions?array<>
Itemsitems <= 4
playbook?
enabled?boolean
drives?boolean
leadCapture?boolean
label?|null
bookingUrl?|string|null
blockedDomains?array<>
Itemsitems <= 200
demoUrl?|string|null
websiteUrl?|string|null
slackWebhookUrl?|string|null

Response Body

OK

application/json
  1. response
agentSettings*

The AI demo agent's settings.

defaults*

Default values.

planFeatures*

What the workspace's plan allows.

Shell
curl -X PATCH 'https://app.cueston.com/api/workspaces/current/agent-settings' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
JSON
{
  "agentSettings": {
    "enabled": true,
    "drives": true,
    "leadCapture": true,
    "label": "string",
    "bookingUrl": "string",
    "suggestions": [
      "string"
    ],
    "playbook": {
      "mode": "support",
      "pitch": "string",
      "valueProps": [
        "string"
      ],
      "qualifyingQuestions": [
        {
          "question": "string",
          "choices": [
            "string"
          ]
        }
      ],
      "keyWorkflows": [
        {
          "name": "Onboarding tour",
          "goal": "string",
          "url": "https://app.acme.com/settings/billing"
        }
      ],
      "primaryCta": {
        "label": "string",
        "url": "https://app.acme.com/settings/billing"
      }
    },
    "blockedDomains": [
      "string"
    ],
    "demoUrl": "string",
    "slackWebhookUrl": null,
    "slackConnected": true
  },
  "defaults": {},
  "planFeatures": {
    "drives": true,
    "leadCapture": true
  }
}