LogoLogo
Documentation
Documentation
  • Getting Started
    • Introduction
    • Sign up to Developer Edition
    • Build Your First Agent
    • Developer Support
  • Core Concepts
    • Agent
      • Knowledge
      • Webhook
    • PII Masking
    • Sub-Agent
    • Intent
    • Workflow
      • Node
        • Input
        • Output
        • Loader
        • Display
        • API Node
        • Web Crawler
        • Table Write
        • Table Read
        • Ruleset
        • Upload Document
        • Javascript
        • Workflow
        • Loop
        • Document To Image
        • External Database
        • Storage Write
        • Storage Read
        • Fetch Document
        • Prompt
        • RAG Query
        • Vector Search
        • Emit Event
    • RAG
    • Model Hub
      • Entity Recognizers
    • Data Gateway
    • Rulesets
    • Code Snippets
    • Tables
    • Storage
    • Widget
  • Overview of GenAI
    • Introduction
    • Key concepts
      • Intent Classification
      • Inference
      • Generative AI Models
      • Large Language Models (LLMs)
      • Prompt Engineering
      • AI Agents
      • RAG (Retrieval Augmented Generation)
      • AI Workflow Automation
      • AI Agents vs LLM-based APPs
Powered by GitBook
On this page
  • What is a Sub-Agent?
  • How to create sub-agent?
  • Key takeaway for developers
Export as PDF
  1. Core Concepts

Sub-Agent

What is a Sub-Agent?

A Sub-Agent is a specialized component within an AI Agent that handles a specific set of tasks related to a particular domain or functionality. It acts as a modular processing unit, receiving tasks from the main agent after identifying user intent.

Think of Sub-Agents as modules in a typical application—they focus on distinct functionalities within the AI system.

How Sub-Agents Work

  1. User Query Processing

    • The main agent receives the user’s request and determines the intent.

    • If the intent falls within a specific domain, it is delegated to the appropriate Sub-Agent.

  2. Task Execution by Sub-Agent

    • The Sub-Agent processes the request based on the identified user intent.

    • It may extract information, analyze data, summarize content, or answer user queries by delegating the execution to right intent.

  3. Response Generation

    • The Sub-Agent compiles the required information by executing the workflow associated with the intent and sends the response back to the main agent.

    • The main agent then formats and delivers the final response to the user.

Example: Document AI Agent

A Document AI Agent may have a Document Q&A Sub-Agent, which:

  • Handles user queries about uploaded documents.

  • Retrieves, extracts, and summarizes information from documents like paystubs, invoices, and balance sheets.

  • Ensures users get accurate responses based on the document data processed by the AI.

How to create sub-agent?

See the video below to learn how to create Sub-Agents:

Key takeaway for developers

Why Use Sub-Agents?

✅ Modular Structure: Organizes AI workflows efficiently.

✅ Scalability: Allows for adding specialized capabilities without modifying the entire agent.

✅ Improved Accuracy: Sub-agents focus on specific tasks, enhancing performance.

By using Sub-Agents, developers can build structured, scalable AI systems that efficiently handle complex, multi-domain tasks.

PreviousPII MaskingNextIntent

Last updated 4 months ago

Create a Sub Agent.