Learn how to configure your AI chatbot with custom styling, knowledge base documents, web scraping, and embed it on your website
The AI Chatbot is one of the most powerful features of ai4shops.com. It can answer customer questions 24/7 using your own knowledge base, product information, and website content. This guide covers everything from basic setup to advanced configuration.
Prerequisites: Make sure you have created a project before starting this guide.
Your AI chatbot can:
The AI Model settings control how your chatbot thinks and responds.
From your project dashboard, click "Chatbot" in the sidebar, then select "AI Model" or "Settings".
Screenshot: AI Model settings page
File: /_static/guides/ai-chatbot/ai-model-settings-en.png
Choose the AI model that powers your chatbot:
| Model | Best For | Cost |
|---|---|---|
| GPT-4.1 | Complex queries, nuanced responses | Higher |
| GPT-4.1 Mini | Balanced performance and cost | Medium |
Tip: Start with GPT-4.1 Mini for most use cases. Upgrade to GPT-4.1 if you need more sophisticated responses.
Max Tokens limits how long responses can be:
Recommended: Start with 1500 tokens and adjust based on your needs.
The System Prompt tells the AI how to behave. This is crucial for getting good responses!
Example system prompt:
You are a helpful customer service assistant for [Your Company Name].
You help customers with questions about our products and services.
Key information:
- Our business hours are 9 AM - 5 PM EST
- Shipping takes 3-5 business days
- Returns are accepted within 30 days
Always be friendly, professional, and helpful. If you don't know something,
suggest the customer contact support@yourcompany.com.
Important: A well-written system prompt dramatically improves chatbot quality. Be specific about your business, products, and how you want the AI to respond.
Click "Save" to apply your AI model configuration.
Customize your chatbot widget to match your website's design.
Navigate to Chatbot → Appearance or "Styling" in your project dashboard.
Screenshot: Appearance settings with color pickers
File: /_static/guides/ai-chatbot/appearance-settings-en.png
| Setting | Description |
|---|---|
| Background Color | Main widget background |
| Border Color | Widget border/outline |
| User Message Color | Background of user's messages |
| Assistant Message Color | Background of AI responses |
| Text Color | Primary text color |
| Accent Color | Buttons and highlights |
Add your company logo for brand recognition:
Tip: Use a square logo with transparent background for best results.
For a modern, translucent look, enable the Glass-Morphism Effect. This adds a subtle blur and transparency to the widget.
Use the live preview panel to see how your chatbot will look before saving.
Screenshot: Live preview panel
File: /_static/guides/ai-chatbot/chatbot-preview-en.png
RAG (Retrieval-Augmented Generation) allows your chatbot to answer questions using your own documents. Upload PDFs, Word documents, spreadsheets, and more!
Video Placeholder: RAG Document Upload Walkthrough
Duration: 1-2 minutes | How to upload and manage knowledge base documents
| Format | Extension | Best For |
|---|---|---|
| Product catalogs, manuals, policies | ||
| Word | .docx | FAQs, documentation |
| Excel | .xlsx | Product lists, pricing tables |
| Markdown | .md | Technical documentation |
| Text | .txt | Simple content, notes |
Go to Chatbot → Documents or "Knowledge Base" in your dashboard.
Screenshot: Documents upload interface
File: /_static/guides/ai-chatbot/documents-upload-en.png
Documents are automatically:
Processing time depends on file size (typically 10-60 seconds).
Screenshot: Documents table with processing status
File: /_static/guides/ai-chatbot/documents-table-en.png
From the documents table you can:
Once documents are processed, your chatbot can immediately use them to answer questions!
Don't want to upload files manually? Use web scraping to automatically pull content from your website!
Video Placeholder: Web Scraping Setup
Duration: 2-3 minutes | Single URL scraping, sitemap processing, and auto-scraping
Scrape content from individual pages:
Go to Chatbot → Web Scraping or "Scrape Website".
Screenshot: Single URL scraping interface
File: /_static/guides/ai-chatbot/single-url-scraping-en.png
Paste the full URL of the page you want to scrape:
https://yourwebsite.com/about-us
Click "Scrape" or "Extract Content". The system will:
Preview the extracted content to ensure it looks correct before adding it to your knowledge base.
Scrape multiple pages at once using your sitemap:
Paste your sitemap URL:
https://yourwebsite.com/sitemap.xml
Screenshot: Sitemap analyzer
File: /_static/guides/ai-chatbot/sitemap-analyzer-en.png
Click "Analyze" to see all URLs in your sitemap. You'll see:
To avoid processing too many pages:
/products/ pages)Click "Start Processing" to begin scraping all selected URLs. Progress is shown in real-time.
Note: Large sitemaps may take several minutes to process. You can safely navigate away - processing continues in the background.
Keep your knowledge base updated automatically:
Navigate to Web Scraping → Schedule or "Auto-Scrape".
Screenshot: Schedule settings
File: /_static/guides/ai-chatbot/auto-scrape-schedule-en.png
Choose how often to re-scrape your sitemap:
| Frequency | Best For |
|---|---|
| Daily | Frequently updated content (news, blog) |
| Weekly | Regular updates (products, prices) |
| Monthly | Stable content (about pages, policies) |
Provide your sitemap URL for automatic scraping.
Toggle "Enable Auto-Scraping" to activate the schedule.
Protect your chatbot from unauthorized use by configuring allowed origins.
Screenshot: Allowed origins configuration
File: /_static/guides/ai-chatbot/allowed-origins-en.png
Allowed origins specify which websites can embed your chatbot. This prevents others from using your chatbot on their sites.
https://yourwebsite.com
https://www.yourwebsite.com
Important: Include both www and non-www versions if you use both. Also add staging/development domains if needed.
Now for the exciting part - adding the chatbot to your website!
Video Placeholder: Widget Embedding Demo
Duration: 1-2 minutes | How to embed the chatbot on your website
The easiest way to add the chatbot:
Navigate to Chatbot → Embed or "Integration".
Screenshot: Embed code page with both options
File: /_static/guides/ai-chatbot/embed-code-en.png
Your embed code looks like this:
<script
src="https://ai4shops.com/embed/chatbot.js"
data-project-id="your-project-id"
data-position="bottom-right"
></script>Paste the script tag just before the closing </body> tag in your HTML:
<!DOCTYPE html>
<html>
<head>
<title>Your Website</title>
</head>
<body>
<!-- Your website content -->
<!-- ai4shops.com Chatbot -->
<script
src="https://ai4shops.com/embed/chatbot.js"
data-project-id="your-project-id"
data-position="bottom-right"
></script>
</body>
</html>WordPress: Use a plugin like "Insert Headers and Footers" or add to your theme's footer.php
Shopify: Go to Online Store → Themes → Edit Code → theme.liquid, paste before </body>
Wix/Squarespace: Use the "Custom Code" or "Code Injection" feature in settings
For more control over placement, use an iframe:
<iframe
src="https://ai4shops.com/embed/chatbot/your-project-id"
width="400"
height="600"
frameborder="0"
></iframe>When to use iframe:
Before going live, test your chatbot thoroughly!
In your chatbot settings, look for "Preview" or "Test" button.
Screenshot: Live preview panel in dashboard
File: /_static/guides/ai-chatbot/live-preview-en.png
Try various questions:
Check that responses are:
After embedding:
Your AI chatbot is now ready to help your customers 24/7!
</body>