Skip to content
li4neePublic

About

Self-hosted AI customer support with knowledge-grounded answers, human handoff, a shared inbox, and CRM integrations.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

326 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AiLoom

CI License: AGPL-3.0-only Packages: MIT Docs: CC-BY-4.0 Status: public beta

Self-hosted AI customer support with a shared human inbox. AiLoom answers from your support knowledge, shows its sources, and hands conversations to your team when a person is needed.

Get started · Browse the docs · Contribute

Watch the product tour

AiLoom product tour: one customer question moves from a grounded widget answer to a human reply

Play the 80-second tour · Browse each workflow

What AiLoom does

  • Grounded support: index help pages, files, and text; test retrieval; inspect answer sources and traces.
  • A complete support flow: embed a branded widget with citations, handoff, feedback, cards, carousels, quick replies, and bounded forms.
  • A team inbox: route work with agent presence, capacity limits, and response or resolution targets.
  • Operational visibility: review knowledge gaps, model use, cost, latency, prompt releases, and retrieval evaluations.
  • 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.

Feature walkthroughs

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.

Set up and integrate Configure the customer experience
Set up AiLoom, add the widget, and connect integrations Configure cards, quick replies, and a support form
Play setup and integration Play the widget walkthrough
Ground answers in knowledge Bring a person into the conversation
Add knowledge, test retrieval, and inspect answer evidence Route a customer handoff to an agent
Play the knowledge walkthrough Play the handoff walkthrough
Keep tools inside admin limits Measure and improve answer quality
Review bounded API and MCP tools and privacy controls Inspect traces, evaluations, prompt releases, and knowledge gaps
Play the tools and privacy walkthrough Play the answer quality walkthrough

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

These labeled screenshots show the controls and inbox details at a glance.

Widget interactions Routing and service targets
Admin-configured bounded support form Agent presence, least-loaded assignment, and capacity
Customer quick reply in the widget Response and resolution targets for handoffs
Visitor handoff request in the team inbox Agent reply in the shared conversation
Support volume, feedback, tokens, and cost Repeated unanswered questions to improve source coverage
Choose categories to redact before provider requests Review tool inputs, scope, and output fields

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

pnpm --filter @app/api fetch-model
pnpm --filter @app/api db:seed

Sign in at http://localhost:5173 with dev@example.com / devpassword. The seed is for a local development database only; do not use it in production.

How it works

AiLoom deployment architecture: the widget and admin app connect through Caddy to the API, worker, and PostgreSQL; outbound provider requests are guarded

The Docker Compose deployment uses Caddy, a NestJS API, a background worker, and PostgreSQL with pgvector. PostgreSQL also stores background jobs and powers live inbox updates, so a separate Redis or vector database is not required. See the architecture guide for the system and request-flow diagrams.

Tools and MCP

Admins can configure fixed HTTPS GET lookups or select one reviewed, read-only tool on a remote MCP server. Each tool has bounded inputs, an output-field allowlist, timeouts, and a per-answer call limit. The model cannot choose a destination or perform write actions. AiLoom is an outbound MCP client; it does not expose an MCP server. If a tool is unavailable, the assistant can continue with other evidence or follow the configured fallback behavior.

See Bot API tools for configuration, limits, and data handling.

Run locally

Requirements: Docker Compose, Node.js 24, and pnpm 12.

git clone https://github.com/li4nee/ailoom.git
cd ailoom
cp .env.example .env
pnpm install --frozen-lockfile
pnpm secrets:generate

Paste the generated secrets into .env. For local HTTP, set:

PUBLIC_URL=http://localhost:8080
HTTP_PORT=8080
POSTGRES_USER=ailoom
POSTGRES_PASSWORD=replace-with-a-long-url-safe-password
POSTGRES_DB=ailoom

Start the stack:

docker compose -f deploy/docker-compose.yml --env-file .env up -d --build --wait

Open http://localhost:8080 and create an account. The first signup becomes the instance admin. Create a workspace, add a bot and model credential, index a knowledge source, then test a question in the bot playground. See self-hosting before exposing an instance to the internet.

Develop locally

pnpm install
cp .env.example .env
pnpm secrets:generate
docker compose -f deploy/docker-compose.dev.yml up -d
pnpm db:migrate
pnpm dev

Set PUBLIC_URL=http://localhost:3000 and DATABASE_URL=postgres://app:app@localhost:55432/app in .env. Start the worker in another terminal with pnpm --filter @app/api dev:worker. Fetch the local embedding model with pnpm --filter @app/api fetch-model before integration tests that use it. The dev stack includes Mailpit at http://localhost:8025.

Command Purpose
pnpm lint Lint the workspace
pnpm typecheck Type-check the workspace
pnpm test Run unit and integration tests
pnpm build Build packages and apps
pnpm e2e Run browser end-to-end tests

See Contributing for development and review guidelines.

Documentation

Status

AiLoom is in public beta and remains on 0.x; APIs, configuration, and database schema may change between releases. AiLoom is self-hosted, not a managed service. Operators manage their infrastructure, access controls, backups, and model-provider terms. Read the upgrade notes before upgrading.

License

The API and admin app are AGPL-3.0-only. The widget and shared packages are MIT. Documentation is CC-BY-4.0. See LICENSING.md for details.

About

Self-hosted AI customer support with knowledge-grounded answers, human handoff, a shared inbox, and CRM integrations.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages