SkyLight Chat
دليل المنتج

وكلاء الذكاء الاصطناعي

Create and configure AI agent personas with prompts, guidelines, timing controls, sub-agent instructions, and response formatting.

AI Agents

Purpose

AI Agents are the personas behind SkyLight Chat's automated responses. Each agent has its own personality, instructions, and behavior settings. You can create multiple agents for different purposes — sales, support, booking — and assign them to contacts or channels.


Who Can Access

RequirementDetails
Permissionmanage_ai_writer
PlanPro or higher with AI features
RoleAdmin or Agent with permission

Prerequisites

  • Pro plan or higher with AI features
  • manage_ai_writer permission
  • Knowledge Base with content (recommended for best results)

Full Walkthrough

Creating an AI Agent

  1. Click + Create Agent
  2. Fill in the Basic Information:
    • Name — Internal identifier (e.g., "Sales Assistant")
    • System Prompt — Core instructions (see below)
  3. Configure Personality & Style:
    • Personality Prompt — Tone and character description
    • Instruction Prompt — Task-specific guidelines
  4. Set Response Guidelines:
    • Language preference
    • Tone (formal/casual)
    • Maximum length
  5. Configure Sub-Agent Instructions (optional):
    • Booking agent instructions
    • Memory agent instructions
  6. Set Timing & Behavior:
    • First contact wait time
    • In-conversation wait time
    • Conversation window
  7. Click Create Agent

Writing the System Prompt

The system prompt is the core instruction set. It should include:

  • Who the agent is
  • What company/brand it represents
  • What it can and cannot do
  • Key policies or constraints

Example system prompt:

You are a helpful sales assistant for Nakheel Trading, a premium date fruit retailer in Saudi Arabia.

Your role:
- Answer questions about our products, pricing, and availability
- Help customers find the right products for their needs
- Provide information about shipping and delivery
- Direct complex inquiries to human support

Guidelines:
- Always be polite and professional
- Use the customer's name when known
- Never make up information — if unsure, offer to connect with support
- Respect customer privacy — never ask for sensitive information

Configuring the Personality Prompt

The personality prompt shapes how the agent communicates:

Example personality prompt:

Friendly, warm, and genuinely helpful. Speak as if you're a knowledgeable shop assistant who loves what they sell. Use the customer's first name when available. Express enthusiasm about products without being pushy. End interactions by asking if there's anything else you can help with.

Setting Instruction Prompts

Task-specific instructions for particular scenarios:

Example instruction prompt:

When discussing products:
- Always mention the origin and quality grade
- Offer the premium option first, then alternatives
- If asking about bulk orders, mention our wholesale pricing
- For gift options, suggest our presentation boxes

When the customer seems ready to buy:
- Provide the product link or ordering instructions
- Mention current promotions if applicable
- Offer to answer any final questions

Configuring Sub-Agent Instructions

Booking Agent Instructions

If you use the booking feature, provide guidance:

When handling bookings:
- Always ask for the preferred date and time first
- Confirm the customer's location for in-person appointments
- For vehicle services, request a photo of the vehicle
- Collect phone number for confirmation SMS
- Double-check time zone if customer seems international

Memory Agent Instructions

Control what the AI remembers about contacts:

Remember about each customer:
- Their preferred products and past purchases
- Preferred contact time (morning/afternoon/evening)
- Any dietary restrictions or preferences mentioned
- Special occasions (birthdays, anniversaries) they share

Segment customers:
- Tag as "VIP" after 3+ orders
- Tag as "Wholesale" if inquiring about bulk
- Tag as "International" if outside Saudi Arabia

Setting Response Guidelines

Configure response formatting:

SettingOptionsDescription
LanguageArabic, English, AutoResponse language
ToneFormal, Casual, ProfessionalCommunication style
Max Length1-5 sentences, UnlimitedResponse brevity
StyleConversational, Informative, SalesOverall approach

Configuring Timing

