siberfx/chat-hybrid-ai
A Laravel package for adding hybrid AI chat to your app, combining multiple AI backends and fallback logic behind a unified, configurable chat interface. Integrates with PHP/Laravel projects to streamline conversational features.
SearchRecords, FindRecord, Check, and request_human maps cleanly to a phased roadmap: (1) answer from docs/site search, (2) answer account-specific questions for signed-in users, (3) automate deterministic checks (coupon validity, delivery windows), (4) escalate to humans. That is a defensible maturity path rather than a big-bang AI launch.HYBRID_CHAT_AI_PROVIDERS=anthropic,openai with failover plus support for 13+ providers (including Ollama and any OpenAI-compatible endpoint) turns model choice into a config decision, not an architecture decision. This supports negotiating on price/latency and de-risking a single-vendor outage or deprecation.auth()->user()), is a product-level safety boundary: it constrains the assistant to read-only, per-visitor-scoped lookups. That is the decision that makes an AI agent approvable in a product with customer PII, and it sets a clear "no autonomous writes" scope for v1.laravel-ai, new migration). If the package is already in use, this is a scheduled migration decision, not a routine bump.Consider adoption when:
<x-chat-hybrid-ai-bubble>) rather than a custom front end, and you are comfortable with Blade/Livewire-style integration.request_human plus the hybrid model is the core value proposition.Look elsewhere when:
laravel-ai as the default driver.SimilaritySearch and Scout support exist, but if retrieval quality is the product, you will be building that layer regardless.For executives: This is a low-cost, Laravel-native way to put an AI assistant in front of customers that answers from our own data without us building an AI stack. It deflects repetitive support questions, escalates to a human on request, and keeps every lookup auditable. Model choice is a config line, so we are not locked into one AI vendor and can fail over if one goes down. The scoping rules mean the assistant only shows people their own records, which is the control that makes this approvable.
For engineering: v2.0.0 rebases the agent on the Laravel AI SDK, replacing the bespoke anthropic/openai drivers with a laravel-ai default and adding multi-provider failover. Tools are closures — SearchRecords (LIKE or Scout), FindRecord (scoped to signed-in visitor or guest-confirmed), Check (arbitrary validation logic), request_human, plus any laravel/ai tool including WebSearch and SimilaritySearch. The AI never writes SQL; all data access is through these declared tools. Breaking changes: driver config changes and a required php artisan migrate. Plan the upgrade as a real migration with a staging pass, and review the tool scopes before enabling identity for signed-in users.
How can I help you explore Laravel packages today?