Download the PHP package eventiva/craft-chatagent without Composer

On this page you can find all versions of the php package eventiva/craft-chatagent. 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 craft-chatagent

ChatAgent - AI Chatbot Plugin for Craft CMS

ChatAgent is a powerful AI chatbot plugin for Craft CMS that lets you train a smart assistant on your own content and deploy it directly on your website - without any third-party chat platform. Feed it your Craft entries, uploaded files, URLs, or custom Q&A pairs, and your visitors get instant, accurate answers based on your actual content.


Requirements


Installation

From the Plugin Store

Go to the Plugin Store in your project's Control Panel and search for "ChatAgent". Then press Install.

Setup

After installation, go to Chatbot → Settings → General and enable the chatbot. The widget is disabled by default and will not appear on the frontend until you toggle it on.

No template changes are required. Once enabled, the widget is automatically injected before </body> on every frontend page.

If you prefer manual placement (e.g. only on specific pages), add {{ chatbotWidget() }} to your template. The plugin detects this and will not inject the widget a second time.


Features at a Glance


Training Your Chatbot

The chatbot's knowledge comes entirely from content you provide. You can train it from four different sources, all accessible under Chatbot → Training in the Control Panel.

Craft Entries

Train the chatbot on your existing Craft CMS content in just a few clicks.

File Upload

Upload plain-text documents directly to the training index.

URL / Sitemap Training

Point the chatbot at any public webpage or import an entire sitemap at once.

Q&A Training

Define exact question-and-answer pairs to give the chatbot precise, reliable responses to common questions.


Dashboard

The Dashboard gives you a live overview of how your chatbot is being used and what it knows.

Conversation Statistics

Filter all stats by date range using the date picker or quick presets (Last 7 days, Last 30 days, Last 90 days). Stats refresh instantly without a page reload.

Activity Chart

An interactive line chart shows conversation and message volume over time - helpful for spotting peaks or drops in chatbot usage.

Suggestion Statistics

See which preset questions your visitors click most, with usage counts per suggestion.

Training Data Summary


Chat Logs

Every conversation is stored and fully accessible under Chatbot → Chat Logs.

Session List

Browse all chat sessions in a filterable, paginated table.

Filter by:

Each row shows:

Bulk Delete

At the bottom of the logs page, two bulk delete options are available:

Both actions require confirmation and cannot be undone.

Session Detail View

Click any session to see the full conversation.

Color Grading

Confidence scores are color-coded throughout the log views for instant visual scanning:

Score Color Meaning
≥ 80% Green High confidence - strong context match
60–79% Yellow Medium confidence
< 60% Red Low confidence - weak or partial context
- White No context used

Confidence Score

Every bot response is automatically assigned a confidence score between 0 and 1, based on how closely the retrieved context matches the user's question.


Thumb Up / Down User Ratings

Visitors can rate individual bot responses directly in the chat widget.


Auto-Train on Entry Save

When this feature is enabled (Settings → Training), any entry saved in the Craft Control Panel is automatically indexed in the background - no manual training needed.


Queue Manager Support

Long training operations (large sitemaps, many entries) run as background jobs via Craft's built-in Queue system.


Settings & Customization

All settings are under Chatbot → Settings, organized in tabs.

General

Setting Description
Enable Chatbot Show or hide the widget on the frontend
Logo Text Up to 3 characters, shown as a badge if no logo image is set
Logo Image Square image (min 80×80 px) used as the chat avatar
Primary Color Color for buttons and user message bubbles
Logo Background Color Background color behind the logo in the chat header
Default Theme Start in Light or Dark mode
Input Placeholder Placeholder text inside the message input field (default: Your message...)
Send Button Text Label on the send button (default: Send)

Icons

Configure the icon for each widget element. Enter the full CSS class string for any icon library — the value is applied directly as the class attribute on an <i> element. A live Font Awesome preview is shown as you type (only FA icons render in the CP preview; on the frontend, whichever library your site loads is used).

Setting Default Example alternatives
Chat Button Icon fas fa-comments far fa-comment, bi bi-chat-dots
Close Button Icon fas fa-times fas fa-xmark, bi bi-x-lg
New Chat / Reset Icon fas fa-sync-alt fas fa-rotate, bi bi-arrow-counterclockwise
Theme Toggle – Light Mode fas fa-moon far fa-moon, bi bi-moon
Theme Toggle – Dark Mode fas fa-sun far fa-sun, bi bi-sun
Thumb Up Icon fas fa-thumbs-up far fa-thumbs-up, bi bi-hand-thumbs-up
Thumb Down Icon fas fa-thumbs-down far fa-thumbs-down, bi bi-hand-thumbs-down

Company

Setting Description
Company Name Displayed in the chat header
Website URL The main URL of your website
About the Company / Website Short description of what your company does, its products/services, and target audience

Company name, website URL, and description are automatically prepended as a context block to the system prompt so the AI understands who it is representing.

AI Configuration

Setting Description
OpenAI API Key Required for all AI functions
Chat Model gpt-4o-mini (recommended), gpt-4o, or gpt-3.5-turbo
Embedding Model text-embedding-3-small (recommended), -large, or ada-002
Initial Message The bot's first greeting when the chat opens
System Prompt Full instructions / persona for the AI - define tone, language, scope, restrictions. Pre-filled with a sensible default on first use - edit and save it here in the backend.
Max Context Chunks How many matching text chunks are passed as context (1–20, default 5)
Min Similarity Score Minimum relevance threshold for context retrieval (0.00–1.00, default 0.65)

Note: Switching the embedding model requires full retraining of all content.

Default System Prompt

On a fresh install, the System Prompt field is pre-filled with the contents of default-prompt.md (included in the plugin). This gives users a working starting point without having to write a prompt from scratch. Once saved in the backend, the stored value is used exclusively - the file is no longer consulted.

Training

Suggestions

Logging


Chat Widget

The chat widget appears as a floating button on your website (bottom right by default). Visitors click it to open the chat window.

Widget features:

The widget's colors, logo, greeting, and default theme are all controlled from the Settings page in the Control Panel.


All versions of craft-chatagent with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
craftcms/cms Version ^5.5.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 eventiva/craft-chatagent contains the following files

Loading the files please wait ...