Control response timing to feel natural:

SettingDefaultRangeDescription
First Contact Wait60 seconds0-300sDelay before first reply
In-Conversation Wait2 seconds0-30sDelay between messages
Conversation Window20 minutes5-60mInactivity before "new" conversation
Timing delays make AI responses feel more natural and give customers time to send follow-up messages.

Setting an Agent as Default

The default agent handles all new conversations:

  1. Open the agent you want as default
  2. Click Set as Default or toggle the Default switch
  3. Confirm the change
  4. Previous default agent loses the flag

Testing an Agent

Preview how the agent responds:

  1. Open the agent settings
  2. Click Test Agent or Preview
  3. Enter a sample customer message
  4. View the AI's response
  5. Adjust prompts as needed

Field & Control Glossary

Basic Information

FieldTypeRequiredDescription
NameTextYesInternal display name (max 255 chars)
System PromptTextareaYesCore AI instructions
Is ActiveToggleNoWhether agent can be used
Is DefaultToggleNoAssign to new contacts automatically

Prompt Fields

FieldTypeRequiredDescription
System PromptTextareaYesFoundation instructions
Instruction PromptTextareaNoTask-specific guidelines
Personality PromptTextareaNoTone and character
Booking Agent InstructionsTextareaNoRules for booking sub-agent
Memory Agent InstructionsTextareaNoRules for memory/segmentation

Response Guidelines

FieldTypeOptionsDefault
LanguageDropdownArabic, English, AutoAuto
ToneDropdownFormal, Casual, ProfessionalProfessional
Max LengthDropdown1-5 sentences, Unlimited3 sentences
StyleDropdownConversational, Informative, SalesConversational

Timing Settings

FieldTypeRangeDefault
First Contact WaitNumber0-300 seconds60s
In-Conversation WaitNumber0-30 seconds2s
Conversation WindowNumber5-60 minutes20m
Reactions EnabledToggleOn/OffOff

Statuses & Badges

Agent Status

StatusBadgeMeaning
Active🟢 GreenAgent can respond to messages
Inactive⚪ GrayAgent is paused/disabled
Default⭐ StarAssigned to new conversations

Assignment Status

IndicatorMeaning
Assigned to X contactsNumber of contacts using this agent
X conversations todayActivity count

Nested Screens

Create/Edit Agent Modal

┌─────────────────────────────────────────────────────────────────────────────┐
│ Create AI Agent                                                         [X] │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                              │
│ Basic Information                                                            │
│ ┌─────────────────────────────────────────────────────────────────────────┐ │
│ │ Name                                                                     │ │
│ │ [Sales Assistant                                                       ]│ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
│ ┌─────────────────────────────────────────────────────────────────────────┐ │
│ │ System Prompt *                                                          │ │
│ │ [You are a helpful sales assistant for Nakheel Trading...              ]│ │
│ │ [                                                                       ]│ │
│ │ [                                                                       ]│ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
│ Personality & Instructions                                                   │
│ ┌─────────────────────────────────────────────────────────────────────────┐ │
│ │ Personality Prompt                                                       │ │
│ │ [Friendly, warm, and genuinely helpful...                              ]│ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
│ ┌─────────────────────────────────────────────────────────────────────────┐ │
│ │ Instruction Prompt                                                       │ │
│ │ [When discussing products: Always mention origin...                    ]│ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
│ [▼ Sub-Agent Instructions]  [▼ Response Guidelines]  [▼ Timing]             │
│                                                                              │
│                                           [Cancel]  [Create Agent]           │
└─────────────────────────────────────────────────────────────────────────────┘

Test Agent Panel

