The demo
How the three demo roles work, what sample data each copy holds, and what the demo buttons do.
The demo lets anyone try ActionPotential without an account. Each sign-in builds a private copy of a sample business, with sample data only, and deletes it after 24 hours. Every number in a demo copy is demo data.
What it does
Open /demo and pick a role. Each click makes a new Demo_Copy and signs you in to it.
| Role | Sees | Starts on |
|---|---|---|
| Owner | Everything: imports, the consent ledger, settings and the demo actions. All three events. | Today |
| Booth staff | Expo Mode and the member pages, no owner pages. Delhi Stationery Expo and Pune Book Fair. | Today |
| Admissions officer | A school open house (an institutional event), no owner pages. Greenfield School Open House only. | Events |
Test credentials: there is no password. Each role signs in only with its button on /demo. The address of a demo user is <role>-<first 8 characters of the copy's id>@demo.test, and its password hash can never match, so password sign-in is impossible.
The sample business
"Sharma Educational Supplies", with dates set relative to the day the copy is made:
- Delhi Stationery Expo (trade show, Pragati Maidan, New Delhi, from two days ago to yesterday), with five captured cards, three of them hot.
- Pune Book Fair (Pune Exhibition Centre, about six weeks ago), with one capture: Priya Nair, hot.
- Greenfield School Open House (school or college event, Gurugram, yesterday), with two captures.
- One stalled deal (owner copy only): Kabir Mehta of Mehta Stationers, at the negotiating stage, ₹400,000 quoted, his last message 120 days ago, ten messages and three meetings. Revival shows "Went quiet after the price, 4 months ago, score 82."
All phone numbers are in the reserved range +91 99999 0xxxx and all email addresses use example.com or .test, so no real person is contacted.
Demo actions
Today shows a "Demo actions" box in a demo copy.
| Button | Who | What happens |
|---|---|---|
| Import the sample WhatsApp chat | Owner | Imports a one-to-one chat of 600 Hinglish messages through the normal import path |
| Import the sample mailbox | Owner | Imports 140 mails: 96 are skipped as newsletters, the other 44 form 9 threads |
| Simulate a visitor consenting at the booth | Everyone | A sample visitor, Rohan Bhatt, signs up for a follow-up through the real visitor form; a follow-up draft goes to the Approval desk and their receipt page opens |
| Withdraw as a visitor | Everyone | That visitor withdraws everything; their waiting draft becomes blocked with the reason |
| Tamper with the ledger | Owner | Changes one character in an exported copy of the ledger and checks it; /consent names the first broken event. The stored ledger is not changed |
Limits
- The demo runs only where
DEMO_ENABLED=true. It is off by default. - Demo copies run in Sandbox_Mode: the AI is simulated, its output carries the Simulated label, and nothing is ever sent to anyone. Card photos taken in a demo copy show one of six sample cards.
- Each copy is deleted by the hourly clean-up job of the Worker, through a database function that can delete only an expired demo copy. A copy can outlive 24 hours by up to an hour, or longer if the Worker is not running.
- Five demo sign-ins per minute per network address, because each one builds a whole copy.
- "Withdraw as a visitor" works only in the same browser that ran the booth simulation, for 24 hours (the receipt is kept in a cookie).
- What the sample imports find comes from the simulated extraction.
npm run demo:refreshchecks that the sample files still parse to 600 messages and 140 mails, and the browser tests intests/e2e/demo.spec.tspassed on a local build. The demo has not been run end to end on the public site.
Troubleshooting
| What you see | What to do |
|---|---|
| "The demo is switched off on this site." | Set DEMO_ENABLED=true and restart the Web process. |
| "Too many demo sign-ins from your network. Wait a minute and try again." | Wait a minute. |
| "That demo action is for the owner role…" | Sign in to the demo again as the owner. |
| "Demo actions run only in a demo copy…" | You are in a real workspace, or the copy expired. Open /demo again. |
| "Run "Simulate a visitor consenting at the booth" first…" | Run the booth simulation first, in the same browser. |
| "The ledger is empty…" | Run the booth simulation first, then tamper. |
| "The demo action could not finish…" | Nothing else was changed. Try again. |
| An import stays "In progress" | The Worker must be running (npm run start:worker). |
Since CR-02
- Time travel. In a demo copy the Judge Mode panel offers "+14 days", "+30 days" and "Reset". They move the copy's clock (at most 120 days ahead), so Today, reminders and the revival list move with it. They do nothing outside a demo copy.
- Paste and stitch.
/demohas a paste box with a sample Hinglish chat. Paste it to see the messages join the person their card already made, then "Draft a reply" to see a draft appear. With motion off, the end state shows at once.