Raw schema
{
"type": "object",
"properties": {
"company": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Summer company ID"
},
"environment": {
"type": "string",
"enum": [
"staging",
"production"
],
"description": "Environment that owns the resource"
},
"installation": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expected_version": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"settings": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Live widget. The approved setup grant includes production installation and activation."
},
"guests_enabled": {
"type": "boolean"
},
"display_name": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "Company name shown in the Messenger header"
},
"logo_url": {
"description": "Public company logo shown in the header",
"type": "string",
"maxLength": 1024
},
"identity": {
"description": "Agent name and AI disclosure. Defaults to named support with a neutral first name and last initial.",
"type": "object",
"properties": {
"mode": {
"default": "human",
"description": "Named support persona (default) or a visible AI assistant label.",
"type": "string",
"enum": [
"human",
"ai"
]
},
"name_style": {
"default": "neutral",
"type": "string",
"enum": [
"neutral",
"female"
]
},
"custom_name": {
"default": "",
"type": "string",
"maxLength": 80
}
},
"additionalProperties": false
},
"allowed_origins": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 256
},
"description": "Exact website origins, https (http://localhost allowed in staging)"
},
"privacy_url": {
"type": "string",
"maxLength": 512
},
"fallback_url": {
"type": "string",
"maxLength": 512
},
"office_hours": {
"type": "string",
"maxLength": 200
},
"presentation": {
"description": "Company chat colors, welcome and chat copy, home/chat links and contact form labels. Plain text only; links use HTTPS. Scoped to this installation.",
"type": "object",
"properties": {
"colors": {
"default": {},
"type": "object",
"properties": {
"accent": {
"default": "#a95424",
"type": "string",
"minLength": 7,
"maxLength": 7,
"pattern": "^#[0-9a-f]{6}$"
},
"customer_bubble": {
"default": "#eef1e7",
"type": "string",
"minLength": 7,
"maxLength": 7,
"pattern": "^#[0-9a-f]{6}$"
}
},
"additionalProperties": false
},
"welcome_title": {
"default": "How can we help?",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"welcome_description": {
"default": "",
"type": "string",
"maxLength": 300
},
"chat_label": {
"default": "Message support",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"header_description": {
"default": "Support team",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"thread_title": {
"default": "What's on your mind?",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"thread_description": {
"default": "Ask a question here. We can help you find the next step.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"actions": {
"default": [
{
"type": "lead_capture",
"label": "Request follow-up",
"show_on_home": false,
"show_in_chat": true
}
],
"maxItems": 6,
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "link"
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"url": {
"type": "string",
"maxLength": 1024
},
"show_on_home": {
"type": "boolean"
},
"show_in_chat": {
"type": "boolean"
}
},
"required": [
"type",
"label",
"url",
"show_on_home",
"show_in_chat"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "lead_capture"
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"show_on_home": {
"type": "boolean"
},
"show_in_chat": {
"type": "boolean"
}
},
"required": [
"type",
"label",
"show_on_home",
"show_in_chat"
],
"additionalProperties": false
}
]
}
},
"lead_capture": {
"default": {},
"type": "object",
"properties": {
"title": {
"default": "Request follow-up",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description": {
"default": "Leave your details so our team can contact you.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"name_label": {
"default": "Name",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"email_label": {
"default": "Email",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"company_label": {
"default": "Company",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"phone_label": {
"default": "Phone number",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"show_phone": {
"default": false,
"type": "boolean"
},
"phone_required": {
"default": false,
"type": "boolean"
},
"message_label": {
"default": "Message",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"show_message": {
"default": true,
"type": "boolean"
},
"show_company": {
"default": true,
"type": "boolean"
},
"company_required": {
"default": false,
"type": "boolean"
},
"consent_text": {
"default": "I agree that this team may contact me using these details.",
"type": "string",
"minLength": 1,
"maxLength": 500
},
"submit_label": {
"default": "Send my details",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"success_message": {
"default": "Your details are saved for our team.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"follow_up_label": {
"default": "Book a call",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"follow_up_url": {
"default": "",
"anyOf": [
{
"type": "string",
"maxLength": 1024
},
{
"type": "string",
"const": ""
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"routing": {
"type": "object",
"properties": {
"clinician_url": {
"type": "string",
"maxLength": 512
},
"sign_in_url": {
"type": "string",
"maxLength": 512
},
"catalog_url": {
"type": "string",
"maxLength": 512
},
"offer_url": {
"type": "string",
"maxLength": 512
},
"offer_label": {
"type": "string",
"maxLength": 80
},
"destination_origins": {
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"maxLength": 256
}
}
},
"additionalProperties": false
}
},
"required": [
"enabled",
"guests_enabled",
"display_name",
"allowed_origins",
"privacy_url",
"fallback_url",
"office_hours"
],
"additionalProperties": false
},
"idempotency_key": {
"description": "Reuse the same key when retrying the same change",
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{8,128}$"
}
},
"required": [
"company",
"environment",
"installation",
"expected_version",
"settings"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}