Documentation
EchoAI is a premium AI chat assistant that integrates seamlessly with the Sngine social network. It transforms any Sngine website into an AI‑powered community where users can chat with an intelligent assistant, generate images, save memories, and more – all powered by a flexible token‑based credit system.
Plug & Play
No Sngine core modifications. Installs as a standalone module and uses Sngine's existing user system.
Monetization Ready
Built‑in token system with flexible pricing models – charge per message, per character, or per image.
Multi‑Language
Supports multiple languages out of the box – English, Greek, German, and more can be added.
Secure & Auditable
Full admin audit logs, user blocking, content filtering, and rate limiting included.
EchoAI can be installed in under 5 minutes. Follow the Installation guide below.
System Requirements
Before installing EchoAI, ensure your server meets the following requirements.
Server Requirements
| Component | Minimum | Recommended |
|---|---|---|
| Operating System | Linux (Ubuntu 20.04+, CentOS 7+) | Linux (Ubuntu 22.04 LTS) |
| Web Server | Apache 2.4+ or Nginx 1.18+ | Nginx + Apache (reverse proxy) |
| PHP Version | 7.4 | 8.1 or 8.2 |
| PHP Memory Limit | 256M | 512M |
| MySQL / MariaDB | MySQL 5.7 / MariaDB 10.3 | MySQL 8.0 / MariaDB 10.6+ |
| Disk Space | 500 MB (base) | 5 GB+ (for images & logs) |
| RAM | 1 GB | 2 – 4 GB |
| CPU | 1 Core | 2+ Cores |
Required PHP Extensions
| Extension | Purpose |
|---|---|
curl | Making API calls to DeepSeek / OpenAI |
json | Parsing API responses |
mysqli | Database connection |
mbstring | Multi‑byte string handling (UTF‑8, emojis) |
zip | Update manager (ZIP extraction) |
gd | Image processing |
openssl | Secure API connections |
fileinfo | File upload validation |
API Keys Required
You need at least one of these to enable AI functionality:
- DeepSeek – Text generation (chat, reasoning) – Get key
- OpenAI – Text generation (alternative) – Get key
- OpenAI – Image generation (DALL‑E) – optional
Sngine Requirements
- Sngine 3.0+ installed and accessible
- Sngine packages table must have
thinking_mode_allowedandmemory_limitcolumns (the installer adds them automatically)
EchoAI requires HTTPS for secure API communication. Use Let's Encrypt (free) or a commercial certificate.
Installation Guide
Follow these steps to get EchoAI up and running on your Sngine site.
Step 1 – Upload the Files
Upload the EchoAI.zip folder to the root of your Sngine directory (e.g., /public_html/). Extract the archive so you have a folder like /echoai/ or /covenai/.
Step 2 – Run the Installer
Navigate to https://yourdomain.com/echoai/installation.php in your browser.
You will see the installation wizard:
- Step 1: Enter your database credentials (same as Sngine). Click "Test Database Connection" to verify.
- Enter your Sngine URL, AI name (e.g., "EchoAI"), and the theme path (e.g.,
content/themes/default). - Step 2: Upload the
echoai.sqlfile (included in the purchase package). - Step 3: Review the installation summary and click "Install EchoAI".
The installer is secure and only runs once. After installation, a
installed.lock file is created to prevent re‑installation.
Step 3 – Post‑Installation
- Set up the avatar: Copy
/echoai/avatar.jpgto/content/themes/default/images/avatar.jpg(or your active theme's images folder). - Configure API keys: Go to the admin panel → API Keys and add your DeepSeek / OpenAI keys.
- Set up cron: Add the daily token reset cron job (see the Cron Jobs section).
If you face issues with default icons and the AI cannot show them, update the avatar path in
/echoai/index.php around line 251 to point to your active theme's images folder. This ensures the AI avatar displays correctly with your custom theme (e.g., Elengine, Xngine).
🔄 Re‑Installation
EchoAI gives admins the ability to wipe everything (including the database) and start fresh whenever needed.
- Simply navigate again to
https://yourdomain.com/echoai/installation.php - Click the 🗑️ Reset & Begin Fresh button
- Follow the installation wizard from the beginning
For security reasons, we strongly recommend renaming
installation.php to something less predictable (e.g., inst.php) after your initial setup. This prevents unauthorised access to the reset functionality.
AI Chat
The core of EchoAI – a powerful, real‑time conversational AI experience.
Key Features
- Real‑time streaming – responses appear character by character (DeepSeek).
- Thinking Mode – enables DeepSeek's reasoning engine, showing live reasoning steps with a timer.
- Multi‑language responses – auto‑detects the user's language and replies accordingly.
- Code block minimap – VS‑Code‑style minimap for long code snippets.
- Image generation – integrated with OpenAI DALL‑E or DeepSeek (text description).
- File uploads – users can upload images, PDFs, and documents for AI analysis.
Thinking Mode
When Thinking Mode is enabled (per package permission), the AI shows its reasoning process before delivering the final answer. This is perfect for complex queries where transparency builds trust.
Admins can set the additional token cost per request in Settings → Costs & Tokens.
Token & Pricing System
EchoAI includes a flexible, monetizable token system that gives you full control over pricing.
Pricing Models
| Model | Description | Best For |
|---|---|---|
| Fixed | Fixed cost per message (e.g., 1 token per message) | Simple, predictable pricing |
| Character | Cost per character in the AI's response | Long‑form content |
| Word | Cost per word in the AI's response | Detailed responses |
| Paragraph | Cost per paragraph | Structured answers |
| Line | Cost per line (approx. 60 characters) | Code or poetry |
| Hybrid | Base cost + per‑unit cost (character/word/etc.) | Flexible, balanced pricing |
Package Management
Admins can create and manage token packages from the admin panel → Packages. Each package includes:
- Tokens – the initial token balance
- Daily / Weekly / Monthly Limits – usage caps per period
- Reset Period – daily, weekly, or monthly token reset
- Thinking Mode – enable/disable for this package
- Memory Limit – max memory entries per user
A daily cron job automatically resets user tokens and usage counters based on their package settings.
Memory System
EchoAI remembers important facts about users, creating a personalised experience across conversations.
Features
- Per‑conversation memory – AI remembers facts within a specific chat.
- Global memory – if enabled, the AI remembers across all conversations.
- Memory limits – per‑user, per‑entry, and per‑conversation limits.
- Package‑based memory limit – premium packages can have more memory entries.
- Import / Export – admins can export memories as JSON.
Admin Controls
- Clear all memories
- Clear memories for a specific user
- View memory usage statistics
Personality System
Allow users to customise their AI experience – available to selected packages.
What Users Can Customise
- AI Name – give the AI a custom name
- Color Theme – choose from 9 themes, including animated colours
- Background URL – set a custom background image
- Disable Filters – bypass the blocklist (if allowed by admin)
- Custom JSON Responses – trigger‑based custom replies
Go to Settings → Personality to enable the system and select which packages have access.
Image Generation
Users can generate images directly from the chat interface using natural language prompts.
- OpenAI DALL‑E – full image generation with local caching.
- DeepSeek – generates a detailed text description of the requested image (useful for budget‑friendly setups).
- Local Storage – images are saved in
/assets/images/YYYY-MM/and served from your server. - Duplicate Caching – identical prompts return the cached image, saving tokens.
Admins can set the cost per image in Settings → Costs & Tokens.
Folder Settings New
Organise your conversations like never before. EchoAI now lets users create custom folders to group chats, assign colours and emojis, and save conversations for quick access.
Create Folders
Easily create new folders from the sidebar. Give them a name, pick a colour, and choose a custom emoji to represent the folder.
Colour & Emoji
Personalise each folder with a unique colour and emoji – making it instantly recognisable at a glance.
Save Conversations
Drag conversations into folders or use the "Move to Folder" option. Keep your workspace tidy and never lose important chats.
Edit & Delete
Rename, change colour, update emoji, or delete folders at any time – your conversations stay organised.
How It Works
- Click the "+" button in the sidebar to create a new folder.
- Enter a folder name, select a colour from the palette, and choose an emoji.
- Once created, the folder appears in your sidebar. Drag any conversation into it, or use the conversation menu to move it.
- Folders are saved per user – each user has their own set of folders.
- Admins can manage folder settings globally, including limiting the number of folders per user.
Use colour‑coding to differentiate work, personal, or project‑related chats. Emojis add a fun and visual touch.
In a future update, we'll add the ability to share folders with other users and set collaborative permissions.
AI Media Search New
Supercharge your community by enabling AI-powered search for Sngine posts directly from the EchoAI interface.
Search Sngine Posts
Users can search for public posts (not hidden, deleted, or private) using natural language – the AI will retrieve and display them.
Direct Links
Each result includes the post content, the author's name, and a direct URL to view the post on your Sngine site.
Admin Controlled
Enable or disable this feature from Admin Panel → Settings → Enable Social Post Search. It's off by default.
Smart AI Interpretation
Simply type a query like "Posts about PlayStation 5?" and the AI will interpret it and return relevant posts.
How It Works
- When enabled, a icon appears in the chat input area.
- Click the icon to activate Search Mode – the input placeholder changes to "Search public posts...".
- Type your query (e.g., "recent updates about AI") and send. The AI will search Sngine's public posts.
- The response will include a list of matching posts with:
- Post content (snippet)
- Author – who posted it
- URL – a clickable link to the original post
- Users can then click the link to view the full post on your site.
Only public posts are searchable. Hidden, deleted, or private posts are never exposed.
This feature requires the Enable Social Post Search setting to be turned on in Admin Panel → Settings → AI Configuration. It is disabled by default.
Dashboard
The home base for admins – a quick overview of your entire system.
- Total Users – registered users count
- Total Tokens – tokens in circulation
- Text Generations – total AI text requests
- Images Generated – total images created
- AI Commands – number of custom commands
- Blocked Topics – active blocklist entries
Quick action buttons give you one‑click access to Users, Packages, Commands, Blocklist, and Settings.
Users
The user management hub – view, search, and manage all registered accounts.
Actions Available
- Search & Filter – by name, email, status (active/blocked), token balance
- Token Management – add, remove, or set exact token balance
- Block / Unblock – with custom reason
- Clear Memory – remove all AI memories for a user
- Delete Chats – permanently remove all conversations
- View Stats – message count, conversation count, daily/weekly/monthly usage, language preference, memory mode
Packages
Manage your pricing and service tiers – both Sngine subscriptions and EchoAI token packages.
Sngine Packages
View and edit AI‑specific settings for each Sngine subscription package:
- Token amount
- Daily / Weekly / Monthly / Hourly limits
- Reset period
- Cost per text, image, file
- Thinking Mode toggle
- Memory limit
EchoAI Token Packages
Standalone token packages that override Sngine packages:
- Tokens, limits, reset period
- Thinking Mode toggle
- Memory limit
- Set as default package
- Bulk token management: refresh, pause, resume, delete
EchoAI includes a default Free package that you can edit or recreate at any time.
AI Management
Fine‑tune the AI's behaviour and capabilities.
Commands
Create custom slash commands (e.g., /help, /summarize) that users can type to trigger specific AI responses. Each command can have its own system prompt.
Blocklist
Add forbidden words or phrases. If a user's message contains a blocked word, the request is rejected with a custom response.
API Keys
Manage your DeepSeek and OpenAI API keys. Test each key with a single click to verify it's working.
Content
Tools for communicating with your users and collecting feedback.
Announcements
Send global news, maintenance alerts, or feature updates to all users. Announcements appear as in‑app notifications.
Reports & Feedback
View user‑submitted reports and feedback. Mark them as resolved, reply, or take action (e.g., ban a user).
System
Core configuration and technical administration.
Settings
The central configuration panel. Adjust everything from the AI name and avatar to pricing models, memory limits, and feature toggles.
- General – AI brand name, avatar icon, system prompt, default language
- AI Configuration – default API providers, model selection, temperature
- Costs & Tokens – pricing model, token costs, thinking mode cost
- Memory – context window size, max memory entries
- Language – allow users to change language
- Personality – enable personality system, select allowed packages
- Feedback – disable like/dislike, copy, or report buttons
- Social Post Search – enable/disable AI search for Sngine posts
Live Stats
Real‑time monitoring: online users, today's activity, token usage trends, device breakdown, top users, and feedback statistics.
Logs
Historical record of admin actions – every settings change, user block, token adjustment, and more, logged with IP and user agent for security auditing.
Cron Jobs
EchoAI relies on a daily cron job to reset user tokens and usage counters. This is essential for the token system to work correctly.
The Cron Command
Add this to your server's crontab (e.g., via HestiaCP, cPanel, or crontab -e):
0 0 * * * php /home/user/web/yourdomain.com/public_html/echoai/cron/reset_tokens.php >> /home/user/logs/echoai_reset.log 2>&1
What It Does
- Checks every user's
last_resettimestamp against their package'sreset_period(daily, weekly, or monthly). - If the period has passed, it resets the token balance to the package's token amount and sets usage counters to 0.
- Updates
last_resetto the current time.
The cron job must run daily for the token system to function correctly. Without it, users will not receive their periodic token allowances.
Testing the Cron
You can run the script manually to test it:
php /home/user/web/yourdomain.com/public_html/echoai/cron/reset_tokens.php
If you see output like Completed. X users had their tokens reset., it's working.
Updating EchoAI
Keeping EchoAI up‑to‑date ensures you have the latest features, bug fixes, and security patches. This guide covers the manual update process – an automatic updater is in development.
Always create a full backup of your Sngine database and EchoAI database before performing any update. This protects your data in case something goes wrong.
📦 Manual Update Process (Recommended)
This is the only method currently available – it gives you full control and is the safest way to update.
- Download the latest version – Obtain the new EchoAI ZIP package (e.g.,
EchoAI_v1.1.zip) from the marketplace or your purchase email. - Extract the Update folder – Inside the ZIP, locate the
Updatefolder. This folder contains all files that have changed since the previous version. - Check for SQL updates – Inside the
Updatefolder, look for a.sqlfile (e.g.,Gallery.sql). Note: Not every update includes a SQL file – some updates only modify PHP files. If a SQL file is present, proceed to step 4; otherwise, skip to step 5. - Apply the SQL changes – Log in to your database management tool (e.g., phpMyAdmin), select your EchoAI database, and import the
.sqlfile. This adds new tables or columns required for the new features. - Replace the updated files – Copy the contents of the
Updatefolder to your server's EchoAI installation directory (e.g.,/public_html/echoai/). Important: Do not delete or overwrite entire folders – only copy the individual files from the Update folder into their corresponding locations. For example, if the Update folder contains asettings.phpfile, replace only that file in your existingadmin/settings.phppath. Replacing entire folders can corrupt your installation or cause missing file errors. - Clear your cache – After all files are replaced, clear any server‑side caches (e.g., OpCache, Redis) and your browser cache to ensure the new code is loaded.
The manual method ensures that you only update what has changed, minimising the risk of accidentally deleting customised files or breaking integrations.
Note: An automatic update feature is currently in development and will be available in future releases. For now, please use the manual process described above.
Before any update, export both databases using phpMyAdmin or your preferred tool. This allows you to restore if something unexpected happens.
🔄 Post‑Update Steps
- Verify that the new features are working as expected.
- Test the AI chat, token system, and admin panel.
- If you encounter issues, check the FAQ or contact support.
Changelog
All notable changes to EchoAI are documented here.
Update 1.1 – July 5, 2025
- Added New Ability for changes to be saved on Database and not hardcoded
- Added Ability for users to Pin and Unpin Conversations
- Added Ability for admins to set custom filename on Download (Uploads Prefix)
- Added Ability for users to view all Image Generators (Gallery System Added)
- Added Ability for admins to swap between Light and Dark Mode on AdminCP
- Added Ability for users to create Conversation Folders
- Added Ability for users to search posts from Sngine from the AI interface (e.g., "Posts about PlayStation 5?")
- Added Ability for admins to add Custom Boxes and show them to users under Settings > Support & About
- Added Brazil Language
- Revamped User Sidebar on Mobile and Desktop (Menu)
- Fixed Issue deleting Custom Buttons from AdminCP
- Fixed AI Name Position on Mobiles
- Fixed AI Texts on Send Button area on Mobiles was cutting off
- Fixed AdminCP button on EchoAI interface
- Fixed AI Response Bubble Alignment
- Fixed Avatar Alignment issues
- Fixed Bubble Styling issues
- Fixed Action Buttons issues
- Updated Documentations
- Updated Greek Languages
- Updated German Language
- Removed Update Tab Removed
Update 1.0.1 – June 23, 2026
- Fixed an issue where editing packages could trigger a "User Not Found" error.
- Fixed several buttons that were not displaying properly on mobile devices.
- Fixed the AdminCP desktop navigation menu being cut off.
- Fixed broken buttons and layout boxes in the mobile user menu.
Update 1.0 – June 22, 2026
- Added Complete AI chat interface.
- Added OpenAI and DeepSeek integration.
- Added AI image generation.
- Added Personality system.
- Added Token system.
- Added Memory system.
- Added Commands system.
- Added User settings center.
- Added Powerful AdminCP.
- Added Analytics dashboard.
- Added Multi-language support.
Frequently Asked Questions
Quick answers to the most common questions about EchoAI.
No. EchoAI is designed as a standalone module that integrates with Sngine's existing user system without modifying any core files. It uses Sngine's authentication and database connections while keeping everything else self-contained.
You need at least a DeepSeek or OpenAI API key for the AI to work. Both providers offer free trial credits to get started. You can sign up at:
Go to Admin Panel → Settings → General and update the AI Brand Name and AI Avatar Icon fields. You can also upload a custom avatar image directly in the settings panel.
Yes – the token system is designed for monetisation. You can integrate payment gateways via Sngine's native package system or use the EchoAI token packages. Users can purchase packages and receive tokens automatically.
Yes. EchoAI includes a default Free package that you can customise or recreate at any time from the Packages section. You can control how many free tokens users get and how often they reset.
Enable it globally in Settings → Costs & Tokens, then enable it for specific packages in Packages. Users with a package that has Thinking Mode enabled will see the option in their chat interface.
Users will not receive their token resets. Check the cron log file for errors and ensure the command path is correct. You can also run the script manually to test it – see the Cron Jobs section for details.
Navigate to https://yourdomain.com/echoai/installation.php and click the 🗑️ Reset & Begin Fresh button. This will wipe all EchoAI data (including database tables) and allow you to start over from scratch. Important: This is irreversible – make a backup first!
Yes – EchoAI works with any Sngine-compatible theme. If you face issues with default icons and the AI cannot show them, update the avatar path in /echoai/index.php around line 251 to point to your active theme's images folder. This ensures the AI avatar displays correctly.
Contact our support team at zinkly.org/contacts – we're happy to help. Please include your purchase ID and a detailed description of your issue for faster assistance.
Contact our support team at zinkly.org/contacts – we're happy to help.