Stop 1 of 5
ShippedProduct Tour
Help on every screen
A short tour on each screen, a box to ask a question, and one button to report a problem. People learn the tool while they use it.
A person opens a new app. The tour knows which screen is open and shows the steps for that role. A question with a secret key in it is not sent, and the tour is shown instead. A bug report becomes one ticket, and a retry finds that ticket instead of making a second.
A real example
The same idea, twice
An everyday case
A person opens a new app. A short tour shows the three buttons they need. They get stuck, so they ask a question right there. Something is broken, so they report it once.
At work
Role-based onboarding and in-app support from approved content. When a report’s delivery is uncertain, Product Tour checks for the existing GitHub issue.
Try it
What would the tour do?
Someone is new to an app. Pick what happens next.
Tap a situation to see what happens.
This is a demo. Nothing is sent or saved.
What you get
Three things, in plain words
Each role sees its own steps
A question with a secret key in it is never sent
Reports stay queued while an uncertain delivery is checked
Better inside Botscape
A host can route a report to GitHub, where your agents can pick up the ticket and trace it back to the screen where it started.
The honest part
Where it stops today
Product Tour was built first for flow-doc-generator, a standard operating procedure recording app, to explain new and complex UIs to employees using the system. We have refined that idea into a reusable help guide and a powerful bug reporting tool that captures the user’s problem at the root of the issue. Botscape’s own onboarding tour lives in the Botscape repository. The memory store and encryption helpers are for tests only, not production.
For your engineers
The technical version
The same package, in the words your engineers use. Open what you need.
Ships as@ryanwatts-getben/product-tourTours, page questions, and experience reports · Version 3.0.0
The numbers it will not move past
Product Tour gives a web app three kinds of help on every page: a versioned tour with steps for each role, short answers drawn from that page’s tour, and experience reports that track delivery to GitHub.
- Question
- 500
- Characters at most in a page question
- Answer
- 120
- Words at most the guide is asked to write
- Report
- 4,000
- Characters at most in a description
- Delivery
- 8
- Retryable failures before a report is marked blocked
- Report retention
- 90 days
- Event log kept for 24 hours
- Secret patterns
- 8
- API keys, GitHub tokens, Slack tokens, AWS keys, PEM keys, bearer tokens, JWTs
How Product Tour works, step by step
1. A tour that knows which page it is on
A host writes a typed catalog of pages. Each page has a route template, a version, steps tied to stable anchors, and the roles each step is for. matchPage picks the best template for the current path.
- Progress is one snapshot per page and version: unseen or dismissed, then idle, open, closed, skipped, or finished.
- Store adapters commit progress as one compare-and-swap, so two tabs cannot both win.
- After an uncertain request the host reloads progress before the person decides to retry.
2. Questions answered from the page, not the internet
The question box sends the page, the question, and approved page state, and nothing else. The model is told to use only that page’s steps and state, to change nothing, and to answer in under 120 words.
- A question that contains a recognizable key or token is not sent. The person gets the tour instead.
- A role whose guide the host has not enabled gets the tour, with the reason not-enabled.
- Unknown body fields are refused, so a page cannot quietly send more than it should.
3. Recovering a report after a dropped connection
Each report carries an idempotency key. If GitHub may have created its issue before a connection dropped, the worker checks the issue marker and links the report when it finds a match.
- Definitive, retryable failures back off at 1, 5, 15, and 60 minutes, then every 6 hours. The eighth failure blocks delivery.
- An uncertain send stays queued until a marker appears or the report expires. The host checks claim ownership before starting a send or recording its result.
- The public issue is titled with the host’s own product name and carries the route, app version, browser categories, and approved page state. What the person typed stays in the host.
What is fixed, and what adapts
The contracts are fixed: route templates, versioned steps, seven progress actions, three public report states, and a delivery ladder with a set back-off.
The host supplies sign-in, storage, encryption, the model call, and GitHub delivery. The package carries no tour library, no database, and no GitHub client.
What it refuses, and how you can tell
- Questions that contain recognizable keys or tokens
- Report fields the form does not collect
- A second GitHub issue for a report that already has one
- Owning sign-in, storage, or encryption
- 1.handleHelpHttp takes an authenticated actor and a normalized request, and returns a status and body for the host to send.
- 2.maintainHelp delivers due reports and purges expired reports and events. The host schedules it.
- 3.The minimal host in the repository imports only public subpaths and runs in the package test suite.
Engineer’s lab: Ask a question, then file a report
Try a page question, then simulate a timeout and see how Product Tour checks for the existing issue.
Ask about this page
Sent to the guide
Deliver one report
- Status
- saved
- Attempts
- 0 of 8
- Issues filed
- 0
Ready to deliver
- Saved with an idempotency key. Status: saved.
The question check uses the package's eight patterns and its 500-character limit, copied here and pinned by a test. The delivery preview uses simulated issue data. Choose “Times out” and then “Works” to find the simulated issue by its marker.
- flow-doc-generator. Where it started: explaining new and complex screens to employees
Claims read from product-tour at f7ac27d.