Download the PHP package sentix/ai-chatbot without Composer

On this page you can find all versions of the php package sentix/ai-chatbot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ai-chatbot

Sentix AI Chatbot Package (sentix/ai-chatbot) v1.5.0

A lightweight, framework-agnostic (zero Tailwind/Bootstrap dependency), driver-architected AI Chatbot widget for Laravel with real-time SSE streaming, automatic Eloquent context extraction, SaaS Multi-Tenant settings resolution, Provider Auto-Failover switching, RAG relevance ranking, Quick Action Chips, Text-to-Speech, IndexedDB persistence, Function Calling Tools, built-in rate limiting, and zero-scrollbar modern UI.


🆕 What's New in v1.5.0


🌟 Key Features


🚀 Installation & Setup

1. Add Repository to composer.json

Add the local package path to your main Laravel application's composer.json:

Then run:

2. Publish Configuration & Assets

Publish configuration file and static assets:

3. Add Widget to Blade Views

Render the chatbot widget in your main layout file (e.g., resources/views/layouts/app.blade.php) right before </body>:


🧩 Eloquent Context Extraction & Relationships (HasAiContext)

The package automatically extracts Eloquent model data and relationship hierarchies to provide live database context to the AI Chatbot.

1. Add Trait to your Eloquent Models

Add Sentix\AiChatbot\Traits\HasAiContext trait to any Eloquent model and define the $aiFields property to specify which database columns the AI is allowed to see:

2. Enable Trait on Related Models (Relationship Traversal)

When the package queries Product, it scans all relationship methods (category, reviews). If the related model (Category or Review) also uses HasAiContext, relationship data is automatically nested into the AI context prompt!

3. Register Models in config/ai-chatbot.php

List all top-level Eloquent models in config/ai-chatbot.php under context_models:

4. User-Scoped Data Filtering (Multi-Tenant / Personal Data)

If your app requires the AI chatbot to only answer questions about the currently logged-in user's data (e.g. "Show my orders"):

  1. Enable user scoping in .env:

  2. The package will automatically filter records matching user_id == auth()->id(), or you can define a custom scopeUserScoped($query, $userId) scope on your model:

5. Custom Knowledge Base & Static App Guides (custom_context)

You can define custom static knowledge base arrays, feature FAQs, menu navigation guides, or form filling instructions in config/ai-chatbot.php under custom_context:


🛠️ Registering Custom AI Tools (Function Calling)

You can register custom PHP tools implementing Sentix\AiChatbot\Contracts\AiToolInterface:


🔌 Adding Custom AI Drivers

You can easily register a custom AI driver implementing Sentix\AiChatbot\Contracts\AiDriverInterface:


⚙️ Environment Variables (.env)


📄 License

MIT License. Created by Sentix.


All versions of ai-chatbot with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1|^8.2|^8.3|^8.4
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sentix/ai-chatbot contains the following files

Loading the files please wait ...