How a demo video goes from a script to a published video.
A video is a list of scenes. Each scene needs a presenter clip, then a screen recording timed to it. The finished scenes
are joined into one video.
Worth knowing
Edits show what’s out of date. Each step remembers what it was made from.
The runner keeps no passwords. Each job that needs signing in brings its own details.
The code:convex/demoVideos.ts and scripts/demo-runner.ts.
Checked against the code (v0.5-182-g5680751-dirty) on 4 December 2026.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OrgSight architecture","colors":{"primary":"#1d7acd","light":"#6cc4ff","dark":"#1d7acd"},"logo":{"light":"/logo/light.png","dark":"/logo/dark.png"},"favicon":"/logo/favicon.png","appearance":{"default":"dark"},"background":{"color":{"light":"#f5f7fa","dark":"#061423"}},"fonts":{"heading":{"family":"Archivo"},"body":{"family":"Atkinson Hyperlegible Next"}},"icons":{"library":"lucide"},"integrations":{"telemetry":{"enabled":false}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4448"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[{"filePath":"c4.css","content":"svg[id^=\"mermaid\"] a,svg[id^=\"mermaid\"] a .nodeLabel{font-weight:400!important;border:0!important}svg[id^=\"mermaid\"] a:hover .basic{filter:brightness(1.15)}svg[id^=\"mermaid\"] .edgeLabel,svg[id^=\"mermaid\"] .edgeLabel p,svg[id^=\"mermaid\"] .labelBkg{background:#f5f7fa!important;color:#24384c!important}:root.dark svg[id^=\"mermaid\"] .edgeLabel,:root.dark svg[id^=\"mermaid\"] .edgeLabel p,:root.dark svg[id^=\"mermaid\"] .labelBkg{background:#0b1c2e!important;color:#cfdcea!important}@media (min-width: 1280px){#content-container{max-width:none!important}}"},{"filePath":"style.css","content":"@import url(\"https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,500..800\u0026display=swap\");h1,h2,h3,#page-title{font-family:\"Archivo\", sans-serif;font-stretch:112%;letter-spacing:-0.01em}h1,#page-title{font-weight:800}h2,h3{font-weight:700}img.nav-logo{height:2.5rem}:root{--os-text: #0a1f32;--os-accent: #1a6dbb;--os-muted: #4a5a6c;--os-surface: rgb(255 255 255 / .72);--os-hover: rgb(10 31 50 / .06)}:root.dark{--os-text: #e6f1fb;--os-accent: #6cc4ff;--os-muted: #9fb3c8;--os-surface: rgb(8 24 40 / .78);--os-hover: rgb(255 255 255 / .07)}:root{--os-bg: #f5f7fa;--os-backdrop:\n radial-gradient(55rem 40rem at 18% -8%, color-mix(in srgb, #1d7acd 16%, transparent), transparent 70%),\n radial-gradient(45rem 34rem at 88% 6%, color-mix(in srgb, #28c199 12%, transparent), transparent 70%),\n radial-gradient(70rem 50rem at 50% 115%, color-mix(in srgb, #5eaff0 22%, transparent), transparent 72%),\n var(--os-bg)}:root.dark{--os-bg: #061423;--os-backdrop:\n radial-gradient(55rem 40rem at 18% -8%, color-mix(in srgb, #6cc4ff 13%, transparent), transparent 70%),\n radial-gradient(45rem 34rem at 88% 6%, color-mix(in srgb, #6fd6b0 7%, transparent), transparent 70%),\n radial-gradient(70rem 50rem at 50% 115%, color-mix(in srgb, #1d5fa8 22%, transparent), transparent 72%),\n var(--os-bg)}html,body{background:var(--os-bg)!important}body::before{content:\"\";position:fixed;inset:0;z-index:-10;pointer-events:none;background:var(--os-backdrop)}.os-ambient{position:fixed;inset:0;z-index:-5;width:100%;height:100%;pointer-events:none}#sidebar-content{inset:.75rem .5rem 1rem .75rem!important;border-radius:22px;border:1px solid color-mix(in oklab, var(--os-text) 15%, transparent);background:var(--os-surface);backdrop-filter:blur(24px) saturate(140%);-webkit-backdrop-filter:blur(24px) saturate(140%);box-shadow:inset 0 1px 0 color-mix(in oklab, #fff 16%, transparent),\n inset 0 -12px 24px -20px color-mix(in oklab, var(--os-accent) 35%, transparent),\n 0 20px 50px -20px rgb(0 0 0 / .45)}#sidebar a{position:relative;border-radius:1rem;border:1px solid transparent;font-weight:600;color:var(--os-muted);text-shadow:none;transition:background-color .3s, color .3s, border-color .3s, box-shadow .3s}#sidebar a:hover{background:var(--os-hover);color:var(--os-text)}#sidebar a[aria-current=\"page\"]{color:var(--os-text);background:linear-gradient(180deg, color-mix(in oklab, var(--os-text) 17%, transparent), color-mix(in oklab, var(--os-text) 7%, transparent));border-color:color-mix(in oklab, var(--os-text) 20%, transparent);box-shadow:inset 0 1px 0 color-mix(in oklab, #fff 28%, transparent), 0 8px 18px -10px rgb(0 0 0 / .55);animation:os-select .35s cubic-bezier(.2, .7, .2, 1)}#sidebar a[aria-current=\"page\"]::before{content:\"\";position:absolute;top:.45rem;bottom:.45rem;left:-1px;width:4px;border-radius:9999px;background:var(--os-accent);box-shadow:0 0 10px var(--os-accent)}@keyframes os-select{from{transform:scale(.97);opacity:.6}}@media (prefers-reduced-motion: reduce){#sidebar a,#sidebar a[aria-current=\"page\"]{transition:none;animation:none}}"}]}
{"page":{"pagePath":"flows/demo-video","slug":"/flows/demo-video","pageMetadata":{"title":"Demo video flow","sidebarTitle":"Demo video","description":"How a demo video goes from a script to a published video.","mode":"wide","href":"/flows/demo-video"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How a demo video goes from a script to a published video.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Mermaid}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A video is a list of scenes. Each scene needs a presenter clip, then a screen recording timed to it. The finished scenes\nare joined into one video.`}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n autonumber\n actor O as Operator\n participant V as Demo videos (backend)\n participant Y as HeyGen\n participant R as Demo runner\n participant F as File storage\n participant C as Cloudflare Stream\n O->>V: Make the presenter clip\n V->>Y: Send the narration\n Y-->>V: Clip and captions\n V->>F: Save the clip\n O->>V: Record the scenes\n V->>R: Wake, if it's hosted\n R->>V: Claim a job\n R->>F: Download the clip\n R->>R: Record the screen and add the presenter\n R->>F: Upload the scene\n R->>V: Report it's done\n O->>V: Build and publish\n V->>R: Queue the build, claimed the same way\n V->>C: Copy the built video`}),`\n`,_jsx(Heading,{level:`2`,id:`worth-knowing`,children:`Worth knowing`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Edits show what’s out of date.`}),` Each step remembers what it was made from.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The runner keeps no passwords.`}),` Each job that needs signing in brings its own details.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The code:`}),` `,_jsx(_components.code,{children:`convex/demoVideos.ts`}),` and `,_jsx(_components.code,{children:`scripts/demo-runner.ts`}),`.`]}),`\n`]}),`\n`,_jsx(`sub`,{children:`Checked against the code (v0.5-182-g5680751-dirty) on 4 December 2026.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Demo video flow","sidebarTitle":"Demo video","description":"How a demo video goes from a script to a published video.","mode":"wide","href":"/flows/demo-video"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Worth knowing","slug":"worth-knowing","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/localhost/1598567e07f5b649/ambient.js"],"subdomain":"localhost","siteName":"OrgSight architecture","title":"Demo video flow - OrgSight architecture","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"flows/demo-video.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"How a demo video goes from a script to a published video.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OrgSight architecture\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Demo video flow - OrgSight architecture\">\u003cmeta data-mint-head property=\"og:description\" content=\"How a demo video goes from a script to a published video.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OrgSight architecture\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./flows/demo-video\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Demo video flow - OrgSight architecture\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How a demo video goes from a script to a published video.\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OrgSight architecture\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1d7acd\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./flows/demo-video\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/flows/demo-video.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OrgSight architecture\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OrgSight architecture\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/flows/demo-video.md","siteName":"OrgSight architecture","nav":{"groups":[{"group":"Get started","pages":[{"title":"OrgSight architecture","href":"/index"}]},{"group":"Context","icon":"globe","pages":[{"title":"Context (C1)","sidebarTitle":"Context (C1)","mode":"wide","href":"/c1/context"}]},{"group":"Containers","icon":"layers","pages":[{"title":"Containers (C2)","sidebarTitle":"Containers (C2)","mode":"wide","href":"/c2/containers"}]},{"group":"Components","icon":"blocks","pages":[{"group":"Backend","pages":[{"title":"Backend components (C3)","sidebarTitle":"Overview","mode":"wide","href":"/c3/backend"},{"title":"Backend: people and skills","sidebarTitle":"People and skills","mode":"wide","href":"/c3/backend-skills"},{"title":"Backend: AI and documents","sidebarTitle":"AI and documents","mode":"wide","href":"/c3/backend-ai"},{"title":"Backend: integrations","sidebarTitle":"Integrations","mode":"wide","href":"/c3/backend-integrations"},{"title":"Backend: agents","sidebarTitle":"Agents","mode":"wide","href":"/c3/backend-agents"},{"title":"Backend: videos and Academy","sidebarTitle":"Videos and Academy","mode":"wide","href":"/c3/backend-content"},{"title":"Backend: back office","sidebarTitle":"Back office","mode":"wide","href":"/c3/backend-office"}]},{"title":"Web app components (C3)","sidebarTitle":"Web app","mode":"wide","href":"/c3/web-app"},{"title":"Back office components (C3)","sidebarTitle":"Back office","mode":"wide","href":"/c3/back-office"},{"title":"Website components (C3)","sidebarTitle":"Website","mode":"wide","href":"/c3/website"},{"title":"Runner components (C3)","sidebarTitle":"Runners","mode":"wide","href":"/c3/runners"}]},{"group":"Data","icon":"database","pages":[{"title":"Data overview","sidebarTitle":"Overview","href":"/data/overview"},{"title":"Data: people and roles","sidebarTitle":"People and roles","mode":"wide","href":"/data/people"},{"title":"Data: skills and capabilities","sidebarTitle":"Skills and capabilities","mode":"wide","href":"/data/skills"},{"title":"Data: assessments and evidence","sidebarTitle":"Assessments and evidence","mode":"wide","href":"/data/assessments"},{"title":"Data: agents","sidebarTitle":"Agents","mode":"wide","href":"/data/agents"},{"title":"Data: videos and Academy","sidebarTitle":"Videos and Academy","mode":"wide","href":"/data/content"},{"title":"Data: platform","sidebarTitle":"Platform","mode":"wide","href":"/data/platform"}]},{"group":"Key flows","icon":"route","pages":[{"title":"HR sync flow","sidebarTitle":"HR sync","mode":"wide","href":"/flows/hr-sync"},{"title":"Agent run flow","description":"How a duty given to an AI agent is run, checked, reviewed and merged.","sidebarTitle":"Agent run","mode":"wide","href":"/flows/agent-run"},{"title":"Demo video flow","sidebarTitle":"Demo video","mode":"wide","href":"/flows/demo-video"},{"title":"Stub applications","description":"The built-in imitations of Employment Hero and Clockify, and how to switch to the real ones.","sidebarTitle":"Stub applications","mode":"wide","href":"/flows/stubs"}]},{"group":"Audit","icon":"search-check","pages":[{"title":"Audit findings","sidebarTitle":"Audit findings","href":"/audit"}]}]},"basePath":"","title":"Demo video flow - OrgSight architecture","buildId":"52fc10775479","dynamics":[],"chunks":[]}