VideobanaBeta

Walkthroughs

Narrated tours that play on your real interface. Record a task once, make it match your brand, and add one line to your site: every visitor gets a guide that opens the menus, fills in the fields and points at each button. The script is bana.js, and it brings a Guides button, help hotspots, video pop-ups and guide videos along.

Try it on this little app Record a guide
  • Launch videoAda
  • Onboarding guideGrace
  • Q3 reportLinus
Weekly digest by email

Make it yours

Change anything and the app above changes with it: the Guides button, the cards and every tour.

In your account this is Tools → Look & feel, saved once for every site. In code:

Script tag attributes
<script src="/bana.js" data-key="bk_your_site_key"
        data-launcher
        defer></script>
Or from JavaScript
// The standard look: nothing to configure.

What your page hears

Every tour tells your page what happened: send it to your own analytics with Bana.on(…). Start a tour above.

  1. Nothing yet.

Everything above is ordinary HTML with a few attributes, and the script added once. Press Take the tour to watch one play like a video on the real buttons, Invite a teammate for a tour that goes through two screens and does the steps for real, Let me try for a hands-on one that waits for you, hover the pulsing dot, or open the Guides button in the corner. Then change the look in Make it yours, and watch What your page hears. Record a guide opens the recorder on this very page.

Prefer code? Write tours in your own code instead: attributes on your elements, JSON or JavaScript, shipped with your app and reviewed like the rest of it. Both kinds play side by side.

What it is for

  • Onboarding that is always right. A tour points at your real elements, so it follows every redesign: no screenshots to retake, no video to re-record when a button moves.
  • It looks like you. Your brand colour, light or dark cards, round or sharp corners, your site's own typeface and your own words on the Guides button, with a preview on a real page while you choose.
  • Guide videos in minutes. The same recording becomes a narrated screencast video: hidden private details, a pointer that clicks, typed text and key presses, ready for the editor, your help center and YouTube.
  • Help where the question is. Hotspots on new features, a Guides button that lists the walkthroughs of each page, links from emails and docs that open a page with its tour already playing, and numbers on where visitors stop.
  • More than tours, from the same line. An onboarding checklist that ticks itself off, announcements with video for the right visitors, an Ask box that starts the walkthrough at the step that answers, and help for visitors who look stuck. See in-app help.

1. Record a walkthrough

