Jump to content

Recommended Posts

Posted

Now available in the Modules directory at https://processwire.com/modules/chat-ai/ and on gitHub at https://github.com/clipmagic/ChatAI  

chatai-readme.thumb.jpg.3295a87554fb855c9b53ce66c40bb789.jpg

What is it?

ChatAI is a native ProcessWire AI chatbot module designed to answer questions about your site content, with a focus on:

  • ProcessWire-first workflows
  • Site-aware answers using RAG (Retrieval Augmented Generation)
  • Respect for ProcessWire access control rule
  • Admin visibility into usage and performance
  • Keeping content ownership within ProcessWire

Features include

  • AI chat widget for frontend use
  • RAG indexing of ProcessWire content
  • Multi-role message support (system / assistant / user)
  • Admin dashboard with metrics and observations
  • Configurable prompts and behaviour
  • Integration with AgentTools for model selection
  • Role-aware retrieval (users only see content they can access)
  • Frontend page restrictions
  • Dictionary / weighting support for retrieval tuning


Quick Start

  1. Ensure prereqs are installed, ie: PHP>=8.0, ProcessWire>=3.0.255, AgentTools>=0.1.1, TextformatterEntities, TextformatterNewlineBR
  2. Configure your chat LLM in AgentTools
  3. Configure your textembedder LLM in AgentTools
  4. Configure ChatAI module config with both the above
  5. Go to Setup->ChatAI and index your site pages (turn off Dry Run when you're ready).
  6. Add the CSS, Script and Widget to your template(s).

After that, tweak to your heart's content, including adding languages, widget theming and prompts.

Current status: Alpha

Test thoroughly before using on live sites. Feedback welcome.

 

  • Like 11
  • Thanks 4
  • 2 weeks later...
Posted

@psy This is awesome. Question: Seeing that it can be used on the front-end, are we able to control what content the chat has access to? For instance, depending on the logged-in user, I may only want the chatbot to access certain pages (and sub pages) in a given site.

  • Like 2
Posted

@psy One thing I’d love to see with modules that are AI oriented, is the ability to restrict how much usage a given user has, so I can cap their use. It may not be applicable to this module, but just thinking out loud.

Posted
3 hours ago, HMCB said:

depending on the logged-in user, I may only want the chatbot to access certain pages (and sub pages) in a given site.

@HMCB ChatAI will only suggest pages the user can access by role. Additional limits can be by template and/or a checkbox on a page template.

  • Like 2
Posted
4 hours ago, HMCB said:

the ability to restrict how much usage a given user has, so I can cap their use

@HMCB Not sure how you'd implement this? You can cap the number of messages sent per conversation. The default is 20. The user will be warned when they have one question left. After that question is answered, the chat widget removes the input form. The user can continue in another chat by resetting the session.

  • Like 1
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...