diff --git a/.prettierignore b/.prettierignore index cd9d822d..a9a06873 100644 --- a/.prettierignore +++ b/.prettierignore @@ -6,6 +6,12 @@ CODE_OF_CONDUCT.md apps/api/models .superpowers/ .astro/ +.hallmark/ *.gen.ts +# HyperFrames-generated HTML is render input; preserve its deterministic markup. +videos/ailoom-tour/assets/workflows/gsap.min.js +videos/ailoom-tour/compositions/workflow-scenes/ +videos/ailoom-tour/compositions/workflows/ +videos/ailoom-tour/index.html # Test inputs: kept byte-exact, the way real sites and uploads serve them. apps/api/test/fixtures/ diff --git a/README.md b/README.md index d5169231..463a5e34 100644 --- a/README.md +++ b/README.md @@ -25,65 +25,38 @@ - **Privacy controls:** choose whether email, phone, payment-card, and credential values are redacted from new transcripts and before AI or tool requests. - **Self-hosted by design:** run on PostgreSQL with pgvector and connect a supported hosted or local model provider. -## See the product +## Feature walkthroughs -Explore the widget, knowledge, handoff, and answer-review workflows. The walkthrough captions explain each step while keeping the answer evidence unobstructed. +Six separate, narrated tours cover the setup and the main customer, agent, and admin workflows. Each is about a minute long, uses the same voice, and includes English captions. Select a poster to play a video. -### 1. Configure the widget and preview it as a customer +| Set up and integrate | Configure the customer experience | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [![Set up AiLoom, add the widget, and connect integrations](docs/assets/workflow-setup-integrations-poster.jpg)](videos/ailoom-tour/renders/workflows/setup-integrations.mp4) | [![Configure cards, quick replies, and a support form](docs/assets/workflow-widget-experience-poster.jpg)](videos/ailoom-tour/renders/workflows/widget-experience.mp4) | +| [Play setup and integration](videos/ailoom-tour/renders/workflows/setup-integrations.mp4) | [Play the widget walkthrough](videos/ailoom-tour/renders/workflows/widget-experience.mp4) | -[![Widget interactions: admin-authored cards, quick replies, and a bounded form, followed by the customer-facing widget](docs/assets/screenshot-showcase-widget-interactions.png)](videos/ailoom-tour/assets/showcase-widget-interactions.mp4) +| Ground answers in knowledge | Bring a person into the conversation | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| [![Add knowledge, test retrieval, and inspect answer evidence](docs/assets/workflow-grounded-answers-poster.jpg)](videos/ailoom-tour/renders/workflows/grounded-answers.mp4) | [![Route a customer handoff to an agent](docs/assets/workflow-human-handoff-poster.jpg)](videos/ailoom-tour/renders/workflows/human-handoff.mp4) | +| [Play the knowledge walkthrough](videos/ailoom-tour/renders/workflows/grounded-answers.mp4) | [Play the handoff walkthrough](videos/ailoom-tour/renders/workflows/human-handoff.mp4) | -[Watch widget setup and visitor preview](videos/ailoom-tour/assets/showcase-widget-interactions.mp4) +| Keep tools inside admin limits | Measure and improve answer quality | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [![Review bounded API and MCP tools and privacy controls](docs/assets/workflow-safe-tools-privacy-poster.jpg)](videos/ailoom-tour/renders/workflows/safe-tools-privacy.mp4) | [![Inspect traces, evaluations, prompt releases, and knowledge gaps](docs/assets/workflow-answer-quality-poster.jpg)](videos/ailoom-tour/renders/workflows/answer-quality.mp4) | +| [Play the tools and privacy walkthrough](videos/ailoom-tour/renders/workflows/safe-tools-privacy.mp4) | [Play the answer quality walkthrough](videos/ailoom-tour/renders/workflows/answer-quality.mp4) | -### 2. Add knowledge and test retrieval - -[![Add a knowledge source, then test which passages match a customer question](docs/assets/screenshot-showcase-retrieval.png)](videos/ailoom-tour/assets/showcase-knowledge.mp4) - -[Watch the knowledge and retrieval flow](videos/ailoom-tour/assets/showcase-knowledge.mp4) - -### 3. Hand off to an agent and reply in the same conversation - -[![Customer requests a person, confirms the handoff, shares optional contact details, and receives an agent reply in the same chat](docs/assets/screenshot-showcase-handoff.png)](videos/ailoom-tour/assets/showcase-handoff.mp4) - -[Watch the handoff and agent reply](videos/ailoom-tour/assets/showcase-handoff.mp4) - -### 4. Inspect the evidence behind an answer - -Open a seeded answer trace to review the retrieved source, relevance, model usage, cost, and latency. - -[![Answer trace: inspect the source and runtime details behind an assistant response](docs/assets/screenshot-showcase-answer-trace.png)](videos/ailoom-tour/assets/showcase-answer-trace.mp4) - -[Watch answer evidence review](videos/ailoom-tour/assets/showcase-answer-trace.mp4) +The demos use synthetic Northwind Outfitters data and a mock AI provider in a local workspace. The answer trace is seeded with retrieved evidence; no shared public sandbox is available. ### Admin and agent screens -Screenshots show the controls and inbox details at a glance. Labels are included inside each image. - -| Widget fields and quick-reply result | Routing and agent availability | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [![Admin-configured bounded support form](docs/assets/screenshot-showcase-interaction-form.png)](docs/assets/screenshot-showcase-interaction-form.png) | [![Agent presence, least-loaded assignment, and open-conversation capacity](docs/assets/screenshot-showcase-operations.png)](docs/assets/screenshot-showcase-operations.png) | -| [![A customer selects a suggested delivery question and sends it to the assistant](docs/assets/screenshot-showcase-quick-reply.png)](docs/assets/screenshot-showcase-quick-reply.png) | [![Response and resolution targets for human handoffs](docs/assets/screenshot-showcase-sla.png)](docs/assets/screenshot-showcase-sla.png) | -| Customer handoff in the team inbox | Agent reply in the shared conversation | -| [![The visitor's handoff request appears in the agent inbox](docs/assets/screenshot-showcase-inbox.png)](docs/assets/screenshot-showcase-inbox.png) | [![An agent replies in the shared conversation](docs/assets/screenshot-showcase-agent-reply.png)](docs/assets/screenshot-showcase-agent-reply.png) | -| Usage and cost | Knowledge gaps | -| [![Support volume, feedback, tokens, and cost](docs/assets/screenshot-showcase-usage.png)](docs/assets/screenshot-showcase-usage.png) | [![Repeat unanswered questions to improve source coverage](docs/assets/screenshot-showcase-insights.png)](docs/assets/screenshot-showcase-insights.png) | -| Privacy and data sharing | Read-only API and MCP tools | -| [![Choose categories to redact before provider requests](docs/assets/screenshot-showcase-privacy.png)](docs/assets/screenshot-showcase-privacy.png) | [![Review tool inputs, read-only scope, and output fields](docs/assets/screenshot-showcase-tools.png)](docs/assets/screenshot-showcase-tools.png) | - -
-Watch the admin walkthroughs for routing and knowledge gaps - -![Configure availability, automatic assignment, capacity, and service targets](docs/assets/screenshot-showcase-operations.png) - -[Watch agent routing and service targets](videos/ailoom-tour/assets/showcase-agent-operations.mp4) - -![Review usage trends and find unanswered questions that need better coverage](docs/assets/screenshot-showcase-insights.png) - -[Watch usage and knowledge-gap reporting](videos/ailoom-tour/assets/showcase-insights.mp4) - -
+These labeled screenshots show the controls and inbox details at a glance. -All recordings use synthetic Northwind Outfitters data in a local demo workspace. The answer trace is a seeded conversation with retrieved evidence and a deterministic mock provider. [Watch the sample customer Q&A](videos/ailoom-tour/assets/showcase-answer.mp4). No shared public sandbox is available. +| Widget interactions | Routing and service targets | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [![Admin-configured bounded support form](docs/assets/screenshot-showcase-interaction-form.png)](docs/assets/screenshot-showcase-interaction-form.png) | [![Agent presence, least-loaded assignment, and capacity](docs/assets/screenshot-showcase-operations.png)](docs/assets/screenshot-showcase-operations.png) | +| [![Customer quick reply in the widget](docs/assets/screenshot-showcase-quick-reply.png)](docs/assets/screenshot-showcase-quick-reply.png) | [![Response and resolution targets for handoffs](docs/assets/screenshot-showcase-sla.png)](docs/assets/screenshot-showcase-sla.png) | +| [![Visitor handoff request in the team inbox](docs/assets/screenshot-showcase-inbox.png)](docs/assets/screenshot-showcase-inbox.png) | [![Agent reply in the shared conversation](docs/assets/screenshot-showcase-agent-reply.png)](docs/assets/screenshot-showcase-agent-reply.png) | +| [![Support volume, feedback, tokens, and cost](docs/assets/screenshot-showcase-usage.png)](docs/assets/screenshot-showcase-usage.png) | [![Repeated unanswered questions to improve source coverage](docs/assets/screenshot-showcase-insights.png)](docs/assets/screenshot-showcase-insights.png) | +| [![Choose categories to redact before provider requests](docs/assets/screenshot-showcase-privacy.png)](docs/assets/screenshot-showcase-privacy.png) | [![Review tool inputs, scope, and output fields](docs/assets/screenshot-showcase-tools.png)](docs/assets/screenshot-showcase-tools.png) | To run the seeded demo after starting the local development stack: diff --git a/apps/docs/scripts/copy-assets.mjs b/apps/docs/scripts/copy-assets.mjs index d7537486..f2633140 100644 --- a/apps/docs/scripts/copy-assets.mjs +++ b/apps/docs/scripts/copy-assets.mjs @@ -1,7 +1,7 @@ // SPDX-License-Identifier: AGPL-3.0-only // Copies the architecture diagrams from the repository's docs/assets into the docs site, // so docs/assets stays the single source of truth (run automatically before dev/build). -import { cpSync, copyFileSync, mkdirSync, readdirSync, rmSync } from 'node:fs'; +import { cpSync, copyFileSync, mkdirSync, readFileSync, readdirSync, rmSync } from 'node:fs'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; @@ -9,6 +9,9 @@ const here = dirname(fileURLToPath(import.meta.url)); const from = join(here, '../../../docs/assets'); const to = join(here, '../public/assets'); const tour = join(here, '../../../videos/ailoom-tour'); +const workflowVideos = join(tour, 'renders/workflows'); +const workflowSources = join(tour, 'workflows'); +const workflowManifest = JSON.parse(readFileSync(join(workflowSources, 'manifest.json'), 'utf8')); rmSync(to, { recursive: true, force: true }); mkdirSync(to, { recursive: true }); @@ -16,11 +19,14 @@ const svgs = readdirSync(from).filter((f) => f.endsWith('.svg')); for (const f of svgs) cpSync(join(from, f), join(to, f)); const showcaseFiles = readdirSync(from).filter((f) => /^screenshot-showcase-.*\.png$/.test(f)); for (const f of showcaseFiles) cpSync(join(from, f), join(to, f)); -const videos = readdirSync(join(tour, 'assets')).filter((f) => /^showcase-.*\.mp4$/.test(f)); -for (const f of videos) copyFileSync(join(tour, 'assets', f), join(to, f)); copyFileSync(join(tour, 'renders', 'ailoom-product-tour.mp4'), join(to, 'ailoom-product-tour.mp4')); copyFileSync(join(from, 'ailoom-tour-poster.png'), join(to, 'ailoom-tour-poster.png')); +for (const { slug } of workflowManifest.videos) { + copyFileSync(join(workflowVideos, `${slug}.mp4`), join(to, `workflow-${slug}.mp4`)); + copyFileSync(join(workflowSources, `${slug}.en.vtt`), join(to, `workflow-${slug}.en.vtt`)); + copyFileSync(join(from, `workflow-${slug}-poster.jpg`), join(to, `workflow-${slug}-poster.jpg`)); +} // eslint-disable-next-line no-console console.log( - `copy-assets: ${svgs.length} diagrams, ${showcaseFiles.length} screenshots, and ${videos.length + 1} videos copied`, + `copy-assets: ${svgs.length} diagrams, ${showcaseFiles.length} screenshots, and ${workflowManifest.videos.length + 1} narrated videos copied`, ); diff --git a/apps/docs/src/components/ProductShowcase.astro b/apps/docs/src/components/ProductShowcase.astro index 870e6d5f..02d077c0 100644 --- a/apps/docs/src/components/ProductShowcase.astro +++ b/apps/docs/src/components/ProductShowcase.astro @@ -3,32 +3,46 @@ const base = `${import.meta.env.BASE_URL.replace(/\/$/, '')}/assets/`; const tours = [ { - title: 'Configure the widget', - description: 'Set up cards, quick replies, and a support form. Then see what a visitor sees.', - clip: 'widget-interactions', - still: 'widget-interactions', - alt: 'Storefront with the help widget open, showing suggested questions and a support form.', + slug: 'setup-integrations', + title: 'Set up and integrate', + description: 'Deploy AiLoom, create a bot, add the widget, and connect optional integrations.', + poster: 'setup-integrations', + alt: 'AiLoom setup walkthrough showing deployment, widget installation, and integrations.', }, { - title: 'Test knowledge retrieval', - description: 'Check which parts of a help article match a customer’s question.', - clip: 'knowledge', - still: 'retrieval', - alt: 'A return-policy search with matching knowledge passages and their relevance scores.', + slug: 'widget-experience', + title: 'Configure the customer experience', + description: 'Build welcome cards, quick replies, and validated support forms for the widget.', + poster: 'widget-experience', + alt: 'Widget walkthrough showing welcome content, quick replies, and a support form.', }, { - title: 'Hand off to an agent', - description: 'See the request for human help and the agent’s reply in the same chat.', - clip: 'handoff', - still: 'handoff', - alt: 'A support agent’s reply appears in the existing storefront conversation.', + slug: 'grounded-answers', + title: 'Ground answers in your knowledge', + description: 'Add sources, test retrieval, inspect citations, and verify answers against evidence.', + poster: 'grounded-answers', + alt: 'Knowledge walkthrough showing source management, retrieval tests, and answer evidence.', }, { - title: 'Inspect an answer', - description: 'Review retrieved sources, model usage, cost, and latency in a seeded trace.', - clip: 'answer-trace', - still: 'answer-trace', - alt: 'Answer details show retrieved sources alongside the conversation.', + slug: 'human-handoff', + title: 'Bring a person into the conversation', + description: 'Carry customer context into a routed shared inbox and agent reply.', + poster: 'human-handoff', + alt: 'Handoff walkthrough showing a customer request, shared inbox, and agent reply.', + }, + { + slug: 'safe-tools-privacy', + title: 'Keep tools inside admin limits', + description: 'Bound API and MCP lookups with input schemas, output allowlists, and privacy controls.', + poster: 'safe-tools-privacy', + alt: 'Tool and privacy walkthrough showing admin-defined limits and data controls.', + }, + { + slug: 'answer-quality', + title: 'Measure and improve answer quality', + description: 'Use traces, evaluations, prompt releases, and knowledge gaps to improve support.', + poster: 'answer-quality', + alt: 'Answer quality walkthrough showing traces, evaluations, and knowledge-gap reporting.', }, ]; @@ -55,13 +69,20 @@ const screenshot = (name: string) => `${base}screenshot-showcase-${name}.png`;