Tourwright
v2.7.1Turn a script into a narrated product tour video: real browser, captions, voice, MP4.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tourwright_guide How to write a Tourwright script
The script format (browser walkthroughs and narrated slides), every action, voices and examples. Read it before writing a script.
tourwright_voices List voices
Text-to-speech voices available on the server and which engines work. Use a voice whose language matches the script.
tourwright_music List background music
Background music the scripts can name: the tracks on the server (name, mood, title, license), the moods and the built-in loops. In a script, music: <track name> or a mood (upbeat, corporate, calm, acoustic, tech, cinematic). To use a track of your own, send the audio file in `assets` of tourwright_render and write its asset name in music.
tourwright_validate Validate a script
Check the structure of a script (fields, actions, variables) without opening any website: fast, offline. Returns { ok } or the list of errors to fix. To know whether its targets still exist on the live site, use tourwright_check.
| Parameter | Type | Description |
|---|---|---|
script * | The script: an object, or YAML/JSON text. Read tourwright_guide first for the format. | |
vars | object | Values for the script variables ({{name}}): the same script makes a different video per set of values |
tourwright_render Render a video or a guide
Queue a script for rendering: a video, and/or a step-by-step guide as HTML, PDF or Word (options.export). With wait=true (default) it waits until it is ready and returns its links (and local paths), duration, chapters and captions; otherwise it returns the job id to poll with tourwright_job.
| Parameter | Type | Description |
|---|---|---|
script * | The script: an object, or YAML/JSON text. Read tourwright_guide first for the format. | |
assets | object | Files the script refers to by name (images, your own background music, uploads), base64-encoded: { "theme.mp3": "<base64>" } and music: theme.mp3 |
options | object | Render settings that override the script |
vars | object | Values for the script variables ({{name}}): the same script makes a different video per set of values |
wait | boolean | Wait for the video (default true); false returns the job id at once, to poll with tourwright_job |
waitSeconds | integer | How long to wait for the video before returning the job as it is (default 900) |
tourwright_job Job status
Status, progress and (when done) the result of a render job.
| Parameter | Type | Description |
|---|---|---|
id * | string | The job id returned by tourwright_render with wait=false |
tourwright_jobs List jobs
The render jobs on this server, newest first: id, status, progress and, for finished ones, the links to their videos. Use it to find a video rendered earlier or a job id to delete.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many jobs at most (default 20) |
status | string | Only jobs with this status |
tourwright_delete_job Delete a job
Delete a finished (done or failed) job and its files: the video, subtitles, poster and manifest. A job that is queued or rendering cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
id * | string | The job id, from tourwright_render or tourwright_jobs |
tourwright_check Check a script and propose fixes
Run a script fast, without voice or video, against the real site (validate only checks its structure). Returns every step that failed (the target it looked for, the page, the targets that page offers) and, when it can tell, the new target for it. For a YAML script given as text it also returns `fixed`: the same text with those targets replaced (comments kept). Use it after the site changed, then validate and render.
| Parameter | Type | Description |
|---|---|---|
script * | The script: an object, or YAML/JSON text. Read tourwright_guide first for the format. | |
vars | object | Values for the script variables ({{name}}): the same script makes a different video per set of values |