Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ apps/api/models/*
playwright-report
test-results
.astro/
videos/ailoom-tour/.hyperframes/
1 change: 1 addition & 0 deletions .hallmark/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ before/
before.json
before.txt
compare.html
review/
14 changes: 8 additions & 6 deletions DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: A support answer ledger for grounded AI and human handoffs.
colors:
charcoal: 'oklch(20% 0.008 150)'
charcoal-rail: 'oklch(20% 0.008 150)'
silver-canvas: 'oklch(96.5% 0.004 260)'
silver-canvas: 'oklch(97% 0.004 260)'
silver-surface: 'oklch(99% 0.002 260)'
silver-rule: 'oklch(85% 0.006 260)'
silver-rule: 'oklch(87% 0.006 260)'
lime: 'oklch(84% 0.16 125)'
lime-deep: 'oklch(53% 0.12 130)'
warning: 'oklch(96% 0.018 90)'
Expand Down Expand Up @@ -96,8 +96,9 @@ monospace for code, identifiers, and measurements.
## Layout

The signed-in shell uses a charcoal product bar followed by a silver workspace navigation rail.
Keep the working area wide enough for conversation records and evidence, while settings forms use a
narrower readable measure. At small widths, keep workspace navigation reachable and reflow dense
The working container is capped at 1440px. Keep the working area wide enough for conversation
records and evidence, while settings forms use a narrower readable measure. At small widths, keep
workspace navigation reachable and reflow dense
records into stacked cards before their values become too narrow to read. Settings subnavigation
uses a two-column list so every destination stays visible without a hidden tab strip. Conversation
rows prioritize the customer, current state, and latest message before secondary metadata. At wide
Expand Down Expand Up @@ -147,8 +148,9 @@ surface fill behind long text.

### Authentication

- Signed-out forms use a charcoal title band and a silver content surface; the primary action carries the lime signal.
- Keep the form centered, single-column, and comfortable to use on narrow screens.
- Signed-out pages pair a charcoal product rail with a silver form surface; the rail collapses above
the form on mobile. The primary action carries the lime signal.
- Keep fields in one reading column, with generous spacing and a clear loading state for submission.

### Answer Ledger

Expand Down
9 changes: 4 additions & 5 deletions PRODUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ per-bot widget colors remain configurable and are preserved.

## Evidence on Hand

Product evidence includes the README demo at `docs/assets/demo.gif` and admin screenshots at
`docs/assets/screenshot-inbox.png`,
`docs/assets/screenshot-knowledge.png`, `docs/assets/screenshot-replay.png`, and
`docs/assets/screenshot-usage.png`. No approved customer quotes, independent testimonials, or
production usage metrics were found. Demo content must remain clearly illustrative.
Product evidence includes the current tour at `videos/ailoom-tour/renders/ailoom-product-tour.mp4`
and current labeled screens under `docs/assets/screenshot-showcase-*.png`. No approved customer
quotes, independent testimonials, or production usage metrics were found. Demo content must remain
clearly illustrative.

## Product Principles

Expand Down
36 changes: 28 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

[Get started](https://li4nee.github.io/Ailoom/getting-started/) · [Browse the docs](https://li4nee.github.io/Ailoom/) · [Contribute](CONTRIBUTING.md)

## Watch the product tour

[![AiLoom product tour: one customer question moves from a grounded widget answer to a human reply](docs/assets/ailoom-tour-poster.png)](videos/ailoom-tour/renders/ailoom-product-tour.mp4)

[Play the 80-second tour](videos/ailoom-tour/renders/ailoom-product-tour.mp4) · [Browse each workflow](https://li4nee.github.io/Ailoom/#explore-the-product)

## What AiLoom does

- **Grounded support:** index help pages, files, and text; test retrieval; inspect answer sources and traces.
Expand All @@ -21,25 +27,33 @@

## See the product

Explore the widget, knowledge, handoff, and answer-review workflows. Each recording has an on-screen label for its current step.
Explore the widget, knowledge, handoff, and answer-review workflows. The walkthrough captions explain each step while keeping the answer evidence unobstructed.

### 1. Configure the widget and preview it as a customer

![Widget interactions: admin-authored cards, quick replies, and a bounded form, followed by the customer-facing widget](docs/assets/showcase-widget-interactions.gif)
[![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)

[Watch widget setup and visitor preview](videos/ailoom-tour/assets/showcase-widget-interactions.mp4)

### 2. Add knowledge and test retrieval

![Add a knowledge source, then test which passages match a customer question](docs/assets/showcase-knowledge.gif)
[![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/showcase-handoff.gif)
[![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/showcase-answer-trace.gif)
[![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)

### Admin and agent screens

Expand All @@ -53,17 +67,23 @@ Screenshots show the controls and inbox details at a glance. Labels are included
| [![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) |

<details>
<summary>Watch the admin walkthroughs for routing and knowledge gaps</summary>

![Configure availability, automatic assignment, capacity, and service targets](docs/assets/showcase-agent-operations.gif)
![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)

![Review usage trends and find unanswered questions that need better coverage](docs/assets/showcase-insights.gif)
[Watch usage and knowledge-gap reporting](videos/ailoom-tour/assets/showcase-insights.mp4)

</details>

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. [View the separate sample Q&A clip (mock provider)](docs/assets/showcase-answer.gif). No shared public sandbox is available.
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.

To run the seeded demo after starting the local development stack:

Expand Down
10 changes: 7 additions & 3 deletions apps/admin/src/components/app-shell.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { Link, useParams } from '@tanstack/react-router';
import { CircleUser } from 'lucide-react';
import { CircleUser, MessagesSquare } from 'lucide-react';
import type { ReactNode } from 'react';

import { Button } from '@/components/ui/button';
Expand Down Expand Up @@ -35,7 +35,11 @@ export function AppShell({ me, children }: { me: MeResponse; children: ReactNode
</a>
<header className="app-topbar sticky top-0 z-40 border-b">
<div className="admin-page admin-gutters flex min-h-14 items-center gap-2 sm:gap-3">
<Link to="/" className="shrink-0 rounded-sm text-base font-semibold tracking-[-0.025em]">
<Link
to="/"
className="app-wordmark shrink-0 rounded-sm text-base font-semibold tracking-[-0.025em]"
>
<MessagesSquare aria-hidden="true" className="size-5" />
{strings.app.name}
</Link>
<span aria-hidden="true" className="brand-divider h-5 w-px shrink-0" />
Expand All @@ -50,7 +54,7 @@ export function AppShell({ me, children }: { me: MeResponse; children: ReactNode
<CircleUser aria-hidden="true" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuContent align="end" className="w-64">
<DropdownMenuLabel>{me.email}</DropdownMenuLabel>
<DropdownMenuSeparator />
<DropdownMenuItem asChild>
Expand Down
66 changes: 54 additions & 12 deletions apps/admin/src/components/auth-card.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { BookOpen, MessagesSquare, Users } from 'lucide-react';
import type { ReactNode } from 'react';

import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@/components/ui/card';
import { strings } from '@/strings';

/** The centered card every signed-out page uses. */
export function AuthCard({
Expand All @@ -14,18 +16,58 @@ export function AuthCard({
footer?: ReactNode;
}) {
return (
<main className="auth-shell flex min-h-screen items-center justify-center p-4">
<Card className="auth-card w-full max-w-sm p-0">
<CardHeader>
<CardTitle>
<h1 className="text-xl">{title}</h1>
</CardTitle>
</CardHeader>
<CardContent className="space-y-4">{children}</CardContent>
{footer === undefined ? null : (
<CardFooter className="flex flex-col gap-2 text-sm">{footer}</CardFooter>
)}
</Card>
<main className="auth-shell">
<div className="auth-layout">
<aside className="auth-brand" aria-label={strings.app.name}>
<div className="auth-wordmark">
<MessagesSquare aria-hidden="true" />
<span>{strings.app.name}</span>
</div>
<div className="auth-brand-content">
<p className="auth-brand-title">
Knowledge.
<br />
Conversations.
<br />
Your team.
</p>
<p className="auth-brand-description">
Self-hosted AI customer support with a shared human inbox.
</p>
</div>
<div className="auth-workflow" aria-hidden="true">
<span>
<BookOpen />
Knowledge
</span>
<span>
<MessagesSquare />
Answers
</span>
<span>
<Users />
Handoffs
</span>
</div>
</aside>
<div className="auth-form-region">
<div className="auth-mobile-brand">
<MessagesSquare aria-hidden="true" />
{strings.app.name}
</div>
<Card className="auth-card w-full p-0">
<CardHeader>
<CardTitle>
<h1 className="text-2xl">{title}</h1>
</CardTitle>
</CardHeader>
<CardContent className="space-y-4">{children}</CardContent>
{footer === undefined ? null : (
<CardFooter className="flex flex-col gap-2 text-sm">{footer}</CardFooter>
)}
</Card>
</div>
</div>
</main>
);
}
2 changes: 1 addition & 1 deletion apps/admin/src/components/ui/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const alertVariants = cva(
variant: {
default: 'bg-card text-card-foreground',
destructive:
'bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current',
'border-destructive/30 bg-destructive/5 text-destructive *:data-[slot=alert-description]:text-destructive [&>svg]:text-current',
},
},
defaultVariants: {
Expand Down
4 changes: 2 additions & 2 deletions apps/admin/src/components/ui/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {
return (
<div
data-slot="dialog-header"
className={cn('flex flex-col gap-2 text-center sm:text-left', className)}
className={cn('flex flex-col gap-2 pr-8 text-left', className)}
{...props}
/>
);
Expand Down Expand Up @@ -112,7 +112,7 @@ function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog
return (
<DialogPrimitive.Title
data-slot="dialog-title"
className={cn('text-lg leading-none font-semibold', className)}
className={cn('text-xl leading-tight font-semibold', className)}
{...props}
/>
);
Expand Down
12 changes: 9 additions & 3 deletions apps/admin/src/components/ui/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ function Table({ className, ...props }: React.ComponentProps<'table'>) {
}

function TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {
return <thead data-slot="table-header" className={cn('[&_tr]:border-b', className)} {...props} />;
return (
<thead
data-slot="table-header"
className={cn('bg-muted/50 [&_tr]:border-b', className)}
{...props}
/>
);
}

function TableBody({ className, ...props }: React.ComponentProps<'tbody'>) {
Expand Down Expand Up @@ -57,7 +63,7 @@ function TableHead({ className, ...props }: React.ComponentProps<'th'>) {
<th
data-slot="table-head"
className={cn(
'h-11 px-4 text-left align-middle text-xs font-medium whitespace-nowrap text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
'h-11 px-4 text-left align-middle text-sm font-medium whitespace-nowrap text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
className,
)}
{...props}
Expand All @@ -70,7 +76,7 @@ function TableCell({ className, ...props }: React.ComponentProps<'td'>) {
<td
data-slot="table-cell"
className={cn(
'px-4 py-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
'px-4 py-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
className,
)}
{...props}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function DeleteAccount({ onDeleted }: { onDeleted: () => void }) {
const [password, setPassword] = useState('');

return (
<section className="space-y-2">
<section className="danger-section space-y-4">
<h2 className="text-lg font-semibold">{strings.account.deleteTitle}</h2>
<p className="text-sm text-muted-foreground">{strings.account.deleteIntro}</p>
<ConfirmDialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ export function PasswordForm() {

return (
<Form {...form}>
<form onSubmit={(event) => void submit(event)} className="max-w-md space-y-3" noValidate>
<form
onSubmit={(event) => void submit(event)}
className="form-section max-w-2xl space-y-5"
noValidate
>
<h2 className="text-lg font-semibold">{strings.account.changePassword}</h2>
<FormAlert
message={errorMessage(update.error, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function ProfileForm({ me }: { me: MeResponse }) {

return (
<form
className="max-w-md space-y-3"
className="form-section max-w-2xl space-y-5"
onSubmit={(event) => {
event.preventDefault();
if (name.trim() !== '') update.mutate({ name: name.trim() });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { zodResolver } from '@hookform/resolvers/zod';
import { LoaderCircle } from 'lucide-react';
import { useForm } from 'react-hook-form';

import { FormAlert } from '@/components/form-alert';
Expand Down Expand Up @@ -35,7 +36,7 @@ export function ForgotPasswordForm() {

return (
<Form {...form}>
<form onSubmit={(event) => void submit(event)} className="space-y-4" noValidate>
<form onSubmit={(event) => void submit(event)} className="space-y-5" noValidate>
<FormAlert message={errorMessage(forgot.error)} />
<FormField
control={form.control}
Expand All @@ -50,7 +51,18 @@ export function ForgotPasswordForm() {
</FormItem>
)}
/>
<Button type="submit" className="w-full" disabled={forgot.isPending}>
<Button
type="submit"
className="w-full"
disabled={forgot.isPending}
aria-busy={forgot.isPending}
>
{forgot.isPending ? (
<LoaderCircle
aria-hidden="true"
className="size-4 animate-spin motion-reduce:animate-none"
/>
) : null}
{strings.auth.forgotSubmit}
</Button>
</form>
Expand Down
Loading