Perch · AI SaaS / Customer support
A branded support bot trained on each tenant's documents.
A multi-tenant chatbot platform: upload documents, embed a branded widget, and let staff take over conversations live.
- React
- Fastify
- TypeScript
- PostgreSQL
- pgvector
- OpenAI
- Preact
- AWS S3
- WebSockets
- Terraform
Screens captured from the application running locally with fictional demo data. No customer information is shown.
How it works
Perch lets a business turn its own PDFs, Word files and text into a support assistant on its website. Staff upload documents from the dashboard to S3 through presigned URLs; the Fastify API extracts the text, chunks it, embeds it with OpenAI and stores the vectors in PostgreSQL with pgvector, falling back to full-text search if embeddings fail. A 3 KB Preact loader on the customer's site opens the chat panel in an iframe, resolves its embed key to a bot, checks the page origin against that bot's allowlist and answers visitors with retrieval-grounded OpenAI completions. Every message is persisted per tenant under Postgres row-level security, and a WebSocket server streams it to the dashboard, where an agent can claim the conversation, reply as a human and hand it back to the bot. Tenants manage bots, team invitations, widget appearance and install snippets in a React dashboard.
