How the agent takes a visitor from "hello" to a submitted quote or support ticket. Each question the agent asks is a stage, stored on the visitor's session, so the conversation can pick up where it left off.
For what visitors can say at any point (questions, small talk, changing their mind), see the Conversation Guide.
Last reviewed: 9 November 2026.
1. Starting a request
A visitor can start in three ways, at any time:
| How | Example | Result |
|---|---|---|
| Starter buttons, shown after a greeting | 🌐 Get a website quote · 🔍 Check a domain · 📧 Hosting & email · 🛠️ Get support · 🧭 Something else | Starts that flow straight away |
| Typing a request | "I need a website for my bakery", "is sambakes.co.uk free?", "my site is down", "I want an app" | Starts the matching flow, using any details already given (domain, website type) |
| Browsing the full list | 🧭 Something else | Category (📱 Apps, 📧 Comms, 🔐 Storage, 🌐 Web), then the service in it |
Details already in the request are not asked for again. "A shop for my bakery" fills in the website type, and "is sambakes.co.uk free?" checks that domain straight away.
When a request matches past work, the agent suggests one similar example once per flow: a showcase website for the same kind of business, or an app in the same store category.
2. The flows
The stage names are what the session stores (SessionStageEnum).
🌐 Website quote
| # | Stage | The agent asks | Accepts |
|---|---|---|---|
| 1 | SELECT_WEBSITE_TYPE | What kind of website do you need? | Buttons (Brochure / info site, Online shop, Bookings & appointments, Portfolio or blog, Something else) or a typed description ("a site for my band") |
| 2 | SELECT_BUDGET_RANGE | Roughly what budget do you have in mind? | Buttons (Under £1,000, £1,000 – £2,500, £2,500 – £5,000, £5,000+, Not sure yet) or a typed amount ("about 2k", "not sure") |
| 3 onwards | Contact details, then project details | See sections 3 and 4 |
📱 Apps, 📧 Comms, 🔐 Storage and web scraping
SERVICE_CATEGORY_SELECTION: the category, unless the request already named it.SERVICE_ITEM_SELECTION: the service, such as Desktop, Mobile or Game. "A mobile app" or "a multiplayer game" skips straight past it, and so does "game server hosting", which is the Game service with its hosting plans as add-ons.SELECT_BUDGET_RANGE: the budget.- Contact details, then project details (sections 3 and 4).
🔍 Domain check
| # | Stage | The agent asks |
|---|---|---|
| 1 | VERIFY_DOMAIN_NAME | Which domain to search for. A name without an ending ("sambakes") gets a choice of endings |
| 2 | DOMAIN_REGISTRATION_DECISION | When available: Register Domain Immediately or Add/Explore Other Services |
| 3 | Contact details | Section 3 |
| 4 | Register only: the summary (section 5). Explore: project details (section 4) |
📧 Hosting & email (on a domain the visitor already owns)
CAPTURE_EXISTING_DOMAIN: which domain.PROMPT_UNIQUE_EMAIL_PREFIX: the email prefix, such as info@ ("skip" for none).- Add-ons (section 4a): the hosting and email plans that suit the request.
- Contact details (section 3), then straight to the summary (section 5).
🛒 Ordering a plan from its page
Order in chat on a plan's page opens the chat with that plan, at the billing option chosen, already added. The visitor's message reads like "Add Web Hosting (Enterprise) (£30 / month) to my order".
- With nothing under way, a new plan order starts. A plan made for personal use or for businesses answers "who is it for?" by itself.
- Add-ons (section 4a): other plans that go with it.
- Contact details (section 3), then the summary (section 5). Submitting saves a lead with the plans, which staff turn into an order.
Mid-request, the plan joins that request's add-ons instead, and the agent asks its open question again.
❓ Asking about a plan from its page
Ask about this plan on a plan's page opens the chat and asks about that plan, at the billing option chosen. The visitor's message reads like "I'd like to know more about Web Hosting (Enterprise) (£350 / year)." The agent answers in one message:
- What it is: the plan's summary.
- Why choose it: who it's made for, whether it's one of the most popular plans, and what paying for a longer term saves.
- What's included: its features.
- Prices (before any VAT): every billing option, with the one chosen marked.
- What it goes with: the services it's for, and the other plans an order of it would offer as add-ons.
- A link to the plan's page, and a 🛒 Order it button that starts the order above.
Asking changes nothing: nothing is added until the visitor orders. Mid-request, the button reads 🛒 Add it (it adds the plan to that request), and the agent asks its open question again.
🛠️ Support request
CAPTURE_SUPPORT_ISSUE: what's wrong, which site or service, and what the visitor sees.CAPTURE_PROSPECT_EMAIL, thenCAPTURE_PROSPECT_NAME(skipped when the name is already known).- The ticket is saved with a reference such as TS-7K4Q2M and emailed to help@tecsmith.info, and staff get an in-app notification. A visitor who verified their email (section 3) has the ticket linked to their account.
Replies continue on the ticket at Dashboard › Support. Emailed replies to the ticket thread are added to it too.
3. Contact details and returning visitors
Every flow asks for the email address first (CAPTURE_PROSPECT_EMAIL).
- New email: the agent asks for the visitor's full name (
CAPTURE_PROSPECT_NAME). - Email already on an account: the agent emails a 6-digit code (
VERIFY_EMAIL_TOKEN), valid for 10 minutes.- Typing "resend" (or "I didn't get a code") sends a new one, as does an expired code.
- After several wrong tries the code is cancelled, and the visitor asks for a new one.
- One email address gets at most 3 codes in 15 minutes and 10 a day, however many chats ask for them. Past that, the agent pauses sending and suggests using the latest code, trying later, or emailing Tom.
- Once verified, the name comes from the account and the flow carries on where it was. The agent only offers the returning-visitor menu (
RETURNING_USER_OPTIONS: New Quote, Something Else, View Quotes, Update Details) when nothing is in progress.
4. Project details
After contact details, quotes continue with:
| Stage | The agent asks | Notes |
|---|---|---|
CAPTURE_PROJECT_TITLE | What shall we call this project? | |
CAPTURE_FEATURES_REQUIRED | Any unique features you need? | |
PROMPT_WANTS_DOMAIN_NAME | Would you like to purchase a domain name? | Skipped when a domain was already chosen. Yes leads to VERIFY_DOMAIN_NAME |
| Add-ons | See section 4a |
Yes/No questions accept typed answers ("yes please", "nah") as well as the buttons.
4a. Add-ons
Instead of fixed hosting and email questions, the agent offers products from the catalogue that suit the request. Each product's Offer with settings in the product editor choose the services (and, for websites, the website types) it's offered with, and whether it suits personal use, a business or either. Domains aren't products, so the domain question stays. Draft, binned and unoffered products are never suggested.
| Stage | The agent asks | Notes |
|---|---|---|
PROMPT_PROJECT_AUDIENCE | Is this for you personally, or for a business? | 👤 Just for me or 🏢 For a business, or typed. Asked once, and only when the answer changes what's offered. Saved on the lead as For |
PROMPT_PRODUCT_OFFER | Product: £15 / month. Would you like me to add it to your quote? | ➕ Add it, ℹ️ Tell me more (summary, every billing option and a link to the product page), No thanks, and ⏭️ No more suggestions when more are waiting. Up to 3 offers per request, one at a time |
PROMPT_PRODUCT_PERIOD | How would you like to pay for Product? | Only for a product with more than one billing option. Each button shows the price and any saving against monthly, such as "Yearly: £175 (save 3%)" |
The products that fit best come first: those offered with fewer services, then those matched to the website type, then popular ones, then the cheaper per month. Questions and small talk at these stages are answered, then the offer is asked again. Once the offers are done, the request goes on to contact details if they're still needed, otherwise to the summary.
5. Summary, submission and editing
CONFIRMATIONshows everything collected and asks to submit: Yes, No or Edit Details. When add-ons were offered it shows For and Add-ons (before any VAT), each with the price chosen, or "None".- Yes submits the request. The visitor gets an account (new visitors are sent a verification link), the lead is saved to the leads list with its add-ons at the prices offered, and the admin is notified on the chat platform. The session is then cleared.
- No or Edit Details opens
EDITING. The visitor picks a field, answers it again, and returns to the summary. Changing the email to one on an account asks for a code first, then returns to the summary. Editing the add-ons asks who it's for again and offers them afresh. - Staff can turn a lead's add-ons into an order from the lead's page in the dashboard. The visitor is invoiced once the order is accepted.
6. Leaving and coming back
- "cancel" (or "can you cancel it?"), "start again" or "restart" ends the request at any stage and offers the starter buttons again.
- "bye", "brb" or "I'll be back" keeps the answers. Saying hi later carries on from the same question.
- Other side remarks and questions are covered in the Conversation Guide.
VIEW_PAST_QUOTESlists a verified visitor's earlier requests.- "/help" explains how to use the agent and how to reach a person.
Where this lives in the code
- Stage handlers:
app/lib/bot-core/handlers/stage/, one file per stage, routed bysession-stage.handler.ts. - Questions and button sets:
app/lib/bot-core/helpers/prompt-helpers.ts. Options such as website types, budgets and the service catalogue:app/lib/bot-core/config/definitions.ts. - Starting flows from requests:
starter-flow.helper.tsandutils/service-intent.ts. - Add-ons:
helpers/add-ons.helper.ts(the questions) andhelpers/product-offer.helper.ts(which products fit, in what order). - Whole conversations are tested in
tests/lib/bot-core/conversations.test.ts. Add a scenario there when a flow changes.
@COPYRIGHT (c) 2026. Thomas EC. Smith (https://www.TECSmith.info). All rights reserved.