قاعدة المعرفة
Knowledge Base
Purpose
The Knowledge Base is your AI's memory. Everything you add here — FAQs, product information, policies, transcribed voice notes, documents, and crawled websites — becomes available to your AI Agents when answering customer questions across all channels.
Who Can Access
| Requirement | Details |
|---|---|
| Permission | manage_ai_writer |
| Plan | Pro or higher (with Knowledge Base limit) |
| Role | Admin or Agent with permission |
Prerequisites
- Pro plan or higher with Knowledge Base enabled
manage_ai_writerpermission- For AI to use KB: at least one AI Agent configured
Content Types Overview
SkyLight Chat supports five types of knowledge base entries:
| Type | Icon | Description | Processing |
|---|---|---|---|
| Text | 📝 | FAQs, policies, instructions | Instant |
| Document | 📄 | PDF, Word, Excel, CSV, TXT | Instant (AI extracts) |
| Voice | 🎤 | Audio recordings | Instant (transcribed) |
| Product Catalog | 📦 | Products via JSON or CSV | Instant |
| Website | 🌐 | Crawled web pages | Async (background job) |
Full Walkthrough
Creating a Text Entry
Best for: FAQs, policies, instructions, structured information
- Click + Add Entry
- Select Text
- Fill in the fields:
- Title — Descriptive name (e.g., "Return Policy")
- Content — The actual knowledge text
- Description — Brief summary (optional)
- Business Description — How AI should use this (optional)
- Click Create
- Entry is immediately available to AI
Example content:
Return Policy
We offer a full refund for any item returned within 30 days of purchase.
Conditions:
- Item must be unused and in original packaging
- Receipt or order confirmation required
- Refund processed to original payment method
- Processing time: 5-7 business days
For exchanges, contact customer support with your order number.
Uploading Documents
Best for: Manuals, specifications, reports, spreadsheets
- Click + Add Entry
- Select Document
- Fill in:
- Title — Descriptive name
- Files — Upload one or more files
- Supported formats:
- PDF (.pdf)
- Word (.doc, .docx)
- Excel (.xlsx, .xls)
- CSV (.csv)
- Text (.txt)
- Click Upload
- AI automatically extracts and structures the content
Adding Voice Notes
Best for: Recorded explanations, verbal instructions, audio content
- Click + Add Entry
- Select Voice
- Fill in:
- Title — Descriptive name
- Audio File — Upload recording
- Language — Auto-detect or specify (ar, en, etc.)
- Supported formats:
- MP3, WAV, M4A, OGG, WEBM
- Maximum 10 MB
- Click Upload
- Audio is transcribed automatically
- Transcription becomes searchable knowledge
Creating a Product Catalog
Best for: E-commerce products, service offerings, inventory
Option A: JSON Input
- Click + Add Entry
- Select Product Catalog
- Enter Title
- Add products as JSON array or individually:
[
{
"product_name": "Linen Shirt",
"product_description": "Breathable linen shirt",
"sku": "LS-001",
"price": 49.99,
"currency": "SAR",
"category": "Shirts",
"stock_quantity": 120,
"is_available": true,
"image_url": "https://cdn.example.com/shirt.jpg"
}
]
Option B: CSV Upload
- Click + Add Entry
- Select Product Catalog
- Enter Title
- Upload CSV file with columns:
product_nameorname(required)descriptionskupricecurrencycategorystockorstock_quantityimage_url
Crawling a Website
Best for: Help centers, documentation sites, FAQs pages
- Click + Add Entry
- Select Website
- Fill in:
- Title — Descriptive name
- Website URL — Starting URL
- Sitemap URL — Optional, speeds up discovery
- Configure crawl settings:
- Crawl entire site — On/Off
- Max pages — 1 to 100 (default 10)
- Max depth — 1 to 5 (default 2)
- Allowed paths — Only crawl these paths (e.g.,
/docs,/help) - Excluded paths — Skip these paths (e.g.,
/blog,/careers)
- Click Start Crawl
- Crawl runs in background — monitor progress in the list
Website Products — yourstore.com) with prices, SKUs, images, and purchase links when available. Help/about content stays on the website entry — you do not get one random KB per product. After the crawl finishes, open Knowledge Base and look for the new catalog, or call GET /api/v1/knowledge-base?type=product_catalog.Managing Entries
Editing an Entry
- Click on the entry row
- Modify fields as needed
- Click Save Changes
Changing Entry Status
Toggle between Active and Inactive:
- Click on the entry
- Find Status dropdown
- Select Active or Inactive
- Inactive entries are excluded from AI responses
Deleting an Entry
- Click the ••• menu on the entry row
- Select Delete
- Confirm deletion
Working with Chunks
Chunks are text segments the AI can use when answering questions. SkyLight Chat usually creates them automatically from your content; you can also manage them manually.
Viewing Chunks
- Click on any entry
- Select the Chunks tab
- See all chunks with their content and status
Chunk Information
| Field | Description |
|---|---|
chunk_index | Position in sequence (0-based) |
content | The actual text segment |
char_count | Character length |
has_embedding | Whether the chunk is ready for AI search |
context_header | Optional prefix shown with the chunk |
Creating a Custom Chunk
- Open an entry's Chunks tab
- Click + Add Chunk
- Enter the content (max 65,000 characters)
- Click Save
- The chunk becomes available for AI answers after processing
Editing a Chunk
- Find the chunk
- Click Edit
- Modify the content
- Click Save
- The updated text is used for AI answers after processing
Deleting a Chunk
- Find the chunk
- Click Delete
- Confirm deletion
- The chunk is removed from AI answers for that entry
Field & Control Glossary
Entry Fields
| Field | Type | Required | Description |
|---|---|---|---|
| Title | Text | Yes | Display name for the entry |
| Content | Textarea | Type-dependent | The knowledge text (text type only) |
| Description | Text | No | Brief summary shown in list |
| Business Description | Textarea | No | Instructions for how AI should use this |
| Status | Dropdown | No | Active or Inactive (default: Active) |
Document Upload Fields
| Field | Type | Required | Description |
|---|---|---|---|
| Title | Text | Yes | Display name |
| Files | File upload | Yes | One or more document files |
| Description | Text | No | Brief summary |
| Business Description | Textarea | No | AI usage context |
Voice Upload Fields
| Field | Type | Required | Description |
|---|---|---|---|
| Title | Text | Yes | Display name |
| Audio File | File upload | Yes | Audio recording |
| Language | Dropdown | No | ISO 639-1 code or auto-detect |
| Description | Text | No | Brief summary |
Product Catalog Fields
| Field | Type | Required | Description |
|---|---|---|---|
| Title | Text | Yes | Catalog name |
| Products | JSON array | * | Product objects |
| CSV File | File upload | * | CSV with product data |
*At least one of Products or CSV File required
Product Object Fields
| Field | Type | Required | Description |
|---|---|---|---|
| product_name | String | Yes | Product name |
| product_description | String | No | Product details |
| sku | String | No | Stock keeping unit |
| price | Number | No | Price value |
| currency | String | No | Currency code (default: USD) |
| category | String | No | Product category |
| stock_quantity | Integer | No | Available inventory |
| image_url | String | No | Product image URL |
| is_available | Boolean | No | Availability status |
Products returned by the Knowledge Base API also expose product_attributes and purchase_url (checkout or product page link when known — including Salla sync and website crawl catalogs).
Website Crawl Fields
| Field | Type | Required | Description |
|---|---|---|---|
| Title | Text | Yes | Entry name |
| Website URL | URL | Yes | Starting URL |
| Sitemap URL | URL | No | XML sitemap for faster discovery |
| Crawl Entire Site | Toggle | No | Crawl all discoverable pages |
| Max Pages | Number | No | 1-100 (default: 10) |
| Max Depth | Number | No | 1-5 (default: 2) |
| Allowed Paths | Text | No | Comma-separated path prefixes |
| Excluded Paths | Text | No | Comma-separated paths to skip |
Statuses & Badges
Entry Status
| Status | Badge | Meaning |
|---|---|---|
| Active | 🟢 Green | Included in AI responses |
| Inactive | ⚪ Gray | Excluded from AI responses |
Processing Status (Documents)
| Status | Meaning |
|---|---|
pending | Queued for processing |
processing | AI extracting content |
completed | Content extracted successfully |
failed | Extraction failed — check error |
Transcription Status (Voice)
| Status | Meaning |
|---|---|
pending | Queued for transcription |
processing | Transcription in progress |
completed | Transcription successful |
failed | Transcription failed |
Crawl Status (Website)
| Status | Meaning |
|---|---|
pending | Job queued |
crawling | Actively crawling pages |
completed | All pages extracted |
partial | Some pages succeeded, some failed |
failed | Crawl failed entirely |
Nested Screens
Add Entry Type Selector
┌─────────────────────────────────────────────────────────────────┐
│ Add Knowledge Base Entry [X] │
├─────────────────────────────────────────────────────────────────┤
│ │
│ What type of content would you like to add? │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ 📝 │ │ 📄 │ │ 🎤 │ │
│ │ Text │ │ Document │ │ Voice │ │
│ │ │ │ │ │ │ │
│ │ FAQs, text │ │ PDF, Word │ │ Audio file │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │
│ ┌─────────────┐ ┌─────────────┐ │
│ │ 📦 │ │ 🌐 │ │
│ │ Catalog │ │ Website │ │
│ │ │ │ │ │
│ │ Products │ │ Crawl URL │ │
│ └─────────────┘ └─────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
Crawl Progress View
┌─────────────────────────────────────────────────────────────────┐
│ Website Crawl: Help Center [X] │
├─────────────────────────────────────────────────────────────────┤
│ │
│ URL: https://help.company.sa │
│ Status: Crawling │
│ │
│ Progress: ████████████░░░░░░░░░░░░░░░░░░░░░░░░ 24/50 pages │
│ 48% complete │
│ │
│ Pages crawled: │
│ ✓ / │
│ ✓ /getting-started │
│ ✓ /faq │
│ ✓ /contact │
│ ⋯ 20 more pages │
│ → /shipping (crawling...) │
│ │
│ [Cancel Crawl] │
└─────────────────────────────────────────────────────────────────┘
Chunk Editor
┌─────────────────────────────────────────────────────────────────┐
│ Edit Chunk #3 [X] │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Content: │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ Refunds are issued to the original payment method within │ │
│ │ 5-7 business days after we receive and inspect the │ │
│ │ returned item. You will receive an email confirmation │ │
│ │ once the refund is processed. │ │
│ │ │ │
│ └─────────────────────────────────────────────────────────────┘ │
│ │
│ Character count: 234 / 65,000 │
│ │
│ Ready for AI search: ✓ Yes │
│ │
│ [Cancel] [Save Changes] │
└─────────────────────────────────────────────────────────────────┘
How It Connects
| Feature | Relationship |
|---|---|
| AI Agents | Agents use KB for response grounding |
| Inbox | AI replies are informed by KB content |
| Media Library | Product images can reference media items |
| Channels | KB powers responses across all channels |
| Bookings | AI can reference booking policies from KB |
Limits & Plan Behavior
Plan Limits
| Aspect | Test | kickoff | Sky pro | Entreprise |
|---|---|---|---|---|
| Knowledge base entries | 6 | 10 | 100 | 20 |
| Website scrape page quota | Unlimited | 5 | Unlimited | 50 |
| Media library files | Unlimited | 20 | 100 | 100 |
Platform-wide (same on every plan):
| Aspect | Limit |
|---|---|
| Document upload size | 20 MB per file |
| Voice upload size | 10 MB per file |
Website crawl max_pages (per job) | 1–100 (API default 10) |
Website crawl max_depth (per job) | 1–5 (API default 2) |
There is no separate plan quota for chunk count or document count beyond the knowledge base entry limit.
What Happens at Limit
When you reach the knowledge base entry limit:
- + Add Entry button becomes disabled
- Banner shows: "Knowledge Base limit reached"
- Existing entries can still be edited
- Delete entries to free up space, or upgrade
Troubleshooting
Document Processing Failed
Symptoms: Document shows "failed" status
Solutions:
- Check file format is supported
- Ensure file isn't corrupted
- Verify file is under 20 MB
- Try re-uploading the file
- For scanned PDFs, ensure OCR quality is good
Voice Transcription Failed
Symptoms: Voice entry shows "failed" status
Solutions:
- Check audio file isn't corrupted
- Verify file is under 10 MB
- Ensure audio has clear speech
- Try specifying the language manually
- Re-upload in a different format
Website Crawl Stuck
Symptoms: Crawl shows "crawling" but no progress
Solutions:
- Wait — some sites are slow to crawl
- Check if site requires authentication (not supported)
- Verify robots.txt allows crawling
- Try reducing max_pages or max_depth
- Check excluded_paths isn't too restrictive
AI Not Using KB Content
Symptoms: AI doesn't reference KB information
Solutions:
- Verify entry status is "Active"
- Check chunks are ready for AI search (
has_embedding: true) - Ensure KB content is relevant to the query
- Verify AI Agent is assigned and active
- Check business_description provides good context
Chunks Not Appearing
Symptoms: Entry shows 0 chunks
Solutions:
- Wait for processing to complete
- Check processing status
- Ensure content isn't empty
- Text must have substance to chunk
- Try manually adding a chunk
Best Practices
Content Organization
- Use clear, descriptive titles
- Group related information in single entries
- Add business descriptions for context
- Keep entries focused on specific topics
Writing Effective Content
- Use natural language the AI can paraphrase
- Include variations of common questions
- Be specific with numbers, dates, policies
- Update content when information changes
Catalog Management
- Include comprehensive product descriptions
- Keep prices and availability current
- Use consistent category naming
- Include image URLs when possible
Website Crawling
- Start with small max_pages to test
- Use allowed_paths to focus on relevant content
- Exclude blog, careers, and dynamic pages
- Re-crawl periodically to stay current
- After crawl, check the auto-created Website Products catalog for structured items and purchase links
Related Articles
صندوق الوارد الموحّد
Complete guide to the SkyLight Chat inbox — filters, composer, assignments, tags, notes, media handling, forwarding, and conversation management.
وكلاء الذكاء الاصطناعي
Create and configure AI agent personas with prompts, guidelines, timing controls, sub-agent instructions, and response formatting.
