Examples
Explore practical examples of react-ai-chat for business websites, documentation, portfolios, and custom interfaces.
See how react-ai-chat can be used in different types of applications.
Each example focuses on a practical use case and shows how to combine the chatbot UI, server-side route, and optional RAG setup.
Explore the examples
Business Site
Add an AI assistant that answers questions about your services, pricing, policies, and business information.
Documentation Site
Build a documentation assistant that answers questions using your project's own documentation.
Portfolio
Help visitors explore your projects, skills, experience, and services with an AI assistant.
Custom UI
Build a completely custom chatbot interface using ChatbotProvider and useChatbotContext.
Business site
A business chatbot can help visitors find information without searching through multiple pages.
It can answer questions about:
Services
Pricing
Business hours
Locations
Contact information
Policies
AvailabilitySee Business Site for a complete RAG setup using business content.
Documentation site
A documentation chatbot can search your project's documentation and provide answers based on the relevant sections.
Documentation
↓
Embedding index
↓
RAG retrieval
↓
AI model
↓
AnswerSee Documentation Site for a complete documentation chatbot setup.
Portfolio
A portfolio assistant can help visitors learn about your work without manually searching through every section of your portfolio.
You can index information about:
About
Skills
Experience
Projects
Services
Education
ContactSee Portfolio for a complete portfolio chatbot example.
Custom UI
The ready-made Chatbot component handles the interface for you. Some applications need more control over the experience.
With ChatbotProvider and useChatbotContext(), you can create your own:
Message list
Chat input
Header
Loading state
Starter prompts
Message components
Actions
LayoutSee Custom UI to build a chatbot interface around your own design system.
Choosing an example
Choose the example closest to your application:
| Use case | Example |
|---|---|
| Business website | Business Site |
| Documentation | Documentation Site |
| Personal portfolio | Portfolio |
| Fully custom interface | Custom UI |
Each example can be adapted to your own API route, model, content, and design.