YOUR AGENT DEMO — a copy you can keep
======================================

WHAT THIS IS

This is the whole demo you just saw, as a small set of files. You set up an
agent for a business — its name, its opening hours, what it says when it
answers, which voice it uses — and then you have a conversation with it.

It is a demo, not a phone line. Nobody is called and nothing is booked for
real. It is here so you can show it to someone, poke at it, and change the
wording until it sounds like your own business.


IT RUNS ENTIRELY IN YOUR BROWSER

There is no account to make, no password, no sign-up and no fee. There is
no server: the files below ARE the program, and your browser runs them.

You do not need to be online. Once you have these files on your computer
you can turn the wifi off and the demo still works.

Nothing you type is sent anywhere. Not the business name, not the greeting,
not anything you say to the agent, not an email address you put in at the
end. It is all kept in your own browser on your own machine. If you clear
your browsing data it is gone, and that is the only place it ever was.


FIRST, UNZIP IT

On Windows: right-click the .zip file and choose "Extract All". On a Mac:
double-click it. You should end up with a folder containing index.html and a
handful of other files. Work inside that folder, not inside the zip.

Then pick one of the three options below. The first is enough for most
people. None of them needs the internet.


OPTION A — SIMPLEST: JUST OPEN THE PAGE

Open index.html. Double-click it, or (slightly better) drag it onto a
browser window that is already open — Chrome and Edge are a little fussy
about files opened by double-click, and dragging avoids that.

Turn your volume up, type a business name, press "Run the demo". Done.

This works with no internet at all. The one thing that will NOT work is the
QR code the demo shows: opened this way, the page lives at an address on
your own machine, so the QR points at a file on your computer and a phone
cannot open it. If nobody needs to scan anything, ignore that and stop here.


OPTION B — FOR PHONES: SERVE IT FROM THIS COMPUTER

Use this when you want other people to open the demo on their phones, or
when you want the QR code to work. It still needs no internet — only that
the phones are on the same wifi as this computer.

On Windows: double-click run-offline.cmd in the unzipped folder.

A black window opens and prints two addresses:

    ON THIS LAPTOP:   http://localhost:8080
    ON PHONES:        http://192.168.1.23:8080      (yours will differ)

Your browser opens the first one by itself. Read the second one out to the
room, or let people scan the QR code on screen — served this way, the QR
holds that real address, so scanning it works. Leave the black window open
for as long as you need the demo, and close it when you are done.

No wifi in the room at all? Turn on the hotspot on your phone and join this
computer and everyone else's phones to it. Nobody needs data or a signal;
the hotspot only has to put you on the same network. Windows can do the same
job under Settings > Network & internet > Mobile hotspot.

This needs Node.js installed. If it is not, run-offline.cmd says so in plain
English and points you back at Option A or on to Option C.


OPTION C — FALLBACK: IF YOU HAVE PYTHON INSTEAD

Open a terminal or Command Prompt in the unzipped folder and run:

    python -m http.server 8080

Then open http://localhost:8080 in your browser. Phones on the same wifi can
reach it too, at http://YOUR-IP:8080 — on Windows type  ipconfig  and look
for "IPv4 Address"; on a Mac look in System Settings > Network. The QR code
works here as well. Nothing is downloaded and nothing is installed.


ABOUT THE VOICES

The voices on the voice step are ours, not your computer’s. The demo asks
our server for the audio as it speaks, which is why they sound like people
rather than like a machine reading. That needs internet.

Without internet — and this downloaded copy is meant for exactly that — the
demo falls back to the speech voice built into your own machine. Every
computer and phone ships with one. It sounds flatter, it says the same
words, and the conversation is identical. Nothing breaks and nothing stops.

There is one thing worth doing before you lose the connection: on the voice
step there is a "Warm up these lines" button. Press it while you still have
internet and the demo says each of your agent’s lines once and keeps the
audio on this machine. Those lines then play instantly, in the voice you
chose, with no connection at all.

Our Spanish list is women only for now — the account has no Spanish male
voice yet. The English list has both.

If your machine has no built-in voice either, the demo runs as text: the
same conversations, just silent.


GETTING BACK TO A CLEAN SLATE

The "Reset everything" link at the bottom of the setup screen clears the
business, the greeting, the voice, the agent and any workflow you edited,
and asks you to confirm first. Nothing else wipes your setup: "Run the
demo" only starts the call with whatever you have already configured.


ENGLISH AND SPANISH

The EN / ES switch in the top corner changes everything: the setup screen,
the greeting, the agent’s replies and the voice it speaks in. Both
languages are written for you, so you can hand the same demo to a Spanish-
speaking colleague without redoing anything.


WHAT IS IN HERE

    index.html        the page itself — this is the one you open
    app.css           how it looks
    tts.js            our own voices (needs internet; falls back without it)
    wizard.js         the setup screen, the voices, the workflow editor
    chat.js           the conversation
    flows.js          what the agent says, in both languages
    agents.js         the nine agents and their standard workflows
    vendor/           one small library, for drawing the QR code
    font1/2.woff2     the typeface
    favicon-512.png   the little icon in the browser tab
    lumitalk-logo.png the logo in the header
    run-offline.cmd   double-click this to serve it to phones (Option B)
    tools/serve.js    the little web server run-offline.cmd starts

You can open any of them in a text editor and read them. They are plain
files with no build step and no dependencies.


IF IT DOES NOT WORK

  * No sound at all: check the "Voice on" button in the top bar of the
    demo, then your system volume. Browsers also refuse to make any sound
    until you have clicked something on the page at least once.
  * The voice suddenly sounds flatter: you have lost the connection, so the
    demo has switched to your own machine’s built-in voice. That is on
    purpose. Press "Warm up these lines" next time you have internet and the
    lines you need will keep their real voice.
  * A blank page: you are probably looking at the .zip preview rather than
    the unzipped folder. Extract it properly first.
  * Odd behaviour when you opened index.html directly: use Option B or
    Option C above instead. Both serve the page properly.
  * The QR code will not scan, or scanning it does nothing: you are on
    Option A. Only Option B and Option C give the QR a real address.
  * "Port 8080 is already being used": something else on the machine has it.
    Run  node tools\serve.js --port 8081  and use http://localhost:8081.
  * Safari on an iPhone: it works, but tap the big "Tap to start the call"
    button — that first tap is what lets it speak.
