LIVE
📦 Open-Source PHP Template — Live Code Demo

RAIA

Reunify AI Assistant — Demo

This is a live demo of RAIA, an open-source PHP template for building your own self-hosted AI chat widget. Clone it, connect Groq, Mistral, Gemini, OpenAI, Claude, DeepSeek, or Azure OpenAI without touching the frontend, ground its answers in your own FAQ or documentation with a CSV drop, and give it a defined persona instead of a generic AI voice. Built with encrypted memory, rate limiting, and real security from the ground up. Try the chat bubble in the corner to see it in action.

Heads up: this demo currently works as a knowledge-grounded chat assistant, answering questions and pulling from real documentation. Full autonomous agent capabilities, taking actions on your behalf, not just answering, are on the roadmap, not built yet.

AES-256 encrypted 7 AI providers RAG-grounded Self-hosted, no vendor lock-in MIT Licensed Plain PHP + MySQL
Click to try it live →
Clone this template on GitHub

What's actually built in

Seven AI Providers

Groq, Mistral, Gemini, OpenAI, Claude, DeepSeek, or Azure OpenAI, switch between them from a dropdown, no code changes.

Encrypted Memory

Conversation history is AES-256-GCM encrypted at rest in MySQL, not stored as plain text.

Remembers Context

Tied to a visitor cookie, history survives page reloads and return visits, and auto-expires after 30 days of inactivity.

Rate Limited

Built-in abuse protection by IP and by visitor, checked before any paid API call ever goes out.

Real Formatting

Bold, links, code, lists, and more, rendered safely. HTML is escaped first, so nothing an AI replies with can ever inject a real tag.

Grounded in Your Docs

Drop a CSV of FAQs, policies, or documentation, and answers get grounded in it automatically. Not a generic chatbot, one that actually knows your business.

Configurable Persona

Give it a defined role, a sales associate, a coding tutor, a support agent, instead of a generic AI. Off by default, and hardened against "ignore your instructions" attempts when it's on.

Drop-In Widget

One include line embeds it on any PHP page, anywhere on your site, see below.

Token Usage Tracking

Every reply's token usage is tracked per conversation, so you can see exactly what a conversation cost, not guess from a vague estimate.

Integration is one line

The chat bubble is a fully self-contained component. This is the entire setup:

<?php include '/path/to/reunify-ai-chat/widget.php'; ?>
RAIA embroidered dad hats, dark and light editions

Not merch. A flag for the love of building.

This isn't really about RAIA. It's for anyone who loves building things, especially the AI kind, late nights, half-finished ideas, shipping something real instead of just talking about it. The brain-and-circuit mark just happens to be where that instinct led this time. Two editions, dark and light.

The links below apply 10% off automatically, you'll see it reflected at checkout, no code needed.

Rhoel Alcantara

Built by Rhoel Alcantara — LinkedIn · GitHub

Try the live demo! 👋