---
name: voxego-assistant-setup
description: Set up a Voxego assistant, the chat bubble that answers a business's visitors from its own pages, through the Voxego connector: learn the business, teach it, test it, go live and put it on the site. Use when someone asks to make, set up or configure a Voxego assistant or chat bot for a site or app.
---

# Set up a Voxego assistant

A Voxego assistant is a chat bubble (or an app's own chat screen) that answers a business's visitors from the business's own pages and questions and answers. You set it up through the Voxego connector. Work through the steps in order, keep the person in the loop at the points marked **Ask**, and never confirm a preview on your own.

## 0. Check the connection

Call `org_whoami`. If this connection can't write assistants, tell the person what it says about allowing it, and stop. Note the plan's assistant limits from `assistants_list`. If the person already has an assistant for this site, offer to improve that one instead of making a second.

## 1. Learn the business

Read the site first if you can (the home page, what it sells, prices, FAQ, contact). Then **ask** in one short message, only what you couldn't find:

- The site's address, and its languages. Two or more languages: set `language` to `visitor`.
- The three to five things visitors ask most.
- Where a question it can't answer should go: an email for `contact_email` (fallback `contact`), or a booking page.
- The tone: friendly, neutral or formal.
- Whether it is a health business (clinic, physiotherapist, dentist and the like).
- Orders: Shopify, WooCommerce, the business's own system, a tracking link, or none.
- The chat bubble on the site, or the app's own chat screen.
- Voice chat, so visitors can talk to it like a phone call (€0.05 a minute). Off unless they want it.
- A monthly spending cap. €15 is a fine start.
- What it keeps: `counts` (a short log of what visitors ask, no messages) is the default; `conversations` keeps visitors' messages, with personal details hidden, so the owner can read them and improve answers. Let the person choose; don't push either way.

## 2. Make it

`assistants_create` with: `name`, `instructions`, `tone`, `language`, `welcome`, `fallback` and `contact_email`, `sites` (the site's host, such as `example.pt`), `base_url` (such as `https://example.pt`), up to four `questions` (the most asked ones, 80 characters each), `look` (`colour` from the site's own brand colour), and for a health business `health: true` with `booking_url`. It starts off, so nothing is spent yet.

Write `instructions` in under about 1,500 characters:

- What the business is and who it helps, in one or two sentences.
- What the assistant helps with.
- What it never does (promise discounts, quote a price that isn't in its knowledge, judge a customer's case).
- What it says to questions the business only answers in person, such as "for a pain or injury, say a physiotherapist will assess it at the appointment".

Leave out of `instructions`, because the platform already handles them: order handling or order-number formats (a lookup does that), the site's address or links (`base_url` does that), the health rules (`health` does that), a lookup that isn't on yet, and rules about staying on topic (every reply is checked).

## 3. Teach it

**Pages.** Add 5 to 15 public pages with `assistants_add_knowledge` kind `page`: home, products or services, prices, FAQ, delivery and returns, hours and location, contact, about. Skip blog posts and news. Pages are read again every hour, so they stay current. A page on localhost or behind a sign-in can't be read: paste its text as kind `text`, with the page's path written in (the Returns page, /returns).

**Questions and answers.** Write 10 to 20 pairs (kind `qa`) for the questions visitors ask most. A pair that clearly answers a visitor's whole question is given word for word, faster and cheaper than a written reply, so each one must stand on its own:

- The question in the visitor's own words, not the business's.
- One complete answer: no "as above", and the page's path when there is one (see /returns).
- Only facts the site or the person gave you. Ask before writing a price, a time or a promise you inferred.
- For a site in two languages, write every pair in both languages.

**Facts that disagree.** If two pages say different things (two opening hours, two delivery prices), **ask** the person which is right before adding either.

Then `assistants_get`: every source should be `ready`. For a `failed` page, paste its text instead.

## 4. Test it

Tries are free (50 test replies a day per assistant, 10 a minute), nothing is kept, and they work while it is off. Run about 15 questions with `assistants_try`, in these groups:

| Group | How many | What should happen |
|---|---|---|
| Common questions, as visitors type them (short, a typo) | 6 | `answered` true, the right facts, working links |
| One of the pairs, reworded | 3 | `card` true |
| About the business but not in its knowledge (a product it doesn't sell) | 2 | "couldn't find that" with the contact |
| Not about the business (the weather, homework) | 2 | `turned_away` true |
| A follow-up, passing the first turn as `history` | 1 | answers in context |
| The second language, with `lang` (two-language sites) | 1 | answers in that language |
| Health business only: a symptom ("my knee hurts when I run") | 1 | suggests a visit, no advice |

Check each reply against the knowledge, not only whether it reads well. Show the person a short table: question, what it answered, right or not. Fix what's wrong with a new pair, a missing page, or a line in `instructions`, and try those questions again. If a try says knowledge is still being read, wait and try again before judging it.

## 5. Orders (shops only)

A tracking link (lookup kind `link`) is the simplest start. For live order status, `assistants_add_lookup` with Shopify, WooCommerce, the API the business's system already has (kind `api`: GET with its key, token, password or OAuth 2, and the parts of the record picked from a try as `api.facts`) or the business's own address. The shop's key is pasted by the person on the dashboard only: never ask for it, accept it or repeat it. Then `assistants_try_lookup` with a real order the person gives you, and `assistants_set_lookup` on. Visitors give the order number and its email in a form, never in the chat.

## 6. Voice (only if they asked)

`voice_voices` to pick one of the five voices with the person, then `assistants_update` with `voice: { chat: true, voice }` and, if they want a Listen button under each reply, `read_aloud: true`. Each asks the person first.

## 7. Go live

**Ask once.** Call `assistants_set_status` `live` and any other step that needs a yes (voice, photos, a key). Gather the previews, show them together as one list with the price and the monthly cap they state, and ask once. Only after the person says yes, pass every token to `confirm` as `confirm_tokens`. To try it on a staging site first, add that site to `test_sites`: the bubble works there while off, marked Test.

## 8. Put it on the site

`assistants_embed` gives the script tag. It goes just before `</body>` on every page that should show it:

- **WordPress:** a plugin that adds code to the footer of every page, or the theme's footer.
- **Shopify:** Online Store, Themes, Edit code, `theme.liquid`, before `</body>`.
- **Wix:** Settings, Custom code, Body end, all pages.
- **Squarespace:** Settings, Advanced, Code injection, Footer.
- **Webflow:** Site settings, Custom code, Footer code.
- **Your own code:** the shared layout or template. In Next.js, `next/script` with `strategy="afterInteractive"` in the root layout.

For a site in two languages, give each language's pages their own `data-welcome` and `data-questions` on the tag. Then open the site, check the bubble shows and ask it one question. If it doesn't appear, `assistants_embed` lists what is missing (it isn't live, or the site isn't in `sites`).

**An app's own chat screen** instead of the bubble: the second half of `assistants_embed` has the call, and `assistants_keys_create` makes the key. The key lives on the app's server only, and the app sends the earlier turns as `history` with every message unless the assistant keeps conversations.

**Telegram or Slack as well** (only if they asked): `assistants_channels` says what is connected and gives the dashboard link where the person connects one. A Telegram bot's token is pasted there only: never ask for it, accept it or repeat it. Slack is Add to Slack there; `assistants_set_channel` turns @mentions and direct messages on or off. Same price as the bubble, and it answers only while live.

## 9. Hand over

Tell the person, briefly: what it knows (the pages and the number of pairs), its settings, the price and monthly cap from the go-live preview, where they can see what visitors ask, and that they can run "Improve my Voxego assistant" whenever they want to fill gaps.

## Always

- Say "Voxego's hybrid models"; never guess or name the models underneath.
- A key's secret is shown once: give it to the person and don't repeat it.
- Never confirm a preview without the person's yes.
- Don't tell the person what a law requires, and don't plan their time for them.
