# CometChat Docs: AI Agents > Technical documentation & Implementation guides to add In-app Messaging & Voice & Video Calling to your apps and websites in minutes. ## AI Agents - [AI Agents / APIs (77 pages)](https://www.cometchat.com/docs/_llms/ai-agents/apis.txt): Documentation for AI Agents / APIs. ### AI Agents - [AI Agents](https://www.cometchat.com/docs/ai-agents.md): Build and ship AI agents in chat: pick a provider, connect your agent, and export UI or embed widgets. ### Agent Builder - [Agent Builder](https://www.cometchat.com/docs/ai-agents/agent-builder/overview.md): Create, configure, and launch AI agents directly inside CometChat. #### Advanced - [Configure Instructions](https://www.cometchat.com/docs/ai-agents/agent-builder/instructions.md): Shape your agent’s personality, boundaries, and tool usage inside the Agent Builder. - [Knowledge Base](https://www.cometchat.com/docs/ai-agents/agent-builder/knowledge-base/overview.md): Centralize, index, and attach knowledge sources to power your Agent Builder experiences. - [Tools](https://www.cometchat.com/docs/ai-agents/agent-builder/tools/overview.md): Extend your agent with custom APIs, Google Suite integrations, and MCP-powered skills. - [Card Messages](https://www.cometchat.com/docs/ai-agents/agent-builder/card-messages.md): Let your agent reply with rich, interactive cards — designed in Card Builder — instead of plain text. - [MCP](https://www.cometchat.com/docs/ai-agents/agent-builder/mcp/overview.md): Connect Model Context Protocol endpoints to enrich your agent with external knowledge and tools. - [Frontend Actions](https://www.cometchat.com/docs/ai-agents/agent-builder/frontend-actions/overview.md): Enable your agent to trigger client-side behaviors like opening modals, navigating pages, or displaying notifications. - [Variables](https://www.cometchat.com/docs/ai-agents/agent-builder/variables/overview.md): Use dynamic variables to personalize agent responses and inject contextual data into instructions and API tools. #### Guides - [Implementing Authorization with API Tools](https://www.cometchat.com/docs/ai-agents/agent-builder/guides/implementing-authorization.md): Use API tools to create custom authorization layers that control access to your AI agent, tools, or knowledge base. ### Bring Your Own Agent #### Mastra - [Create an AI Agent with Mastra](https://www.cometchat.com/docs/ai-agents/mastra.md): Connect a Mastra agent to CometChat, customize it with UI Kit Builder, and ship it as React UI Kit code or a Chat Widget. - [AI Agent Actions](https://www.cometchat.com/docs/ai-agents/mastra-actions.md): Explore CometChat Mastra AI agent actions for frontend events, user interactions, and custom workflows. - [AI Agent Tools](https://www.cometchat.com/docs/ai-agents/mastra-tools.md): Explore CometChat Mastra AI agent tools for external APIs, frontend actions, and connected workflows. - [RuntimeContext](https://www.cometchat.com/docs/ai-agents/mastra-runtime-context.md): Access user authentication data and contextual information in Mastra agents through CometChat's runtime context. - [Card Messages](https://www.cometchat.com/docs/ai-agents/mastra-card-messages.md): Let your Mastra BYOA agent reply with rich, interactive cards designed in Card Builder. ##### Guides - [Build Your Knowledge Agent with Mastra](https://www.cometchat.com/docs/ai-agents/mastra-knowledge-agent.md): Create a Mastra Knowledge Agent that answers documentation questions when invoked, then connect it to CometChat. - [Build Your Frontend Actions Agent with Mastra](https://www.cometchat.com/docs/ai-agents/mastra-frontend-actions-agent.md): Create a Mastra agent that can trigger UI actions via frontend actions/tools (e.g., confetti), then connect it to CometChat. - [Build Your Backend Tools Agent with Mastra](https://www.cometchat.com/docs/ai-agents/mastra-backend-tools-agent.md): Create a Mastra agent that performs secure backend actions (e.g., fetch deals) via server-side tools, then connect it to CometChat. - [Build Your Orchestrator Agent with Mastra](https://www.cometchat.com/docs/ai-agents/mastra-orchestrator-agent.md): Create a Mastra orchestrator agent that routes queries to the right specialist (billing, support, tech, manager, human), then connect it to CometChat. ##### Tutorials - [Build a Product Hunt Agent with Mastra](https://www.cometchat.com/docs/ai-agents/mastra-product-hunt-agent.md): Create a Mastra agent that can fetch Product Hunt posts, answer launch questions, and trigger frontend actions (confetti), then plug it into CometChat. - [Build a PDF Knowledge Agent with Mastra](https://www.cometchat.com/docs/ai-agents/mastra-knowlege-agent-pdf.md): Create a Mastra agent that ingests PDFs, performs hybrid (semantic + BM25) retrieval, and answers grounded questions in CometChat. #### CrewAI - [Create an AI Agent with CrewAI](https://www.cometchat.com/docs/ai-agents/crew-ai.md): Connect a CrewAI agent to CometChat, customize it with UI Kit Builder, and ship it as React UI Kit code or a Chat Widget. - [AI Agent Actions](https://www.cometchat.com/docs/ai-agents/crew-ai-actions.md): Explore the various actions you can perform with your AI agent in CometChat. - [AI Agent Tools](https://www.cometchat.com/docs/ai-agents/crew-ai-tools.md): Explore the various tools you can use with your AI agent in CometChat. - [Card Messages](https://www.cometchat.com/docs/ai-agents/crew-ai-card-messages.md): Let your CrewAI BYOA agent reply with rich, interactive cards designed in Card Builder. ##### Guides - [Build Your Knowledge Agent with CrewAI](https://www.cometchat.com/docs/ai-agents/crew-ai-knowledge-agent.md): Create a CrewAI knowledge agent that answers from your docs, streams NDJSON to CometChat, and cites sources. ##### Tutorials - [Build a Product Hunt Agent with CrewAI](https://www.cometchat.com/docs/ai-agents/crew-ai-product-hunt-agent.md): Create a CrewAI agent that fetches Product Hunt posts, answers launch questions, and can trigger frontend actions like confetti. #### Agno - [Create an AI Agent with Agno](https://www.cometchat.com/docs/ai-agents/agno.md): Connect an Agno agent to CometChat, customize it with UI Kit Builder, and ship it as React UI Kit code or a Chat Widget. - [AI Agent Actions](https://www.cometchat.com/docs/ai-agents/agno-actions.md): Explore the various actions you can perform with your AI agent in CometChat. - [AI Agent Tools](https://www.cometchat.com/docs/ai-agents/agno-tools.md): Explore the various tools you can use with your AI agent in CometChat. - [Card Messages](https://www.cometchat.com/docs/ai-agents/agno-card-messages.md): Let your Agno BYOA agent reply with rich, interactive cards designed in Card Builder. ##### Guides - [Build Your Knowledge Agent with Agno](https://www.cometchat.com/docs/ai-agents/agno-knowledge-agent.md): Spin up an Agno-powered knowledge agent with FastAPI, ingest docs into namespaces, and stream grounded answers (with citations) into CometChat. ##### Tutorials - [Launch a Product Hunt Agent with Agno](https://www.cometchat.com/docs/ai-agents/agno-product-hunt-agent.md): Build an Agno Product Hunt assistant that queries live launch data, triggers celebrations, and streams into CometChat. #### Vercel AI - [Create an AI Agent with Vercel AI SDK](https://www.cometchat.com/docs/ai-agents/vercel.md): Connect a Vercel AI SDK agent to CometChat, customize it with UI Kit Builder, and ship it as React UI Kit code or a Chat Widget. - [AI Agent Actions](https://www.cometchat.com/docs/ai-agents/vercel-actions.md): Explore the various actions you can perform with your AI agent in CometChat. - [AI Agent Tools](https://www.cometchat.com/docs/ai-agents/vercel-tools.md): Explore the various tools you can use with your AI agent in CometChat. - [Card Messages](https://www.cometchat.com/docs/ai-agents/vercel-card-messages.md): Let your Vercel AI BYOA agent reply with rich, interactive cards designed in Card Builder. ##### Guides - [Build Your Knowledge Agent with Vercel AI SDK](https://www.cometchat.com/docs/ai-agents/vercel-knowledge-agent.md): Create a Vercel AI SDK knowledge agent that ingests docs, streams grounded answers with citations, and connects to CometChat. ##### Tutorials - [Build a Product Hunt Agent with Vercel AI SDK](https://www.cometchat.com/docs/ai-agents/vercel-product-hunt-agent.md): Create a Vercel AI SDK agent that fetches Product Hunt data, celebrates launches with confetti, and connects to CometChat. #### LangGraph - [Create an AI Agent with LangGraph](https://www.cometchat.com/docs/ai-agents/langgraph.md): Connect a LangGraph agent (TypeScript or Python) to CometChat, customize it in UI Kit Builder, and ship the experience as code or a widget. - [Card Messages](https://www.cometchat.com/docs/ai-agents/langgraph-card-messages.md): Let your LangGraph BYOA agent reply with rich, interactive cards designed in Card Builder. ##### Guides - [Build Your Knowledge Agent with LangGraph](https://www.cometchat.com/docs/ai-agents/langgraph-knowledge-agent.md): Use LangGraph (TypeScript or Python) to stream a search-backed knowledge agent and adapt it for CometChat. ##### Tutorials - [Launch a Product Hunt Agent with LangGraph](https://www.cometchat.com/docs/ai-agents/langgraph-product-hunt-agent.md): Build a LangGraph agent (TypeScript or Python) with Product Hunt-style tools, stream graph state, and prep it for CometChat. #### AG2 - [Create an AI Agent with AG2](https://www.cometchat.com/docs/ai-agents/ag2.md): Connect an AG2 (AutoGen) agent to CometChat, customize it with UI Kit Builder, and ship it as React UI Kit code or a Chat Widget. - [AI Agent Actions](https://www.cometchat.com/docs/ai-agents/ag2-actions.md): Explore the various actions you can perform with your AI agent in CometChat. - [AI Agent Tools](https://www.cometchat.com/docs/ai-agents/ag2-tools.md): Explore the various tools you can use with your AI agent in CometChat. - [Card Messages](https://www.cometchat.com/docs/ai-agents/ag2-card-messages.md): Let your AG2 BYOA agent reply with rich, interactive cards designed in Card Builder. ##### Guides - [Build Your Knowledge Agent with AG2](https://www.cometchat.com/docs/ai-agents/ag2-knowledge-agent.md): Create an AG2 Knowledge Agent that answers documentation questions, then connect it to CometChat. ##### Tutorials - [Build a Product Hunt Agent with AG2](https://www.cometchat.com/docs/ai-agents/ag2-product-hunt-agent.md): Create an AG2 agent that can fetch Product Hunt posts, answer launch questions, and trigger frontend actions (confetti), then plug it into CometChat. #### AG-UI - [CometChat AG-UI Integration](https://www.cometchat.com/docs/ai-agents/ag-ui.md): Integrate your AG-UI compatible AI agents with CometChat using the AG-UI protocol. - [AI Agent Actions](https://www.cometchat.com/docs/ai-agents/ag-ui-actions.md): Explore CometChat AI agent actions for frontend events, user interactions, and AG-UI compatible workflows. - [AI Agent Tools](https://www.cometchat.com/docs/ai-agents/ag-ui-tools.md): Explore CometChat AI agent tools for external APIs, frontend actions, and AG-UI compatible integrations. - [Card Messages](https://www.cometchat.com/docs/ai-agents/ag-ui-card-messages.md): Let your AG-UI BYOA agent reply with rich, interactive cards designed in Card Builder. ##### Guides - [CometChat AG-UI Agents](https://www.cometchat.com/docs/ai-agents/cometchat-ag-ui-byoa.md): Bring your own agent to CometChat and build AG-UI compatible agents. ##### Implementation - [AG-UI Express.js Implementation](https://www.cometchat.com/docs/ai-agents/cometchat-ag-ui-express.md): Build an AG-UI compatible CometChat AI agent with Express.js, TypeScript, OpenAI, streaming events, and tools. - [AG-UI NestJS Implementation](https://www.cometchat.com/docs/ai-agents/cometchat-ag-ui-nestjs.md): Build an AG-UI compatible CometChat AI agent with NestJS, OpenAI, streaming events, and tool execution. ### Widget Builder - [Integrate an AI Agent into the Chat Widget](https://www.cometchat.com/docs/ai-agents/chat-widget.md): Embed your AI Agent (Agent Builder or Bring Your Own Agent) into the CometChat Chat Widget. ### Custom Bots - [Custom Bots](https://www.cometchat.com/docs/ai-chatbots/custom-bots.md): Custom Bots — CometChat documentation.