Understanding Agents

Learn how AlonChat agents work and how to optimize them for accurate, fast responses.

Understanding Agents#

Learn how AlonChat agents work and how to optimize them for your use case.

What's in an Agent#

Each agent has its own workspace in the sidebar:

SectionWhat it's for
PlaygroundThe agent's main page -- chat with it, switch channels, and compare prompts/models
ActivityCustomer conversations, comments, and reviews that need attention
ContactsAuto-classified customer profiles with lead scoring and follow-ups
AnalyticsIntent, sentiment, topics, and conversion insights
SourcesEverything you teach the agent, plus the Train Agent button
AutomationsActions the agent can take (scheduling, Sheets, email, payments, and more)
DeployConnect channels and Go Live so the agent replies automatically
Review CenterKnowledge gaps, conflicts, and suggestions to improve answers
Help Desk (beta)Human-owned support tickets linked to conversations
AI AssistantYour owner co-pilot for monitoring and approvals
SettingsAI model, behavior, and configuration

How Agents Work#

When a customer asks your agent a question, here is what happens:

  1. The question is analyzed -- AlonChat determines what the customer is asking about (pricing, scheduling, general info, etc.)
  2. Relevant knowledge is retrieved -- The system searches your sources using AI-powered search to find the most relevant content
  3. A response is generated -- Your selected AI model uses the retrieved knowledge to craft an accurate, contextual answer

This approach ensures your agent:

  • Answers accurately using YOUR knowledge, not generic AI knowledge
  • Stays on-topic and relevant to your business
  • Handles complex, multi-part questions
  • Cites specific information from your sources

Sources#

What are Sources?#

Your agent's sources are everything you teach it. You add content, the platform processes and indexes it, and your agent draws from it when answering questions.

You can add knowledge from many source types:

  • Files -- PDF, Word, TXT, Markdown, and image (JPG/PNG/WebP) documents
  • Text -- Paste content directly (policies, FAQs, product info)
  • Q&A Pairs -- Specific questions with exact answers
  • Websites -- Automatically crawl and extract page content
  • Google Drive -- Sync documents automatically
  • Facebook/Instagram -- Import conversation history to learn your communication style
  • Structured Data -- Product catalogs, services, and pricing from spreadsheets or an API
  • Time-Sensitive Content -- Promos, events, and announcements with expiration dates

How Knowledge is Organized#

AlonChat organizes your knowledge into five categories for intelligent retrieval:

CategoryWhat It ContainsSource Types
DocumentsGeneral content from files, text, and websitesPDF, Word, TXT, Markdown, images, websites, text, Google Drive
Q&AExplicit question-answer pairs with exact answersQ&A pairs you create (these get priority for matching questions)
Structured DataOrganized records like products and servicesProduct catalogs, services, pricing from spreadsheets or an API
Time-SensitiveContent that expiresPromos, events, announcements with dates
Communication StyleYour brand's conversation patternsImported Facebook/Instagram conversations

The system automatically determines which categories are most relevant to each question. For example, a pricing question pulls from structured data and documents, while a "do you have a promo?" question checks time-sensitive content first.

Source Priority#

You can set priority levels on individual sources to influence how prominently they appear in responses:

  • High Priority -- Critical information (pricing, legal, policies) -- most likely to be retrieved
  • Normal Priority -- Standard information -- balanced retrieval
  • Low Priority -- Background context (archived docs, conversation history) -- retrieved only when highly relevant

How to set priority: Go to Sources, open a source, click Edit, and set the priority level. Use the Is Price toggle for pricing information to automatically boost its priority.

AI Model Selection#

AlonChat supports multiple AI providers. Models and credit costs are managed from your dashboard.

Model Tiers#

TierCredits per MessageResponse SpeedBest For
Budget1FastestHigh volume, simple queries, FAQ bots
Mid-tier5BalancedGeneral use, good quality
Premium10-15ModerateComplex conversations, nuanced responses
Top-tier25SlowerHighest quality, detailed reasoning