┌─────────────────────────────────────────────────────────────────┐
│ Test Agent: Sales Assistant                                 [X] │
├─────────────────────────────────────────────────────────────────┤
│                                                                  │
│ Enter a test message:                                           │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ What dates do you have in stock?                            │ │
│ └─────────────────────────────────────────────────────────────┘ │
│                                           [Test Response]        │
│                                                                  │
│ Agent Response:                                                 │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ Hello! We have a wonderful selection of premium dates       │ │
│ │ currently in stock. Our most popular varieties are:         │ │
│ │                                                              │ │
│ │ • Sukkari dates from Al-Qassim (sweet, soft)               │ │
│ │ • Ajwa dates from Madinah (rich, slightly firm)            │ │
│ │ • Medjool dates (large, caramel-like)                      │ │
│ │                                                              │ │
│ │ Would you like details on any specific variety?             │ │
│ └─────────────────────────────────────────────────────────────┘ │
│                                                                  │
│ Response time: 1.2s  •  Tokens: 87                              │
│                                                                  │
└─────────────────────────────────────────────────────────────────┘

How It Connects

FeatureRelationship
Knowledge BaseAgents use KB for response grounding
InboxAgent assignment shows in conversation
ContactsContacts can have assigned agent
ChannelsDefault agent per channel configurable
BookingsBooking sub-agent handles scheduling
MemoryMemory sub-agent manages contact info

Limits & Plan Behavior

Plan Limits

AspectProBusinessEnterprise
AI Agents310Unlimited
System prompt length4,000 chars8,000 chars16,000 chars
Custom guidelines
Sub-agent instructions
Advanced timing

What Happens at Limit

When you reach the agent limit:

  1. + Create Agent button is disabled
  2. Banner shows: "Agent limit reached. Upgrade to create more."
  3. Existing agents can still be edited
  4. Delete unused agents to free up slots

Troubleshooting

Agent Not Responding

Symptoms: AI doesn't reply to messages

Solutions:

  1. Verify agent status is Active
  2. Check AI auto-reply is enabled (channel settings)
  3. Ensure agent is assigned to contact or is default
  4. Verify Knowledge Base has relevant content
  5. Check timing settings aren't causing excessive delay

Responses Are Off-Topic

Symptoms: Agent gives irrelevant answers

Solutions:

  1. Review and refine system prompt
  2. Add more specific instruction prompts
  3. Ensure Knowledge Base covers the topic
  4. Add constraints for what agent should NOT discuss
  5. Test with the Preview feature

Responses Too Long/Short

Symptoms: Answers don't match desired length

Solutions:

  1. Adjust Max Length in response guidelines
  2. Add length instructions in system prompt
  3. Example: "Keep responses under 3 sentences"

Agent Sounds Wrong

Symptoms: Tone doesn't match brand

Solutions:

  1. Refine the personality prompt
  2. Add specific tone words and examples
  3. Include sample phrases the agent should use
  4. Specify what to avoid ("Never use slang")

Timing Feels Unnatural

Symptoms: Replies too fast or slow

Solutions:

  1. Adjust First Contact Wait for initial replies
  2. Modify In-Conversation Wait for flow
  3. Consider 30-60s for first contact
  4. Use 2-5s for ongoing conversation

Cannot Set as Default

Symptoms: Default toggle doesn't work

Solutions:

  1. Ensure agent is set to Active first
  2. Only one agent can be default
  3. The previous default is automatically unset

Best Practices

Prompt Engineering

  • Start with clear role definition
  • Include specific do's and don'ts
  • Provide example scenarios and responses
  • Test extensively before deploying

Managing Multiple Agents

  • Create specialized agents for different purposes
  • Use descriptive names (Sales, Support, Booking)
  • Keep only relevant agents active
  • Review and update prompts regularly

Testing Strategy

  1. Test common customer questions
  2. Test edge cases and unusual requests
  3. Test in both Arabic and English if bilingual
  4. Test handoff scenarios
  5. Review actual conversation logs

Timing Optimization

  • First contact: 30-60 seconds feels thoughtful
  • In-conversation: 2-5 seconds feels natural
  • Avoid instant replies (feels robotic)
  • Avoid long delays (frustrates customers)