Introduction to Graygle.ai
Graygle.ai is a powerful platform for creating and embedding customizable chat bubbles on your website. Designed for businesses, developers, and marketers, it enables seamless customer engagement through AI-powered chat interfaces. This documentation guides you through every step of using Graygle.ai, from setting up your account to deploying and testing chat bubbles.
Key Features
- Create multiple chat apps with unique configurations.
- Customize chat bubble appearance (color, position, shape).
- Embed chat bubbles using a simple script.
- Test and debug configurations with a dedicated testing tool.
- Access API for advanced integrations.
Who This Guide Is For
This manual is for Graygle.ai users, including website owners, developers, and support teams, who want to implement and manage chat bubbles effectively.
Getting Started
1. Register an Account
To use Graygle.ai, you need an account. Follow these steps:
- Visit graygle.ai/register.php.
- Enter your full name, phone number, email, and password.
- Click “Register” to submit the form.
- Check your email for a verification link. Click it to activate your account.
- Expected: You’ll be redirected to the login page upon successful verification.
Note: Ensure your email is valid, as verification is required. If you don’t receive the email, check your spam folder or contact support.
POST /graygle/register.php
Content-Type: application/x-www-form-urlencoded
fullname=John+Doe&phone=1234567890&email=john@example.com&password=secure123
Example: Registration form submission.
2. Log In
Access your dashboard:
- Go to graygle.ai/index.php.
- Enter your email and password.
- Click “Log In”.
- Expected: You’ll land on the dashboard (`my_apps.php`), listing your apps.
Error Handling: If login fails, check for “Invalid email or password” messages. Use the “Forgot Password” link to reset your password.
[Screenshot: Login page showing email/password fields and “Forgot Password” link.]
3. Password Reset
If you forget your password:
- Click “Forgot Password” on the login page.
- Enter your email and submit.
- Check your email for a reset link.
- Click the link, enter a new password, and confirm.
- Expected: You can now log in with the new password.
Managing Your Account
1. Profile Settings
Update your account details:
- From the dashboard, click your profile icon (top-right).
- Select “Profile Settings”.
- Update fields like name, phone, or email.
- Click “Save Changes”.
- Expected: Confirmation message: “Profile updated successfully.”
2. Security
Enhance account security:
- Change Password: In “Security Settings,” enter current and new passwords.
- Two-Factor Authentication (2FA): Enable 2FA for added protection (if available).
3. Subscription Plans
Graygle.ai offers free and premium plans:
- Free Plan: Limited apps and API calls.
- Premium Plan: Higher limits, priority support. Visit x.ai/grok for pricing.
Creating and Managing Apps
1. Create an App
Apps represent individual chat bubble instances:
- From `my_apps.php`, click “Create New App”.
- Enter:
- App Name: Unique name (e.g., “Customer Support Bot”).
- Assistant Name: Bot’s display name.
- Primary Purpose: E.g., “Customer Support” or “Sales”.
- Description: Brief overview.
- Click “Create App”.
- Expected: App appears in your dashboard with a unique `app_id`.
INSERT INTO apps (app_name, assistant_name, primary_purpose, description, user_id)
VALUES ('Support Bot', 'Support Assistant', 'Customer Support', 'Handles customer queries', 1);
Example: SQL for app creation.
2. Edit an App
Modify app details:
- Click “Edit” next to an app in `my_apps.php`.
- Update fields and save.
- Expected: Changes reflect immediately.
3. Delete an App
Remove unused apps:
- Click “Delete” next to an app.
- Confirm deletion.
- Expected: App is removed; associated chat bubbles stop functioning.
Configuring Chat Bubbles
1. Customize Appearance
Tailor your chat bubble’s look and feel:
- In `my_apps.php`, click “Configure” for an app.
- Set:
- Chat Color: Hex code (e.g., `#2196f3`).
- Position: Bottom-right, bottom-left, etc.
- Shape: Circle, square, or custom.
- Auto-Open: Enable to open modal on page load.
- Click “Save Configuration”.
- Expected: Changes apply to the bubble when embedded.
INSERT INTO chat_configurations (app_id, chat_color, position, shape)
VALUES (1, '#2196f3', 'bottom-right', 'circle');
2. Fallback Configuration
Define a default config if API fails:
- Enable fallback in app settings.
- Set default color, position, and shape.
- Expected: Bubble uses fallback if `get-chat-config.php` fails.
Embedding Chat Bubbles
Add a chat bubble to your website:
- In `my_apps.php`, copy the embed script for an app.
- Paste it into your website’s HTML, typically before `