-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.txt
More file actions
executable file
·69 lines (55 loc) · 1.97 KB
/
README.txt
File metadata and controls
executable file
·69 lines (55 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
CONTENTS OF THIS FILE
---------------------
* Introduction
* Requirements
* Recommended modules
* Installation
* Configuration
* Maintainers
INTRODUCTION
------------
The AI Chatbot module provides a frontend chatbot block
and acts as an AI agent for your website. It interacts with site
visitors using your custom content/data. The module is
supports Open AI, Google Gemini and Anthropic Claude.
The AI prompt, context can be customized
so that the AI agent just talks about your website/company and nothing
else. Module supports configurable prompt, welcome message,
agent name, AI model name and more.
REQUIREMENTS
------------
* AI Service (Open AI / Gemini / Claude) API Key.
INSTALLATION
------------
* Install as you would normally install a contributed Drupal module.
FEATURES
--------
- Configurable AI prompt and welcome message
- Configurable agent name
- AI works on your custom data context
- Mobile-friendly frontend chat UI (fixed bottom-right)
- Open/Close chat window with smooth scroll
- Session persistence and reset functionality
- Caching of responses for improved performance
CONFIGURATION
-------------
* Configure the AI API Settings (/admin/config/aichatbot/api)
* Configure the AI Prompt, Custom data (/admin/config/services/aichatbot-prompt)
FRONTEND BLOCK
--------------
The module provides a block titled "AI Chatbot".
- Go to: /admin/structure/block
- Place the block in a region (e.g., Header)
- The block appears fixed in the bottom-right of the screen
TECHNICAL NOTES
---------------
- Uses session to store chat history with 30-minute timeout
- Cache stores AI response for 30 minutes using hashed question+prompt
- Controller uses custom data to build context before calling AI service
PERMISSIONS
-----------
No special permissions required. Default access uses 'access content'.
MAINTAINERS
-----------
Current maintainer:
* Gaurav Kumar - https://www.drupal.org/u/gauravkumar