Skip to main content
Use this playbook when the user already uses SiteGPT, gives you a token or profile, or asks you to create or update a chatbot in their account. This is a live account. Read the current state before you change anything.

Before you start

  • Plan: the Growth plan or above for CLI access. See Plans and limits.
  • CLI: installed. See Install and log in.
  • Access: a CLI login. sitegpt login with no --scope gives standard access, which includes every scope in this playbook. Your role limits what a token can do. See Authentication.
  • Input: the website URL, the chatbot purpose, and whether to create a new chatbot or update an existing one. See Ask for the purpose first.
To use a narrower token, request only these scopes:
conversations:write lets you send test messages. Add the matching :delete scopes only if you must delete mistakes.

Steps

1

Check the account

If this fails because you are not logged in, run sitegpt login. If the user names an account or environment, switch to its profile:
2

Create or select the chatbot

List the chatbots first:
To update a chatbot, save its ID and read it:
To create a chatbot, run the command below and save the returned ID as CHATBOT_ID. Do not create a duplicate unless the user asked for a new chatbot.
3

Read the website

Use a browser or fetch tool to read the text. Use raw HTML to find colors, icons, and the sitemap.
Write down the brand name, what the product does, the main URLs, the support and sales emails, the sitemap URL, the brand color, and the best square logo. Do not invent company facts, prices, policies, or emails.
4

Add content

For an existing chatbot, list the current content first:
Add only the sources that are missing. Do not delete, disable, or resync all content unless the user asks.For a new chatbot, add the sitemap. Use a website crawl if the site has no sitemap. See the command reference for crawl options.
If the plan does not include a frequency, SiteGPT sets it to NEVER and adds a warning to the response. Tell the user about each warning. Auto-sync works only for website, sitemap, and GitHub sources. Scan works only for sitemap sources.If pages have a lot of menus or footers, add CSS selectors, for example --include-selector main --exclude-selector nav --exclude-selector footer.
5

Set the appearance and icons

For an existing chatbot, read the current settings first. Keep the user’s brand choices unless they asked for a change.
For a new chatbot, apply the brand color:
Download the logo to a local file, then upload it. The CLI uploads local files only.
6

Set the persona

For an existing chatbot, list the personas first. Do not replace a persona that the user tuned unless they approve.
For a new chatbot, write a persona file, add it, and select it:
7

Set the instructions

For an existing chatbot, list the instructions first. Keep the selected instructions unless the task is to replace them.
For a new chatbot:
8

Add conversation starters and follow-up suggestions

For an existing chatbot, list them first. Add missing ones or improve old ones. Do not delete any without approval.
For a new chatbot, add 3 to 5 of each:
9

Set lead and human support options, if the purpose needs them

For an existing chatbot, read the current settings first. Do not change who gets notified unless the user asks.
For lead generation:
For customer support:

Check that it works

  1. Wait until the content finishes training, then check for failed documents:
    If documents failed, resync them:
  2. Send realistic visitor questions:
    Each answer should use facts from the website.
  3. Show the summary and the install code:
    The dashboard summary shows the training state, document counts, and the chat URL.

Hand back to the human

Report:
  • The chatbot ID and the chat URL. The chatbot is also in the user’s SiteGPT dashboard.
  • The purpose, and any purpose you inferred.
  • The content you added, and any failed documents.
  • What you changed in the persona, instructions, conversation starters, follow-up suggestions, appearance, and icons.
  • Every warning the CLI returned, such as a sync frequency set to NEVER.
  • The install code, if the user asked for it. See Add the chatbot to your website.
  • Changes that you did not make because they need the user’s approval.