Layered Assistants in CometAI

Tags CometAI

Table of Contents 

Introduction 

Layered Assistants allow you to build a hierarchy of AI assistants that work together to handle user requests. A Layered Assistant uses a parent assistant to evaluate incoming questions and automatically route them to the most appropriate child assistant for a response. 

This approach helps organize complex workflows, improve response quality, and create specialized experiences for different types of requests. Instead of relying on a single assistant to perform every task, Layered Assistants can direct users to assistants that are configured for specific topics, departments, or functions. 

Key Features 

  • Intelligent Request Routing: Automatically direct users to the most appropriate assistant based on their request. 
  • Parent and Child Assistant Structure: Use a parent assistant to make routing decisions while child assistants handle responses. 
  • Custom Decision Logic: Define routing behavior using natural language instructions and decision guides. 
  • Specialized Assistants: Create dedicated assistants for different topics, services, or departments. 
  • Scalable Organization: Manage multiple assistants within a single routing framework. 
  • Improved User Experience: Ensure users receive responses from the assistant best suited to their needs. 
  • Flexible Use Cases: Ideal for support desks, academic services, student resources, departmental knowledge bases, and multi-purpose AI solutions. 

Accessing Layered Assistants 

  • Click on the "Assistant Gallery" on the Assistant Tab. 

CometAI Assistants Tab on the left-hand navigation with an arrow pointing to the Assistant Gallery tab

  • The Layered Assistants Tab is visible on the left of the top bar.  

CometAI Assistant Gallery tab showing the Layered Assistants

How to Create Layered Assistants 

  • Go to the Assistant Tab on the top-left sidebar on the sandbox, and click the Layered Assistants button. 

CometAI Assistants Tab with an arrow going to the Layered Assistants tab

  • Give your Layered Assistant a Name at first then write a small description. 
    • For example: Support Desk Layered Assistant, with the support requests to the right specialist assistant based on issue type, urgency, and context.  
  • Find the Parent Settings below and give your 1st Parent Assistant a name and add a Description for its role.
    • Also, add a Decision Guide for its routing logic. See the example below. 

Overview of the CometAI Layered Assistant Builder Tab

Example of a Layered Assistant Router Setup in the CometAI Layered Assistant Builder.

  • Add child assistants to the parent assistant. 
    • See example below

Example of child assistant under the parent router in Layered Assistant Builder in CometAI

Note: Add at least 2 child assistants to the parent to save it properly Once 2 child assistants are added and configured, hit the "Save" button at the bottom-right of the screen to save the Layered Assistant. 

Example Prompts to Create Layered Assistants 

Example Prompt to Create a Layered Assistant

Decision Guide:  

''' Decision Guide Use this assistant as the top-level router for all support-related requests. Route the user to the most relevant sub-parent or leaf assistant based on the issue category:  

Billing / payments → choose the Billing Assistant (route to the Billing Assistant)  

Account access / login / password → choose the Account Access Assistant (route to the Account Access Assistant)  

When deciding, prefer the branch that best matches the user’s main problem:  

If they mention charges, invoices, refunds, subscriptions, or payment methods, route to Billing Assistant  

If they mention signing in, passwords, MFA, or account recovery, route to Account Access Assistant  

If the request is ambiguous:  

Ask yourself which branch would most likely resolve the issue fastest  

Prefer the branch that handles the user’s immediate pain point 

If the issue spans multiple areas, route to the primary root cause first  

As the Support Desk Router, you cannot answer general questions too! thats against your guardrails you can only rout to the children assistants which will answer the questions.''' 

Child Assistant 1 - Billing Assistant 

Example of Child Assistant and Instructions in CometAI

Child Assistant 2 - Account Access Assistant 

Example of Child Assistant and Instructions in CometAI

How to Delete a Layered Assistant 

  • Go to the Assistants Tab > Assistant Gallery > Layered Assistants.
  • Click on the Recycle bin icon as annotated below. 

Option to delete a Layered Assistant in CometAI

How to Access and Chat with a Layered Assistant 

  • The Created Layered Assistant i.e. Prompts "Support Desk Layered Assistant" should appear on the left sidebar under the Layered Assistants tab and inside.

CometAI Assistants Tab with an arrow pointing to the Layered Assistant folder

Conversation in CometAI demonstrating a Layered Assistant in use

Demo of a Layered Assistant in CometAI

Tip: You can also create multiple sub-parents & have multiple children/sub-parents inside those sub-parents as well. 
Disclaimer: The Publish at Path feature is currently under internal testing and should not be used at this time. The AI Generate feature for DESCRIPTION and DECISION GUIDES is not working, and the CometAI team is working internally to resolve the issue.