Recommendation: Start with a budget model (1 credit). It handles most use cases well. Upgrade to premium only when you need better handling of complex or nuanced conversations.

Response Creativity#

Response Creativity controls how creative vs. consistent your agent's responses are. It defaults to Automatic and is kept low so the same question produces consistent, factual answers -- the right behavior for customer support and FAQ bots.

Raise it only if you specifically want more varied, conversational phrasing (for example, a casual brand voice). For factual accuracy, leave it on Automatic.

System Prompts#

The system prompt defines your agent's personality and behavior. Good prompts are specific, include fallback behavior, and define tone:

Good example:

Code
You are a customer support agent for Acme Corp.
Answer questions about our products using the available sources.
Be friendly, concise, and accurate.
If you don't know the answer, say:
"I don't have that information. Let me connect you with
a human agent: support@acmecorp.com"

Tips for effective system prompts:

  • Be specific about the agent's role and your company name
  • Define how the agent should handle questions it cannot answer
  • Set the tone (formal, casual, friendly) and language preferences
  • Keep it focused -- overly long prompts can reduce response quality

Performance Tips#

Improving Response Accuracy#

If your agent gives incorrect or incomplete answers:

  1. Add more specific content -- Do your sources actually contain the answer? Add it if not.
  2. Use Q&A pairs for common questions -- Q&A sources are prioritized when a question closely matches. Add explicit pairs for your most-asked questions.
  3. Set source priorities -- Mark critical information (pricing, policies, legal) as high priority.
  4. Keep Response Creativity on Automatic -- The low default maximizes consistency and factual accuracy.
  5. Review and refine your system prompt -- Clear, specific instructions lead to better responses.

Improving Response Speed#

If your agent is slow:

  1. Switch to a budget model -- Budget-tier models respond fastest.
  2. Clean up your sources -- Remove duplicate or outdated sources so retrieval stays focused.
  3. Tighten your system prompt -- Ask for concise answers when long responses aren't needed.

Reducing Credit Usage#

If you want to optimize costs:

  1. Use budget models (1 credit) -- They handle most queries well.
  2. Add Q&A pairs -- Direct question-answer matches are efficient to retrieve and produce focused responses.
  3. Keep sources clean -- Remove duplicate or outdated content so the agent retrieves only what it needs.

Best Practices#

Source Management#

  1. Keep sources organized -- Use clear, descriptive names. Archive outdated sources rather than deleting them.
  2. Update regularly -- Re-train after adding or updating sources. Review your sources monthly.
  3. Use the right source type for each kind of content:
    • Files for documentation, manuals, catalogs
    • Text for quick notes, policies, single-page content
    • Q&A for common questions with specific answers
    • Website for product pages, blog posts, help centers
    • Google Drive for auto-synced documents
    • Structured Data for product catalogs, services, pricing
    • Time-Sensitive for promos, events, announcements
  4. Set appropriate priorities -- High for pricing, legal, and critical policies. Normal for general info. Low for archived content.

Agent Configuration#

  1. Start simple, iterate -- Basic agent first, test, then add complexity.
  2. Test with real questions -- Use actual customer questions, not made-up ones. Ask colleagues to test.
  3. Monitor and improve -- Review chat logs regularly. Identify gaps and add sources to cover them.
  4. Use feedback -- Enable thumbs up/down and review negative feedback to improve.

Common Mistakes#

  • Not training after adding sources -- Adding sources does not automatically train the agent. Always click "Train Agent" after changes.
  • Raising Response Creativity for factual Q&A -- Factual bots should leave it on Automatic (kept low). Higher creativity causes inconsistent answers.
  • Vague system prompts -- "You are a helpful assistant" is too generic. Be specific about role, tone, and fallback behavior.
  • Ignoring source priority -- All sources have equal weight by default. Mark important information as high priority.
  • Not testing before deployment -- Always test in the chat playground before connecting to live channels.
  • Creating multiple agents for the same purpose -- One agent with comprehensive knowledge is easier to manage and more consistent than multiple specialized agents.