Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-release-ios-chat-uikit-v5-1-2.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Knowledge Retrieval Agent

Imagine a minimal agent that can answer questions from your docs. Build a RAG-lite retrieval agent with local markdown files or upgrade later to a vector DB.
https://mintcdn.com/cometchat-22654f5b-release-ios-chat-uikit-v5-1-2/KgCUbVyrlTOIzEX8/images/icons/mastra.svg?fit=max&auto=format&n=KgCUbVyrlTOIzEX8&q=85&s=b5f65b16eac5cf85cac1d1a4c6b9458a

Full Knowledge Guide

Build & integrate the knowledge retrieval agent.

Frontend Actions Agent

An agent that outputs structured JSON actions (navigate, openModal, toggleTheme) which your frontend dispatcher can safely execute.
https://mintcdn.com/cometchat-22654f5b-release-ios-chat-uikit-v5-1-2/qcaDjLIyoHvR0pUJ/images/icons/ai-agents.svg?fit=max&auto=format&n=qcaDjLIyoHvR0pUJ&q=85&s=f07af13ea2ef32b0e1ad3d204ad46a45

Frontend Actions Guide

Emit safe UI actions from the agent.

Backend Tools Agent

An agent that calls backend tools or APIs. Example: fetch the weather from an external API, create tickets, update CRM.
https://mintcdn.com/cometchat-22654f5b-release-ios-chat-uikit-v5-1-2/KgCUbVyrlTOIzEX8/images/icons/mastra.svg?fit=max&auto=format&n=KgCUbVyrlTOIzEX8&q=85&s=b5f65b16eac5cf85cac1d1a4c6b9458a

Backend Tools Guide

Wire backend tools & external APIs.

Human Handoff Agent

An agent that knows its limits. If a human is required, it escalates gracefully by invoking a handoff tool with target + reason.
https://mintcdn.com/cometchat-22654f5b-release-ios-chat-uikit-v5-1-2/qcaDjLIyoHvR0pUJ/images/icons/ai-agents.svg?fit=max&auto=format&n=qcaDjLIyoHvR0pUJ&q=85&s=f07af13ea2ef32b0e1ad3d204ad46a45

Human Handoff Agent Guide

Escalate to humans with context.

Multi-agent Orchestration (Coordinator) Agent

An agent that queries multiple people, APIs, or sub-agents and returns a consolidated answer. Perfect for “Who is available tomorrow?” type queries.
https://mintcdn.com/cometchat-22654f5b-release-ios-chat-uikit-v5-1-2/KgCUbVyrlTOIzEX8/images/icons/mastra.svg?fit=max&auto=format&n=KgCUbVyrlTOIzEX8&q=85&s=b5f65b16eac5cf85cac1d1a4c6b9458a

Multi-agent Orchestration Guide

Fan-out across sources & merge results.

Group Chat Agent

An agent that lives in group chats and only responds when explicitly mentioned, e.g. @agent what’s our refund policy?.
https://mintcdn.com/cometchat-22654f5b-release-ios-chat-uikit-v5-1-2/qcaDjLIyoHvR0pUJ/images/icons/ai-agents.svg?fit=max&auto=format&n=qcaDjLIyoHvR0pUJ&q=85&s=f07af13ea2ef32b0e1ad3d204ad46a45

Group Chat Agent Guide

Mention-aware agent for group rooms.

Next Steps

  • Combine these agents in one Mastra project.
  • Deploy to your preferred host and connect them into CometChat Dashboard → AI Agents.
  • Extend with guardrails, vector retrieval, and advanced workflows.
  • Distribute this playbook internally so teams can copy-paste working agent setups.