Before you start
- The Growth plan or above, on your own account or on the account that owns the chatbot. See Which plan applies.
- The CLI installed and logged in. See Install and log in. The default access from
sitegpt loginis enough for the tasks on this page. - Your chatbot ID. Run
sitegpt chatbots listto find it.
Read the current settings
sitegpt settings general get --chatbot YOUR_CHATBOT_ID. The sections are general, appearance, chat-mode, localization, user-data, lead-form, human-support, and webhooks.
To change a section, use update with flags, or pass a JSON file with --file. set does the same as update.
Check that it works: The output is JSON with one object for each section.
Change the persona
A persona sets the tone and style of the answers. The chatbot uses one persona at a time. See Write instructions.1
Add a persona
--instructions "..." instead of --file. The CLI prints the new persona ID.2
Use the persona
Using persona with the ID and title. sitegpt personas get --chatbot YOUR_CHATBOT_ID YOUR_PERSONA_ID shows Active: yes.
Change the instructions
Instructions are rules that tell the chatbot how to answer. The chatbot uses one set of instructions at a time. See Write instructions.1
Add a set of instructions
--temperature sets the Creativity Level of this set of instructions, from 0 to 1. Lower values give more focused answers. The default is 0.5.2
Use the instructions
instructions update with --file or --temperature.
Check that it works: sitegpt instructions get --chatbot YOUR_CHATBOT_ID YOUR_INSTRUCTION_ID shows Active: yes and the temperature that you set. Then ask a test question with sitegpt messages send --chatbot YOUR_CHATBOT_ID "What can you help with?".
Change the AI model
gpt-4.1 and gpt-4.1-mini. See Choose a model.
Check that it works: The CLI prints Updated general settings. sitegpt settings general get --chatbot YOUR_CHATBOT_ID shows the new gptModel.
Set the support email
sitegpt settings general get --chatbot YOUR_CHATBOT_ID shows the new supportEmail.
Let visitors email the conversation
true fails with HIPAA_CONVERSATION_EMAIL_DISABLED, and on an account with a custom retention agreement with RETENTION_CONVERSATION_EMAIL_DISABLED. See Let visitors email a conversation to themselves.
Check that it works: sitegpt settings general get --chatbot YOUR_CHATBOT_ID shows emailConversationToVisitor set to true.
Limit the messages in one conversation
This setting needs the Growth plan or above on the account that owns the chatbot. See Plans and limits. When the owner’s plan does not include it, a command that changes the setting fails withRATE_LIMITS_NOT_AVAILABLE and “The chatbot owner’s plan does not include a message limit per conversation. The chatbot owner can upgrade the plan on the Billing page.” Your own plan does not count.
sitegpt settings general get --chatbot YOUR_CHATBOT_ID shows rateLimits.thread with enabled set to true and your maxMessages. If the chatbot owner’s plan no longer includes the limit, enabled reads false, and maxMessages still shows the saved number.
Control where the widget appears
Set the domains where the widget can load, and the pages where the floating widget is hidden:- Repeat
--allowed-domainand--excluded-pathfor each value. - Each update replaces the whole saved list.
--clear-allowed-domainslets the widget load on any domain.--clear-excluded-pathsshows the floating widget on every page.
sitegpt settings general get --chatbot YOUR_CHATBOT_ID shows your allowedDomains and excludedPaths.
Change the widget look
--title, --placeholder, --brand-text-color, --icon-size, --icon-shape, and --dark-mode. For the full list, see Settings: appearance.
Some options work only when the chatbot owner’s account has the feature:
--hide-watermark,--watermark-text, and--watermark-linkneed the Remove ‘Powered by SiteGPT’ (Addon) add-on on the Billing page. Without it, they fail withWATERMARK_SETTINGS_NOT_AVAILABLE.--cta-textand--cta-linkneed the call to action button, which only SiteGPT support turns on. Without it, they fail withCTA_SETTINGS_NOT_AVAILABLEand “Contact SiteGPT support to ask about it.”
sitegpt installation snippet --chatbot YOUR_CHATBOT_ID and open it. The widget shows the new color, welcome message, and position. If you set Allowed Domains, the chat link shows “This chat opens on its website” when you open it directly. Open your website instead, or select Chat with your chatbot on the chatbot’s Dashboard page. This also applies to the other checks on this page that open the chat link.
Upload widget icons
png, jpg, jpeg, webp, gif, avif, or svg.
To remove an icon, run
sitegpt icons delete --chatbot YOUR_CHATBOT_ID bot --yes.
Check that it works: The CLI prints Updated with the icon name and the image URL. Open the chat link to see the icon.
Switch between AI mode and human mode
AI is the default. The chatbot answers. AGENT is human mode. Your team answers and the chatbot does not reply. See Conversations and handoff.
If the chatbot uses working hours or visitor choice, set turns them off. SiteGPT keeps their settings. To turn them on again, use the dashboard, API v2, or the update_sitegpt_settings tool of the MCP server.
Check that it works: The CLI prints Updated chat-mode settings. sitegpt settings chat-mode get --chatbot YOUR_CHATBOT_ID shows the new mode.
Ask for visitor details before the chat
--collect is MANDATORY, OPTIONAL, or DO_NOT_COLLECT. The default is DO_NOT_COLLECT. The pre-chat form always asks for the email. --collect-name and --collect-phone add the name and the phone number.
Check that it works: sitegpt settings user-data get --chatbot YOUR_CHATBOT_ID shows the new collectUserDetails. Open the chat link. The form shows before the chat starts.
Set up the lead form
--trigger is intent, unable_to_answer, or after_x_messages. The default is intent.
To choose the fields of the lead form, use --name-field, --email-field, and --phone-field with required, optional, or off (CLI 0.10.0 or later). Email or phone must stay required. For example, to collect leads by phone:
sitegpt settings lead-form get --chatbot YOUR_CHATBOT_ID shows enableLeadCollection set to true, and formFields with the field choices.
Set up human support
1
Turn on human support
2
Set the button text
The buttons under each answer show only when they have text. Set the text of the two buttons and the confirmation message:
3
Tell the AI when to escalate (optional)
The dashboard field When should the AI escalate? is Then pass the file:The policy can be up to 2,000 characters. Leave it empty to use the default triggers. Whatever the policy says, the AI is still told to hand off a message that shows that someone may be at risk of harm. See Messages that show a risk of harm.
escalationPolicy. Put it in a JSON file:sitegpt settings human-support get --chatbot YOUR_CHATBOT_ID shows enableHumanSupport set to true.
Change the widget text
The widget text is in thelocalization section. You change it with a JSON file. You only need to include the text that you want to change.
sitegpt settings localization get --chatbot YOUR_CHATBOT_ID shows your text.
Send events to your webhooks
Your plan must include webhooks. If it does not, the command fails withWEBHOOKS_NOT_AVAILABLE. See Plans and limits.
--message-url and --message-token for messages, and --escalation-url and --escalation-token for escalations. See Webhooks.
Each URL must be a public web address that starts with https:// or http://. A new or changed URL that is not public fails with WEBHOOK_URL_NOT_PUBLIC. See Webhook URLs must be public.
Check that it works: sitegpt settings webhooks get --chatbot YOUR_CHATBOT_ID shows your URLs.
Add a conversation starter
A conversation starter is a suggested question that visitors can select to start a conversation. See Conversation starters.--page for each path, for example --page /pricing --page "/docs/*":
- Each update replaces the starter’s whole list of pages.
- A starter can have up to 20 paths. They follow the same rules as excluded pages.
--clear-pagesshows the starter on every page again. You cannot use it with--page.- Starters cannot be escalation buttons.
Added starter and the ID. Open the chat link. The starter shows before the first message.
Add a follow-up suggestion
A follow-up suggestion is a suggested next question shown under an answer. See Follow-up suggestions.- To open a web page, pass
--link https://example.com/docsinstead of--message. - To hand the conversation to your team, add
--escalation.
Added followup and the ID. Ask a question in the chat. The suggestion shows under the answer.
Change the order of starters or follow-up suggestions
Pass the IDs in the new order:sitegpt followups reorder works the same way.
Check that it works: The CLI prints the list in the new order.
Related
- Manage chatbots
- Command reference: Personas, Instructions, Settings overview, Icons, Conversation starters, Conversation followups