Skip to content

HighLevel: Create Chat Widget

HighLevel chatWidget.createChatWidget: arguments, response, policy and SDK examples.

← Chat widget operations · Get started

Operation gohighlevel.createchatwidget

Provider route: POST /chat-widget/. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/gohighlevel with npm, or alter-sdk-gohighlevel with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HighLevelIntegration } from "@alter-ai/gohighlevel";
async function execute(input: Parameters<HighLevelIntegration["chatWidget"]["createChatWidget"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HighLevelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.chatWidget.createChatWidget(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_gohighlevel import HighLevelIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HighLevelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.chat_widget.create_chat_widget(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyModelRequired within parentExpand Create Chat Widget — request body — body

Referenced models: Create Chat Widget — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot

8 more schemas are linked from the tables above, on the schema pages.

Create Chat Widget — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
chatTypestringRequired within parentChat type
One of: liveChat, emailChat
defaultbooleanOptionalDefault
deletedbooleanOptionalDeleted
locationIdstringRequired within parentLocation ID
namestringRequired within parentName
settingsJSONOptionalSettings
settings (allOf 1)ModelAll variants applyExpand Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color
versionnumberRequired within parentVersion

Referenced models: Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color

Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color acknowledgement Details icon, live Chat Icon, live Chat Placeholder Color, placeholder Color
FieldTypePresenceDescription and constraints
$objectRoot
iconstringOptionalIcon
liveChatIconstringOptionalIcon for live chat
liveChatPlaceholderColorstringOptionalPlaceholder color for live chat
placeholderColorstringOptionalPlaceholder color
Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color dimensions position, sizes
FieldTypePresenceDescription and constraints
$objectRoot
positionstringOptionalPosition
sizesJSONOptionalTypography Color Options
sizes (allOf 1)ModelAll variants applyExpand Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color dimensions position, sizes sizes height, width

Referenced models: Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color dimensions position, sizes sizes height, width

Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color theme colors, name
FieldTypePresenceDescription and constraints
$objectRoot
colorsJSONOptionalCustom Color Options
colors (allOf 1)ModelAll variants applyExpand Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color theme colors, name colors avatar Background Color, avatar Border Color, background Color, button Color, chat Bubble Color, header Color, received Message Color, sender Message Color
namestringOptionalTheme Name

Referenced models: Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color theme colors, name colors avatar Background Color, avatar Border Color, background Color, button Color, chat Bubble Color, header Color, received Message Color, sender Message Color

Patch Chat Widget — request body — body settings acknowledgement Details, advance Settings, agency Name, agency Website, allow Avatar Image, auto Country Code, chat Icon, chat Type, country Code, dimensions, enable Revisit Message, heading, is Prompt Avatar Image Optimize, legal Msg, live Chat Ack Msg, live Chat Ended Msg, live Chat Feedback Msg, live Chat Feedback Note, live Chat Intro Msg, live Chat User Inactive Msg, live Chat User Inactive Time, live Chat Visitor Inactive Msg, live Chat Visitor Inactive Time, locale, location Country Code, prompt Avatar, prompt Avatar Alt Text, prompt Msg, prompt Type, representative Assigned Message, revisit Prompt Msg, send Action Text, show Agency Branding, show Consent Checkbox, show Live Chat Welcome Msg, show Prompt, sub Heading, success Msg, support Contact, thank You Msg, theme, use Email Field, wa Number, widget Id, widget Placement, widget Primary Color advance Settings a Two P Compliance, all In One Chat Types, all In One Initial Msg, branding Title, business Office Hours, contact Form Intro Message, contact Form Options, contact Form System Message, default Consent Check, enable Contact Form, fb Page, instagram Page, play Notification Sound, prefilled Message Text, redirect, voice Ai Agent, voice Ai Send Action Text a Two P Compliance a2p Opt In Form1, a2p Opt In Form1 Pre Checked, a2p Opt In Form1 Show Checkbox, a2p Opt In Form2, a2p Opt In Form2 Pre Checked, a2p Opt In Form2 Show Checkbox, enable A2 P Compliance, is A2 P Opt In Form1, is A2 P Opt In Form2, message Type, privacy Policy Link, terms Of Service Link
FieldTypePresenceDescription and constraints
$objectRoot
a2pOptInForm1stringOptionalA2P Opt In Form 1
a2pOptInForm1PreCheckedbooleanOptionalPre-checked state for A2P Opt In Form 1 checkbox
a2pOptInForm1ShowCheckboxbooleanOptionalShow checkbox for A2P Opt In Form 1
a2pOptInForm2stringOptionalA2P Opt In Form 2
a2pOptInForm2PreCheckedbooleanOptionalPre-checked state for A2P Opt In Form 2 checkbox
a2pOptInForm2ShowCheckboxbooleanOptionalShow checkbox for A2P Opt In Form 2
enableA2PCompliancebooleanOptionalEnable A2P Compliance
isA2POptInForm1booleanOptionalIs A2P Opt In Form 1 enabled
isA2POptInForm2booleanOptionalIs A2P Opt In Form 2
messageTypestringOptionalMessage Type
privacyPolicyLinkstringOptionalPrivacy Policy Link
termsOfServiceLinkstringOptionalTerms of Service

SDK function policy ID: gohighlevel.createchatwidget. Catalog operation: createChatWidget. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["chat-widget.write"]

Pinned headers: {"Version": "v3"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.