Bolcho

Chat & widget

Widget config

Branding, greeting, starter questions, and lead-capture settings for an assistant's chat widget. These drive what the Public Chatbot config endpoint returns.

GET/agents/{id}/widget agents:read

Get widget config

The assistant's widget configuration (created with defaults if none exists).

Path parameters

id*uuidAssistant id.
bash
curl https://api.bolchoai.in/v1/agents/$ID/widget \
  -H "Authorization: Bearer $BOLCHO_API_KEY"

Response

json
{ "enabled": true, "botName": "Acme Assistant", "color": "#10B981", "welcome": "Hi! How can I help you today?", "placeholder": "Type your message…", "suggestions": [], "leadCapture": false, "leadFields": ["name", "email"], "leadRequired": false, "hideBranding": false }
PUT/agents/{id}/widget agents:write

Update widget config

Update branding and lead capture. Only the fields you send are changed.

Path parameters

id*uuidAssistant id.

Body

enabledbooleanTurn the widget on/off.
botNamestringDisplay name in the widget header.
avatarUrlstringAvatar image URL.
colorstringHex accent colour.
welcomestringGreeting message.
placeholderstringInput placeholder text.
suggestionsstring[]Starter / predefined questions.
leadCapturebooleanAsk visitors for contact details.
leadFieldsstring[]Any of name | email | phone.
leadCustomQuestionstringAn extra lead-form question.
leadRequiredbooleanRequire the lead form before chatting.
hideBrandingbooleanHide 'Powered by Bolcho AI' (ignored unless white-label is granted to the workspace).
bash
curl -X PUT https://api.bolchoai.in/v1/agents/$ID/widget \
  -H "Authorization: Bearer $BOLCHO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": true,
  "botName": "string",
  "avatarUrl": "string",
  "color": "string",
  "welcome": "string",
  "placeholder": "string",
  "suggestions": [
    "..."
  ],
  "leadCapture": true,
  "leadFields": [
    "..."
  ],
  "leadCustomQuestion": "string",
  "leadRequired": true,
  "hideBranding": true
}'
Bolcho — Voice AI for Bharat