The quickest way to a tour: do the task once on your own app, and Videobana writes it. Everything happens in Tools, where a short guide takes you through the first one.

  1. 1
    Get the recorder
    Add the Videobana Walkthrough Recorder to Chrome from the Chrome Web Store and press its icon on your site (more about it). Or drag the Record a guide bookmark onto your bookmarks bar, once (Tools → Walkthroughs → Set up the bookmark). Both work on any site, even one without the script, signed in as you. Or press New walkthrough, type the address of the page to start on, and it opens there.
  2. 2
    Record by doing
    Press Record and do the task: open the menu, pick the page, open the dialog, type the name. Every click, typed text and key becomes a step with its screenshot, and the page works as usual. The recording bar has Pause, Undo and Stop (or Alt + Shift + R); more below.
  3. 3
    Or write the steps yourself
    Tools → Walkthroughs → Build it by hand makes a walkthrough with no recording: add steps, fill in every field of each (its words, the element it points at, what it does, where the card sits, its page and screenshot), or Import steps from a JSON file. Every step's title is optional, like its detail and narration: a step only needs one of the three. On a walkthrough's Steps tab the same fields can be changed at any time, and Export steps saves them as a file.
  4. 4
    Name it, and say how it plays
    Under the title, Details has a short description (shown in the Guides button, and searchable) and the way it plays: Watch, which plays by itself like a video, or Try it, which waits for the visitor to do each step. Add an intro and Add an ending write a welcome card and a closing card for you.
  5. 5
    Save, and say how visitors follow it
    The walkthrough opens in Tools: edit its words, choose what each step does for real, then in Voice & playback choose how visitors follow it: a voice walkthrough (the browser's voice, or your standard or premium voice, recorded once on our servers from your allowance and played to every visitor), a text-only walkthrough, or both, with the one that starts first. Your site never holds a key; it only plays what is live.
  6. 6
    Test it, then make it live
    Test it on your site with its private preview link, then make it live. Walkthroughs counts starts, how far visitors get and where they stop, and on which pages; nothing about a visitor is kept.
It does the steps for real
A recorded step clicks, types and presses keys on the real page, so the menu opens, the next page loads and the dialog appears before the next step points into it, in any framework. Buttons that save, create or delete something are only shown (you can change that per step). A step that loads another page goes on there, when the page has the script. A walkthrough that goes from page to page takes the visitor to each step’s page first, with your app’s own link when it has one (a single-page app keeps playing), so it can start, or go back a step, from anywhere. Try it: Invite a teammate in the demo above.

2. Make it yours

Tools → Look & feel is where the look is chosen, once, for every site with your script. Nothing to write: change a colour, a corner or the words on the Guides button and a live preview (the real script, on a little app you can click) shows the button, the panel it opens, a step and the intro card, on a light or a dark page, on a computer or a phone. Press Publish and your sites have it within a couple of minutes, the Guides button included; the script tag does not change.

ChoiceWhat it does
ColoursOne of eight palettes, or your own brand colour with an optional second colour for a soft gradient. A warning appears when white text would be hard to read on it.
Light or darkLight, Dark, or Automatic, which follows the visitor's device.
CornersSharp, Soft or Round: the cards, the buttons, the spotlight and the Guides panel.
Text sizeCompact, Standard or Large. Large also makes the cards wider, for readers who need more.
TypefaceStandard, My site's (the font your page already uses), Serif or Mono.
Dim the pageHow much the rest of the page darkens around what a step points at: not at all, a little, medium or a lot.
PointerShow or hide the arrow that glides to each button, clicks it and types.
Guides buttonOn or off. Its words (up to 32 letters), its shape (icon and words, or icon only), one of five icons, the corner, its distance from the bottom and the side (raise it above a chat button), whether phones get it, and the dot that says there is something new.
Words in the panelThe title and the line under it, in your visitors' language and your own tone.
ExtrasThe pulsing hotspots on or off, and the “Made with Videobana” line.
Who wins
The look has three places to come from. What you chose in Appearance applies to every site with your key. An attribute on a site's own script tag (data-accent, data-launcher…) wins over it for that site, and Bana.configure() wins over both. So a team that wants the look in its code can keep it there, and one that does not never has to.

The same look, in your code

Every choice is an attribute of the script tag, and an option of Bana.configure() in camelCase (data-launcher-style is launcherStyle). The Make it yours box in the demo above writes the code for what you pick.

AttributeWhat it does
data-launcherShows the Guides button in a corner, which lists every tour and video of the page. Its value is the label (data-launcher="Need help?"); alone it reads Guides; false hides it.
data-launcher-positionright (default) or left.
data-launcher-stylepill (default: icon and words) or round (icon only).
data-launcher-iconhelp (default), compass, sparkles, book or lightbulb.
data-launcher-bottomPixels between the button and the bottom of the window, 8 to 200 (default 20): raise it above a chat button.
data-launcher-edgePixels between the button and the side of the window, 8 to 200 (default 20).
data-launcher-mobilefalse hides the button on phones (windows under 640 pixels).
data-launcher-dotfalse removes the dot that says there is a guide the visitor has not watched.
data-headingThe title of the Guides panel (default “Help on this page”).
data-introThe line under that title.
data-accentThe brand colour: the cards' buttons, the spotlight and the Guides button (#0ea5e9, rgb(…), oklch(…)).
data-accent-2The second colour of the gradients. Default: the accent.
data-themedark (default), light, or auto, which follows the visitor's device.
data-radiussquare, soft (default) or round: how round the cards, buttons and spotlight are.
data-sizecompact, default or large: the text and the width of the cards.
data-fontsystem (default), site (the font your page uses), serif or mono.
data-dimHow much the page darkens around what a step points at: off, light, medium (default) or strong.
data-pointerfalse hides the arrow that glides to each element.
data-hintsfalse turns the hotspots off.
data-brandingfalse removes “Made with Videobana” from the Guides panel.
JavaScript
// The look can also come from your code. It wins over what the account chose.
Bana.configure({
  accent: "#0ea5e9",        // the brand colour…
  accent2: "#6366f1",       // …and a second one for gradients
  theme: "auto",            // "dark", "light" or "auto" (the visitor's device)
  radius: "round",          // "square", "soft" or "round"
  size: "large",            // "compact", "default" or "large"
  launcher: "Need help?",   // the Guides button's words (null hides it)
  launcherStyle: "round",   // "pill" (icon and words) or "round" (icon only)
  launcherSide: "left",
  launcherBottom: 88,       // above a chat button
});

3. Put it on your site

Tools → Add to your site has the script tag with your site key, and says where to paste it in plain HTML, WordPress, Shopify, Webflow, Wix, Squarespace, Next.js, single-page apps and tag managers. If someone else edits your site, Copy the message writes them the instructions. Every walkthrough you make live for that site then appears there by itself, in the Guides button. The site turns Installed there as soon as the script runs on it, so you know it works before a visitor does.

HTML
<!-- Once, on every page of your app: all your live walkthroughs for this site, in the look you chose in Appearance -->
<script src="https://videobana.vercel.app/bana.js" data-key="bk_your_site_key" defer></script>

<!-- Start one from anywhere: a link, a button, your code, an email -->
<a href="#bana-tour=3fa2c9e01b7d4e55">How do I add a registry?</a>
<button data-bana-play="3fa2c9e01b7d4e55">Show me</button>

<!-- Or one button on every page, for the walkthrough made for that page -->
<button data-bana-play="page">Take a tour</button>

The Guides button

A button in a corner of your site that lists the walkthroughs and videos that help on the page the visitor is on: first those made for this page, then the rest of your app (starting one takes the visitor there). It is searchable once the list is long, shows how many steps and how long each takes, and ticks the ones watched. In Appearance you choose its words, its shape (icon and words, or icon only), one of five icons, the corner, how far it sits from the bottom and the side (raise it above a chat button), whether phones get it, and the dot that says there is something new. Switch it off to start walkthroughs only from your own buttons and links.

How visitors follow a walkthrough

Every tour, recorded or written in your code, gives visitors the same few things on its card. In Voice & playback you decide which way it is offered in: the voice walkthrough (it plays by itself, the text lights up word by word as it is said), the text-only walkthrough (no sound, all the words at once; it waits for Next, or goes on by itself after a moment on each step), or both. When both are on, the card has a button to switch between them, and you choose which one starts first; a visitor who switches keeps their choice, and it wins over yours.

On the cardWhat it does
Voice or text onlyA tour that has a voice also offers text only, with a button on the card (Text only / Play with voice) that switches at any moment, on the same step. With the voice, the text lights up word by word as it is said and the tour goes on by itself (or waits for Next); with text only nothing is said, all the words show at once in plain ink, and the visitor presses Next, or the tour goes on by itself once a step has been up long enough to read (textAdvance), its bar filling as the time runs out. The visitor's choice is remembered, for every tour; until they choose, the tour starts in its startWith.
Pause and PlayPause stops the voice where it is and Play goes on from the same word, not from the start of the step. A browser that refuses sound until the first click pauses the tour with a Play button instead of reading it silently.
ProgressA bar of at most 10 segments, counting every step of the tour (the intro and the ending too). Up to 10 steps, one segment is one step; beyond that each segment stands for a whole or half number of steps, taking segments off until they share the steps evenly (20 steps are 10 segments of 2, 12 are 8 of 1.5, 14 are 7 of 2), and a count that cannot be shared that way (11, 13, 17…) keeps 10 segments that fill one after the other. The 2 / 5 next to it counts the steps.
Skip tourA link under the card (on every step but the last) ends the tour for good: it is remembered, the tour does not start by itself again, and Bana.onSkip and the tour-skip event tell the page. The Guides button still lists it, and starting it there plays it again. ✕ and Escape only close it for now.
Where they left offThe step is remembered, so starting the tour again (the Guides button, a link, Bana.start(id), or by itself when the page loads) continues there; the card says so and offers Start over. It is forgotten when the tour is finished or skipped, after 30 days, or when the tour changes its number of steps.

Start automatically when the page loads

Switch on Start automatically when the page loads in a walkthrough's Voice & playback (autostart: true in a tour you write), and it opens by itself on its page for visitors who have not finished, closed or skipped it. One who left it half way continues where they were. A script tag can decide for the whole page, too:

HTML
<!-- By itself when the page loads: the tour made for each page (for visitors who have not finished, closed or skipped it) -->
<script src="https://videobana.vercel.app/bana.js" data-key="bk_your_site_key" data-autostart defer></script>

<!-- …one tour, by its id -->
<script src="https://videobana.vercel.app/bana.js" data-key="bk_your_site_key" data-autostart="welcome" defer></script>

<!-- …or none: it also switches off the walkthroughs that are set to start by themselves in Videobana -->
<script src="https://videobana.vercel.app/bana.js" data-key="bk_your_site_key" data-autostart="false" defer></script>

Skip and where they left off

Skip tour closes a tour for good and tells your page, with Bana.onSkip (or the tour-skip event). Closing it with ✕ or Escape only closes it for now. Either way the script remembers it in the visitor's browser, and nothing else leaves it:

JavaScript
// The visitor chose "Skip tour". The script remembers it (the tour does not start by itself again);
// keep it in your own records too if you like. `index` counts from 0.
Bana.onSkip(({ tour, title, index, steps }) => {
  analytics.track("Tour skipped", { tour, step: index + 1, of: steps });
});

// Start it again for them anyway, from a "Show me again" button
document.querySelector("#help-me")?.addEventListener("click", () => Bana.start("welcome"));
Key in localStorageWhat it holds
bana:tours-doneThe tours the visitor finished.
bana:tours-closedThe tours they closed with ✕ or Escape before the end.
bana:tours-skippedThe tours they skipped with Skip tour.
bana:progressWhere they left each tour: { step, steps, at }, at most 50 tours.
bana:wayVoice or text only, as they chose with the switch on the card.
bana:advanceAuto-play or Next, as they chose with the Auto button.
bana:mutedThe sound switch.
bana:hints-closedThe hotspots they closed with Got it.

Bana.reset() forgets all of it for every tour of the page (Bana.reset("welcome") for one), for a tour you want the visitor to see again. A tour you start yourself (Bana.start("welcome"), a link, a button, the Guides button) always plays; only the automatic start leaves finished, closed and skipped tours alone.

Share it as an interactive demo

The screenshots of a walkthrough also make a click-through demo for people who are not in your app yet: a landing page, a help article, a sales email, a launch post. It opens in a browser window with your site's address in it; the part each step is about is lit up, the step's words sit on a card beside it, and the camera moves in on small buttons. Viewers press Next (or the lit part itself) or use the arrow keys, and end on a card with Replay and your own button ("Start free trial"). Nothing to install, no account to view it, and it works on phones.

app.acme.example/sample-app
Acme Projects

Interactive demo

Create your first project

A project holds the tasks of one piece of work. Here is how to start one, in four steps.

4 steps · click through at your own pace

A live example: the walkthrough Create your first project of the sample app, shared as a demo. Press Next, use the arrow keys or swipe; the button at the top is the walkthrough's own call to action. The platform tester account has it on its Share tab.

  1. 1
    Switch it on
    On a walkthrough's Share tab, switch on Interactive demo; the demo plays right there, as viewers will see it. Add a button (Start free trial and your sign-up page, say): it shows at the top while the demo plays and on the ending card. Steps without a screenshot are listed, so you know what to add on the Steps tab.
  2. 2
    Share or embed it
    Its page is /try/<id>; the embed code is an iframe of /embed/try/<id>, and pasting the link into anything that reads oEmbed (Notion, many help centers and CMSs) embeds it by itself. Link previews show its first screenshot.
  3. 3
    See how it does
    The walkthrough's Overview counts opens, how far viewers click, and how many press your button. Nothing about a viewer is kept.
Private details stay private
The pictures a demo serves have the hidden areas burned in: a cover is painted over and a blur is shrunk and smudged past reading in the picture itself, so nobody can lift them by opening the picture's address. Switch sharing off and the demo and its pictures are gone at once (a copy a browser kept may show for up to ten minutes).

Tours in your code

For developers who want tours to ship with the app, reviewed like the rest of the code. The same script plays them, next to your recorded walkthroughs.

Start here, or skip to a tour across screens.

  1. 1
    Add the script
    Once per page (or in your app's layout). It is small, and the recorder is a second file that only loads when someone records.
  2. 2
    Mark the steps
    Put data-bana-tour on the elements a tour is about, with what to say. Titles come from the element's own label when you leave them out.
  3. 3
    Link to the tour
    Any link to #bana-tour=<id> starts it, here or from another page. The Guides button lists it too.
<script src="https://videobana.vercel.app/bana.js" data-launcher="Guides" defer></script>

<!-- 1. Mark the steps of a tour on your own elements -->
<input  data-bana-tour="welcome" data-bana-step="1"
        data-bana-title="Search"
        data-bana-say="Find any project by its name." />

<button data-bana-tour="welcome" data-bana-step="2"
        data-bana-say="Start something new here."
        data-bana-action="click">New project</button>

<!-- 2. Start it from any link (or let the Guides button list it) -->
<a href="#bana-tour=welcome">Take the tour</a>

Tours from attributes

Attributes travel with your markup: a component that renders a step carries it into every page it appears on. The steps of a tour are put in order by data-bana-step, then by their place on the page.

AttributeWhat it does
data-bana-tourThe tour the element is a step of (letters, digits, - and _). An element can be in several: intro billing.
data-bana-stepIts place in the tour (1, 2, 3…). Steps without it follow the order of the page.
data-bana-titleThe title on the step's card. Left out: the element's own name (its label, aria-label or text).
data-bana-sayWhat the voice says, shown as text on the card that lights up word by word as it is said. Left out: the title is said.
data-bana-textA line of detail under the title.
data-bana-actionclick, type or keys: the pointer clicks the element, types into it or presses keys. Left out: it is pointed at.
data-bana-typeThe text a type step types (up to 60 characters).
data-bana-keysThe keys a keys step presses: Ctrl+K, Enter.
data-bana-placementtop, bottom, left or right: where the card goes. Default auto, the side with room.
data-bana-holdSeconds the step stays after its narration (default 0.7).
data-bana-performDo the action for real, so the page follows: the menu opens, the field fills in, the dialog appears. Leave it off for what saves or creates something.
data-bana-tour-titleOn any step: the title of the tour, in the help panel and on its cards.
data-bana-tour-modeOn any step: try makes the tour hands-on (it waits for the visitor to do each action).
data-bana-tour-advanceOn any step: with the voice, manual waits for Next after each step; auto (default) goes on by itself. Visitors can switch with the Auto button.
data-bana-tour-text-advanceOn any step: with text only, manual (default) waits for Next; auto goes on by itself once a step has been up long enough to read (the bar on the card fills as the time runs out). Visitors can switch with the Auto button.
data-bana-tour-text-secondsOn any step: the seconds each text-only step stays when it goes on by itself (2 to 60). Left out: the time its words take to read, at least 3 seconds.
data-bana-tour-voiceOn any step: browser reads the tour with the browser's voice (a voice walkthrough); none (default) is a text-only tour.
data-bana-tour-text-onlyOn any step: false keeps a tour that has a voice to its voice, with no text-only button on the card. Default: both are offered.
data-bana-tour-start-withOn any step: voice (default) or text: the way the tour starts in when it offers both. A visitor who switches keeps their own choice, and it wins.

From JSON or JavaScript

For tours whose elements you cannot mark (a third-party widget, a page you do not own the markup of), or that you build from data, write them as JSON in the page or register them from code. Targets are CSS selectors.

HTML
<script type="application/bana+json">
{
  "tours": [
    {
      "id": "invite",
      "title": "Invite your team",
      "mode": "try",
      "steps": [
        { "kind": "intro", "title": "Invite your team",
          "text": "Four steps, about 20 seconds." },
        { "target": "#members", "title": "Members", "say": "Your team lives here." },
        { "target": "[data-testid=invite]", "title": "Invite", "action": "click",
          "say": "Press Invite to add someone." },
        { "target": "input[name=email]", "title": "Their email", "action": "type",
          "type": "sam@company.com", "say": "Type their work email." },
        { "target": "form button[type=submit]", "title": "Send", "action": "keys",
          "keys": ["Enter"], "say": "Press Enter, and the invite is on its way." },
        { "kind": "outro", "title": "Invite sent",
          "text": "They get an email with a link to join." }
      ]
    }
  ]
}
</script>
JavaScript
const tour = Bana.tour({
  id: "billing",
  title: "Your billing settings",
  lang: "en-GB",
  steps: [
    { target: "#plan", title: "Your plan", say: "This is the plan you are on." },
    { target: () => document.querySelector(".invoice-row"), title: "Invoices",
      say: "Every invoice, ready to download." },
  ],
});

// Start it when you like: after sign-up, from a menu, from your onboarding checklist…
tour.start();          // where the visitor left off; Bana.start("billing", 0) always starts over, ("billing", 1) at the second step

// Know what happened
Bana.on("tour-complete", ({ tour }) => analytics.track("Tour finished", { tour }));
Bana.onSkip(({ tour, index }) => analytics.track("Tour skipped", { tour, step: index }));
FieldWhat it is
idNames the tour in links (`#bana-tour=<id>`) and events. Required.
titleShown on the cards and in the help panel.
descriptionShown in the help panel, searchable.
steps[].kind`intro` on the first step: a welcome card in the middle of the page that says what the tour shows, with how many steps and how long, and a Start button. `outro` on the last step: a closing card, whose words end the tour (with Watch again and Close). Neither has a target or an action, and neither is counted in `2 / 5`.
steps[].targetA CSS selector, an element, or a function that returns one. Left out: the card sits in the middle, for a step about the whole page.
steps[].title / say / text / action / type / keys / placement / hold / performAs the attributes above. `keys` on a `type` step are pressed after typing (Enter). The title is optional, like the detail (`text`) and the narration (`say`): a step needs at least one of the three, and a step with no title shows no heading on its card.
steps[].labelThe element's name (its label or text): it is found by it when the selector no longer matches.
mode`show` (default) plays by itself like a video. `try` waits for the visitor to click, type or press each step on the real page.
advanceWith the voice: `auto` (default) goes on once a step is said, `manual` waits for Next.
textAdvanceWith text only: `manual` (default) waits for Next, `auto` goes on once a step has been up long enough to read.
textSecondsThe seconds each text-only step stays when it goes on by itself, 2 to 60. Left out: the time its words take to read (at least 3 seconds).
voice`none` (a text-only tour, default), `browser`, or `{ kind: "audio", src }` for a recording: the voice walkthrough. Walkthroughs saved in Videobana bring the standard or premium voice you recorded.
textOnly`true` (default): a tour with a voice also offers the text-only way, with a button on the card to switch to it. `false` keeps it to its voice. A tour without a voice is text only, whatever this says.
startWith`voice` (default) or `text`: the way the tour starts in when it offers both. A visitor's own choice, once they switch, is remembered and wins.
langThe language of the voice (`de`, `pt-BR`…). Default: the page's `lang`.
autostart`true`: starts by itself when the page loads, for visitors who have not finished, closed or skipped it; one who left it half way continues where they were. Only on the page it belongs to when it has one (`page`).
Show, or let them try
A tour plays by itself, like a video: the spotlight glides, the pointer clicks and types, the voice says each step, and the next one follows. With mode: "try" it is hands-on: it shows each action and waits until the visitor has done it on the real page.

An intro and an ending

Both are optional and point at nothing. A first step with kind: "intro" opens the tour with a welcome card in the middle of the page: its title and detail, how many steps and how long, and a Start button. A last step with kind: "outro" closes it: the visitor ends on its words, with Watch again and Close. Neither is counted in the 2 / 5 of the steps. In the recorder and on a walkthrough's Steps tab, Add an intro and Add an ending write them for you; in the guide video made from a walkthrough, each is the whole first (or last) page with its words on the card beside it, and there is no separate title card.

A tour across screens, with analytics

A tour written in JavaScript can go through the screens of a single-page app and do its steps for real: the pointer opens Team, types the email, picks a role, and the tour waits for each element to appear. Keep perform off for the step that would send or save, so the tour only shows it. This is the Invite a teammate tour of the demo, with the events it tells your page.

JavaScript
// A tour across screens that does the steps for real: the menu opens, the field fills in,
// and the next step points into the page that appeared.
Bana.tour({
  id: "invite",
  title: "Invite a teammate",
  description: "Three steps, about 20 seconds.",
  steps: [
    { kind: "intro", title: "Invite a teammate", text: "Three steps, about 20 seconds." },
    { target: "#nav-team", title: "Open Team", action: "click", perform: true,
      say: "Open the Team page." },
    { target: "#invite-email", title: "Their email", action: "type", type: "sam@acme.example",
      perform: true, say: "Type your teammate's work email." },
    { target: "#send", title: "Send the invite", action: "click",
      say: "Press Send. We only show this one, so nothing is sent." },   // perform stays off: it would send
    { kind: "outro", title: "Invite on its way", text: "They get an email with a link to join." },
  ],
});

// Measure it in your own analytics
Bana.on("tour-complete", ({ tour }) => analytics.track("Walkthrough finished", { tour }));
Bana.on("tour-dismiss", ({ tour, index }) => analytics.track("Walkthrough closed", { tour, step: index }));
Bana.onSkip(({ tour, index, steps }) => analytics.track("Walkthrough skipped", { tour, step: index, of: steps }));

A link is the simplest integration: in a menu, a help article, a support reply, a product email. On another page, the tour starts when that page opens; the address is put back without the #bana-…, so a reload does not start it again.

HTML
<!-- Start a tour of this page -->
<a href="#bana-tour=welcome">Show me around</a>

<!-- …from its third step -->
<a href="#bana-tour=welcome&step=3">How do I share?</a>

<!-- A plain link picks the tour up where the visitor left it; step=1 always starts over -->
<a href="#bana-tour=welcome&step=1">Watch it from the start</a>

<!-- From another page, an email or a help article: the tour starts when the page opens -->
<a href="https://app.example.com/projects#bana-tour=welcome">Open the guided tour</a>

<!-- Any element can start a tour or open a video -->
<button data-bana-play="welcome">Take the tour</button>

<!-- One "Take a tour" button for every page: it starts the tour made for the page the visitor is on -->
<button data-bana-play="page">Take a tour</button>
<button data-bana-video="example:ai-make-a-video-with-videobana">Watch the 1-minute intro</button>

<!-- A video in a pop-up from a plain link -->
<a href="#bana-video=3fa2c9e01b7d4e55">What's new this month</a>

Hotspots and private details

data-bana-hint puts a pulsing dot on an element. Its tip can start a tour (data-bana-hint-tour) or open a video (data-bana-hint-video), and Got it hides it for good for that visitor. data-bana-hint-position picks the corner (top-left, bottom-right…).

HTML
<button data-bana-hint="New: export straight to Google Drive."
        data-bana-hint-tour="export"
        data-bana-hint-video="example:ai-make-a-video-with-videobana">Export</button>

<!-- Hide private details from every screenshot the recorder takes -->
<span data-bana-redact>ada@example.com</span>
<code data-bana-redact="cover">sk_live_…</code>

Video pop-ups

data-bana-video on any element, a link to #bana-video=…, or Bana.video() open a video over the page, with its voice-over and captions. The source is the id of a video you made public, example:<id> for one of the demos, or the address of a video's JSON. Elements with data-bana-video and a data-bana-label are listed in the Guides panel.

The script tag

One short line is all a site needs. The options that are not about looks:

<script src="https://videobana.vercel.app/bana.js" data-key="bk_your_site_key" defer></script>
AttributeWhat it does
data-keyYour account's site key (Tools → Add to your site): every walkthrough you make live for this site is loaded from Videobana by itself, with the look you chose in Appearance.
data-walkthroughsWalkthroughs of Videobana to load by id, separated by commas.
data-voicebrowser reads the tours written in the page with the browser's voice; text only when left out.
data-langThe language of every tour's voice, unless a tour says otherwise.
data-autostartStarts a tour by itself when the page loads, for visitors who have not finished, closed or skipped it (one who left it half way continues where they were). The value is the tour's id; alone (or page) it is the tour made for the page; false switches every automatic start off, the ones set in Videobana (Start automatically when the page loads) included. Left out: each tour decides.
data-recorderLets the people who write the guides open the recorder with Alt + Shift + R.

The recorder

The recorder turns doing a task on your page into a walkthrough: a live tour of the page, saved to Tools, and a narrated screencast video if you want one. Try it on the demo above: Record a guide opens it on this very page.

  1. 1
    Open it
    On any site, even one without the script: the toolbar icon of the Chrome extension, or the Record a guide bookmark (Tools → Walkthroughs → Set up the bookmark). On a page with the script: a link to #bana-record, Bana.record(), or Alt + Shift + R when the script has data-recorder.
  2. 2
    Record, or point
    Record and do the task: each click, typed text and key is a step, its title and narration written from what it is (a button “Invite” becomes “Click Invite.”). Alt + click adds a step without doing it, for the Save or Create you do not want to run while recording. Point at a step adds one by clicking the part of the page it is about (↑ and ↓ choose the element around it or back), without doing anything. Each step’s target is a CSS selector you can correct (the recorder says what it finds) or pick again, and Export / Import keep the whole guide, screenshots included, in a .guide.json file.
  3. 3
    Pause, Undo, Stop
    The recording bar stays out of the way (drag it by its grip): Pause to use the page without recording, Undo to take back the last step, Stop or Alt + Shift + R to finish. Clicks on plain text and the recorder's own buttons are never steps, fields and the browser's pickers (lists, dates, files) get their click at once, a drag stays a drag, and recording goes on across the pages of your app.
  4. 4
    Details and intro
    Under the title, Details sets a short description (shown in the Guides button, searchable) and how it plays: Watch or Try it. Add an intro and Add an ending sit above and below the steps.
  5. 5
    Hide what is private
    Password fields are covered on every screenshot. Hide area blurs anything else you click, and so does data-bana-redact in your markup.
  6. 6
    Save it
    Save to Videobana puts it in your Walkthroughs, to give it a voice and make it live. Screenshots come from sharing the tab (Chrome and Edge ask once; turn on Screenshots as I go for a guide across several pages); Open in Videobana makes it a guide video for the editor instead.
Your page stays private
Screenshots are taken by your browser and stay in it until you save, which hands the walkthrough to your signed-in account in a new tab. The page you record never needs, or sees, an API token. When it cannot reach Videobana, the recorder offers the walkthrough as a file to drop on the import page instead.

The Chrome extension

The same recorder behind a toolbar icon, free on the Chrome Web Store: open Videobana Walkthrough Recorder, press Add to Chrome, then pin it (the puzzle piece in the toolbar, then the pin). It works in Chrome, Edge and the other Chromium browsers. Its options say which Videobana the recordings are handed to. To build it yourself instead, the walkthrough-recorder-chrome-extension folder of the repository has the steps (npm run extension:build, then Load unpacked at chrome://extensions).

  • The icon opens the recorder on the page in front, on any site, even one that never heard of the script. Alt + Shift + W does the same, and Alt + Shift + R starts or stops recording from anywhere; both can be changed in Chrome's shortcuts. The icon's right-click menu also opens your walkthroughs.
  • Screenshots without sharing the tab. Chrome takes them itself, with the recorder out of the picture: nothing to allow, no bar, and Screenshots as I go is on from the start.
  • Recording goes on across the pages of the site. The recorder comes back by itself on the next page, screenshots included. The icon shows the steps so far (red while recording); a page of another site starts a guide of its own.
  • Nothing is loaded from elsewhere. The recorder is inside the extension, runs apart from the page's own scripts and ignores its Content-Security-Policy. The video preview stays in Videobana, which makes the video from the saved walkthrough.

JavaScript

The script defines window.Bana. Code that runs before the script can queue calls: window.Bana = window.Bana || []; Bana.push((bana) => bana.start("welcome")). Every event is also a bana:<type> event on document, for your analytics.

MethodWhat it does
Bana.tour(definition)Adds a tour (or replaces the one with its id) and returns { start(step?), stop() }.
Bana.start(id, step?)Starts a tour of the page, or a walkthrough of Videobana by its id (loaded first). Without step it picks up where the visitor left it, and begins at the start when they never started it or finished or skipped it; step counts from 0, so Bana.start(id, 0) always starts over. Bana.start("page") starts the tour made for the page the visitor is on.
Bana.pageTour(path?)The tour made for a page (this one by default): a walkthrough whose start page it is, preferring one that stays on that page over one that goes on to others.
Bana.load(id)Loads a live walkthrough of Videobana without starting it (it is then listed in the help button).
Bana.stop()Closes the tour that is playing.
Bana.tours()Every tour of the page: from attributes, JSON blocks and code.
Bana.video(source, { title })Opens a video in a pop-up: a public video id, example:<id>, or the address of a video's JSON.
Bana.record()Opens the guide recorder.
Bana.scan()Reads the page again. It happens by itself when the page changes; call it to be sure after drawing a new screen.
Bana.configure({ accent, theme, radius, launcher, … })Changes the look and the options from code (every data- option above has a name in camelCase: accent, accent2, theme, radius, size, font, dim, pointer, launcher, launcherStyle, launcherIcon, launcherSide, launcherBottom, launcherEdge, launcherMobile, launcherDot, heading, intro, hints, branding, lang). It wins over the script tag and the account.
Bana.launcher.open() / .close()Opens or closes the Guides panel, for a “Help” link of your own.
Bana.reset(id?)Forgets that the visitor finished, closed or skipped a tour (or all of them), and where they left each, and shows closed hotspots again.
Bana.on(type, listener)Listens to an event; returns a function that stops listening.
Bana.onSkip(listener)Calls listener({ tour, title, index, steps }) when a visitor chooses Skip tour (index is the step they were on, from 0). The same as Bana.on("tour-skip", …); returns a function that stops listening. The script already remembers the skip, so the tour does not start by itself again: use this to keep it in your own account of the user as well.
EventWhen
readyThe script has read the page. { version }
tour-startA tour started. { tour, title }
stepA step is shown. { tour, index, title, element }
tour-completeThe visitor reached the end. { tour }
tour-dismissThe visitor closed it (✕ or Escape) before the end: where they were is kept, so it continues there next time. { tour, index }
tour-skipThe visitor chose Skip tour: it is closed for good and does not start by itself again. { tour, title, index, steps }
tour-closeThe tour's card is gone, finished, closed or skipped. { tour }
video-openA video pop-up opened. { source }
recorder-openThe recorder opened.

Good to know

  • It never gets in the way. The tour draws over the page without blocking it: the visitor can still scroll and click. Escape closes it, the arrow keys move between steps, and it pauses when the tab is hidden.
  • Single-page apps. New elements are picked up as the page changes; a step waits a few seconds for its element to appear, so a tour can cross screens of your app.
  • The voice. Walkthroughs saved in Videobana play the standard or premium voice you recorded. Tours written in the page are text only, or use the browser's own voice with data-voice="browser". Pause and Play keep the place: the voice goes on from where it stopped, not from the start of the step. When it is muted the text carries it at the same pace, and when the browser refuses sound (no click on the page yet) the tour waits for a press of Play.
  • Auto-play or Next. A voice walkthrough goes on by itself, or waits for Next after each step (advance); the visitor can switch with the Auto button on the card, and their choice is remembered. A text-only walkthrough always waits for Next.
  • Accessible. Cards are dialogs that screen readers announce, every button has a label and a keyboard shortcut, and motion is cut down for visitors who ask their system for less.
  • Remembered per visitor in the browser (localStorage, keys starting with bana:): finished, closed and skipped tours and where they left each, voice or text only, Auto or Next, closed hotspots, the sound switch. Nothing else is stored, and no cookie is set.
  • Changes arrive within a couple of minutes. What you make live, and the look you save in Appearance, is cached for 60 seconds in a visitor's browser and for 30 seconds on the way to it (refreshed in the background for 60 more), so a visitor sees a change the next time a page loads after that: usually in about a minute, in three at most.
  • Content-Security-Policy. Allow https://videobana.vercel.app in script-src; to load your walkthroughs and their look also in connect-src, and for video pop-ups in img-src and media-src too (see the web component). Styles are applied without <style> elements.
  • Browsers: tours, hotspots and pop-ups work in every current browser. Taking screenshots in the recorder needs Chrome or Edge (they can share a tab); elsewhere the recorder still records the steps, plays them and writes the code.