Demo videos
Key: Container Component Outside this system. An arrow says what one element does to or asks of the other. Select a box with a page of its own to open it.| Name | What it does | Code |
|---|---|---|
| Demo videos | Video scenes, presenter clips, the recording queue and publishing | convex/demoVideos.ts, convex/avatars.ts, convex/avatarsNode.ts, convex/lib/heygen.ts, convex/lib/demoTiming.ts, convex/lib/googleSlides.ts, convex/lib/voiceMarkup.ts |
| AI agents | Agent register and approvals, the run queue, merges and sandboxes | convex/agents.ts, convex/sandboxes.ts, convex/lib/agents.ts, convex/lib/sandbox.ts |
| HTTP endpoints | Entry points for the website, both runners and the stub APIs | convex/http.ts |
| Worker connection | Sets a fresh shared secret on a Cloudflare Worker | convex/lib/cloudflare.ts |
14 relationships and where each is in the code
14 relationships and where each is in the code
| From | To | What for | How | Found in |
|---|---|---|---|---|
| Back office | Demo videos | Edits scenes, queues work and publishes | WebSocket | academy.tsx:250, avatars.tsx:28 and 50 more |
| Back office | AI agents | Customers’ sandboxes | WebSocket | sandboxes.tsx:23, sandboxes.tsx:43 and 6 more |
| Demo runner | HTTP endpoints | Claims jobs and reports results | HTTPS | demo-runner.ts:67 |
| Demo videos | Clerk | Gets a test sign-in token for a recording | HTTPS | demoVideos.ts:444 |
| Demo videos | Video gateway | Wakes the demo runner | HTTPS | demoVideos.ts:224 |
| Demo videos | HeyGen | Makes clips, avatars and voices | HTTPS | demoVideos.ts:27, heygen.ts:11 |
| Demo videos | Cloudflare Stream | Publishes videos | HTTPS | demoVideos.ts:984 |
| Demo videos | Google Slides | Reads a deck’s slides and notes | HTTPS | demoVideos.ts:565 |
| HTTP endpoints | Demo videos | Hands out jobs and saves results | http.ts:4, http.ts:148 and 3 more | |
| HTTP endpoints | AI agents | Hands out runs and saves results | http.ts:6, http.ts:76 and 4 more | |
| AI agents | Worker connection | Connects the sandbox gateway | sandboxes.ts:11 | |
| Demo videos | Worker connection | Connects the video gateway | demoVideos.ts:11 | |
| Demo videos | AI agents | Reuses its operator check | demoVideos.ts:200 | |
| Demo videos | File storage | Keeps clips, slides and recordings | Convex | demoVideos.ts:48 |
Academy and the back office’s AI
Key: Container Component. An arrow says what one element does to or asks of the other. Select a box with a page of its own to open it.| Name | What it does | Code |
|---|---|---|
| People and projects | Directory, profiles, org chart, mentoring and project hours | convex/people.ts, convex/mentors.ts, convex/projects.ts |
| Assessments | Assessment templates and approvals, requests, ratings and evidence | convex/assessments.ts, convex/requests.ts, convex/library.ts, convex/lib/guidance.ts, convex/lib/limit.ts |
| AI gateway | Runs stored prompts and logs their tokens and cost | convex/llm.ts, convex/lib/llmClient.ts |
| Academy | Courses, lessons, quizzes, enrolments and certificates | convex/academy.ts |
| Demo videos | Video scenes, presenter clips, the recording queue and publishing | convex/demoVideos.ts, convex/avatars.ts, convex/avatarsNode.ts, convex/lib/heygen.ts, convex/lib/demoTiming.ts, convex/lib/googleSlides.ts, convex/lib/voiceMarkup.ts |
| Back office AI | The back office’s own AI settings, narration and course badges | convex/backofficeAi.ts, convex/lib/svg.ts |
18 relationships and where each is in the code
18 relationships and where each is in the code
| From | To | What for | How | Found in |
|---|---|---|---|---|
| Web app | People and projects | Directory, profiles, org chart and projects | WebSocket | me.tsx:11, Documents.tsx:12 and 11 more |
| Web app | Assessments | Templates, requests, ratings and evidence | WebSocket | Appearance.tsx:46, AssessmentGovernance.tsx:31 and 30 more |
| Web app | AI gateway | Connection test and usage | WebSocket | Setup.tsx:119, Settings.tsx:212 and 1 more |
| Web app | Academy | Courses, quizzes and assignment | WebSocket | Academy.tsx:46, Academy.tsx:73 and 7 more |
| Back office | Academy | Edits courses and reads progress | WebSocket | academy.tsx:148, academy.tsx:147 and 15 more |
| Back office | Demo videos | Edits scenes, queues work and publishes | WebSocket | academy.tsx:250, avatars.tsx:28 and 50 more |
| Back office | Back office AI | AI settings, narration and badges | WebSocket | academy.tsx:412, settings.tsx:35 and 8 more |
| People and projects | Academy | Adds earned badges | people.ts:1 | |
| Assessments | AI gateway | Drafts assessments and guidance | library.ts:14 | |
| Back office AI | AI gateway | Writes narration and badges | backofficeAi.ts:11 | |
| Back office AI | Demo videos | Reads the sentences of a scene | backofficeAi.ts:4, backofficeAi.ts:8 | |
| Academy | Demo videos | Tidies tags the same way | academy.ts:7 | |
| Academy | Assessments | Finds the manager to ask | academy.ts:8 | |
| Assessments | File storage | Issues upload links for evidence | Convex | assessments.ts:41 |
| Academy | File storage | Serves lesson files and badges | Convex | academy.ts:36 |
| Demo videos | File storage | Keeps clips, slides and recordings | Convex | demoVideos.ts:48 |
| People and projects | File storage | Links to evidence files | Convex | people.ts:48 |
| Back office AI | File storage | Saves generated badges | Convex | backofficeAi.ts:331 |
Functions
Demo videos: 72 functions
Demo videos: 72 functions
| Function | Kind | Who can call it | Called from |
|---|---|---|---|
avatars.list | action | Operator admin | Videos |
avatars.looks | action | Operator admin | Videos |
avatars.consentLink | action | Operator admin | Videos |
avatars.renameLook | action | Operator admin | Videos |
avatars.setVoice | action | Operator admin | Videos |
avatars.remove | action | Operator admin | Videos |
avatars.removeLook | action | Operator admin | Videos |
avatars.lookTemplates | action | Operator admin | Videos |
avatars.generateLooks | action | Operator admin | Videos |
avatars.voices | action | Operator admin | Videos |
avatars.uploadUrl | mutation | Operator admin | Videos |
avatarsNode.create | action | Operator admin | Videos |
avatarsNode.cloneVoice | action | Operator admin | Videos |
demoVideos.runnerStatus | query | Operator | Settings and sandboxes, Videos |
demoVideos.retryJob | mutation | Operator admin | Videos |
demoVideos.cancelJob | mutation | Operator admin | Videos |
demoVideos.heartbeat | internalMutation | Internal only | HTTP endpoints |
demoVideos.setRunnerDestination | mutation | Operator admin | Settings and sandboxes |
demoVideos.connectRunner | action | Operator admin | Settings and sandboxes |
demoVideos.saveRunnerConnection | internalMutation | Internal only | Demo videos |
demoVideos.runnerDestination | internalQuery | Internal only | Demo videos |
demoVideos.failedToWake | internalMutation | Internal only | Demo videos |
demoVideos.wakeRunner | internalAction | Internal only | Demo videos |
demoVideos.testRunner | action | Operator | Settings and sandboxes |
demoVideos.library | query | Operator | Academy, Videos |
demoVideos.get | query | Operator | Videos |
demoVideos.createVideo | mutation | Operator admin | Videos |
demoVideos.updateVideo | mutation | Operator admin | Videos |
demoVideos.setTags | mutation | Operator admin | Videos |
demoVideos.deleteVideo | mutation | Operator admin | Videos |
demoVideos.setSignIn | mutation | Operator admin | Videos |
demoVideos.addScene | mutation | Operator admin | Videos |
demoVideos.updateScene | mutation | Operator admin | Videos |
demoVideos.moveScene | mutation | Operator admin | Videos |
demoVideos.placeScene | mutation | Operator admin | Videos |
demoVideos.deleteScene | mutation | Operator admin | Videos |
demoVideos.importSlides | action | Operator admin | Videos |
demoVideos.saveImportedSlides | internalMutation | Internal only | Demo videos |
demoVideos.slideUploadUrl | mutation | Operator admin | Videos |
demoVideos.importFileSlides | action | Operator admin | Videos |
demoVideos.fileTypes | internalQuery | Internal only | Demo videos |
demoVideos.joinNextSlides | mutation | Operator admin | Videos |
demoVideos.generateClip | mutation | Operator admin | Videos |
demoVideos.generateClips | mutation | Operator admin | Videos |
demoVideos.forClip | internalQuery | Internal only | Demo videos |
demoVideos.setClip | internalMutation | Internal only | Demo videos |
demoVideos.createClip | internalAction | Internal only | Demo videos |
demoVideos.retryFailedClips | mutation | Operator admin | Videos |
demoVideos.pollClip | internalAction | Internal only | Demo videos |
demoVideos.queueRecordings | mutation | Operator admin | Videos |
demoVideos.queueBuild | mutation | Operator admin | Videos |
demoVideos.claimJob | internalMutation | Internal only | HTTP endpoints |
demoVideos.uploadUrl | internalMutation | Internal only | HTTP endpoints |
demoVideos.completeJob | internalMutation | Internal only | HTTP endpoints |
demoVideos.publish | mutation | Operator admin | Videos |
demoVideos.forPublish | internalQuery | Internal only | Demo videos |
demoVideos.setPublished | internalMutation | Internal only | Demo videos |
demoVideos.updateStreamDetails | action | Operator admin | Videos |
demoVideos.uploadToStream | internalAction | Internal only | Demo videos |
demoVideos.pollStream | internalAction | Internal only | Demo videos |
demoVideos.deleteFromStream | internalAction | Internal only | Demo videos |
demoVideos.addProductDemo | mutation | Operator admin | Videos |
demoVideos.attachClip | internalAction | Internal only | Nothing in the code |
demoVideos.startAttach | internalMutation | Internal only | Demo videos |
demoVideos.clipCosts | query | Operator | Videos |
demoVideos.checkOperator | internalQuery | Internal only | Back office, Demo videos |
demoVideos.previewVoice | action | Operator | Videos |
demoVideos.heygenCatalogue | action | Operator admin | Videos |
demoVideos.publicVoices | action | Operator admin | Videos |
demoVideos.publicAvatars | action | Operator admin | Videos |
demoVideos.heygenLooks | action | Operator admin | Videos |
demoVideos.heygenAccount | action | Operator | Videos |
Academy: 22 functions
Academy: 22 functions
| Function | Kind | Who can call it | Called from |
|---|---|---|---|
academy.lessons | query | Operator | Academy |
academy.saveLesson | mutation | Operator admin | Academy |
academy.deleteLesson | mutation | Operator admin | Academy |
academy.courses | query | Operator | Academy, Settings and sandboxes |
academy.course | query | Operator | Academy, Settings and sandboxes |
academy.storedUrl | mutation | Operator admin | Academy |
academy.uploadUrl | mutation | Operator admin | Academy, Settings and sandboxes |
academy.saveCourse | mutation | Operator admin | Academy |
academy.importCourse | mutation | Operator admin | Settings and sandboxes |
academy.deleteCourse | mutation | Operator admin | Academy |
academy.trains | query | Operator | Academy |
academy.saveTrain | mutation | Operator admin | Academy |
academy.deleteTrain | mutation | Operator admin | Academy |
academy.report | query | Operator | Academy |
academy.myCourses | query | Organisation member | Academy, People and projects |
academy.take | query | Organisation member | Academy |
academy.setLessonDone | mutation | Organisation member | Academy |
academy.submitQuiz | mutation | Organisation member | Academy |
academy.certificate | query | Organisation member | Academy |
academy.progress | query | Organisation admin | Academy |
academy.assign | mutation | Organisation admin | Academy |
academy.unassign | mutation | Organisation admin | Academy |
Back office AI: 12 functions
Back office AI: 12 functions
| Function | Kind | Who can call it | Called from |
|---|---|---|---|
backofficeAi.get | query | Operator | Settings and sandboxes |
backofficeAi.addDefaults | mutation | Operator admin | Settings and sandboxes |
backofficeAi.setSetting | mutation | Operator admin | Settings and sandboxes |
backofficeAi.setPrompt | mutation | Operator admin | Settings and sandboxes |
backofficeAi.resetPrompt | mutation | Operator admin | Settings and sandboxes |
backofficeAi.setKey | mutation | Operator admin | Settings and sandboxes |
backofficeAi.admin | internalQuery | Internal only | Back office AI |
backofficeAi.testConnection | action | Operator admin | Settings and sandboxes |
backofficeAi.usage | query | Operator | Settings and sandboxes |
backofficeAi.sceneForNarration | internalQuery | Internal only | Back office AI |
backofficeAi.generateNarration | action | Operator admin | Videos |
backofficeAi.generateBadge | action | Operator admin | Academy |

