|
| 1 | +--- |
| 2 | +title: Agentic Copilots |
| 3 | +description: Agentic copilots provide you with advanced control and orchestration over your agents. |
| 4 | +icon: lucide/Bot |
| 5 | +--- |
| 6 | + |
| 7 | +import { |
| 8 | + TailoredContent, |
| 9 | + TailoredContentOption, |
| 10 | +} from "@/components/react/tailored-content"; |
| 11 | +import { BsFillCloudHaze2Fill as CloudIcon } from "react-icons/bs"; |
| 12 | +import { FaServer as SelfHostIcon } from "react-icons/fa6"; |
| 13 | +import { LinkIcon } from "lucide-react"; |
| 14 | +import { |
| 15 | + RocketIcon, |
| 16 | + GraduationCapIcon, |
| 17 | + CodeIcon, |
| 18 | + VideoIcon, |
| 19 | +} from "lucide-react"; |
| 20 | +import { AG2Icon, MastraIcon } from "@/lib/icons/custom-icons"; |
| 21 | + |
| 22 | + |
| 23 | +Before we dive into what agentic copilots are, help us help you by telling us your level of experience with Mastra. We'll explain things in a way that best suits your experience level. |
| 24 | + |
| 25 | +<TailoredContent id="experience" defaultOptionIndex={0}> |
| 26 | + <TailoredContentOption |
| 27 | + id="new" |
| 28 | + title="I'm new to Mastra" |
| 29 | + description="Help me understand what agentic copilots are, where Mastra fits in, and how to get started." |
| 30 | + icon={<img src="/images/copilotkit-logo.svg" width={7} height={7} />} |
| 31 | + > |
| 32 | + <Frame> |
| 33 | + <img src="/images/coagents/SharedStateCoAgents.gif" alt="CoAgents Shared State" className="mt-0 mb-12"/> |
| 34 | + </Frame> |
| 35 | + |
| 36 | + ### What are Agents? |
| 37 | + AI agents are intelligent systems that interact with their environment to achieve specific goals. Think of them as 'virtual colleagues' that can handle tasks ranging from |
| 38 | + simple queries like "find the cheapest flight to Paris" to complex challenges like "design a new product layout." |
| 39 | + |
| 40 | + As these AI-driven experiences (or 'Agentic Experiences') become more sophisticated, developers need finer control over how agents make decisions. This is where specialized |
| 41 | + frameworks like Mastra become essential. |
| 42 | + |
| 43 | + ### What is Mastra? |
| 44 | + Mastra is a framework that gives you precise control over AI agents. Mastra agents allow developers to combine and coordinate coding tasks efficiently, |
| 45 | + providing a robust framework for building sophisticated AI automations. |
| 46 | + |
| 47 | + ### What are Agentic Copilots? |
| 48 | + Agentic copilots are how CopilotKit brings Mastra agents into your application. If you're familiar with CopilotKit, you know that copilots are AI assistants that |
| 49 | + understand your app's context and can take actions within it. While CopilotKit's standard copilots use a simplified [ReAct pattern](https://www.perplexity.ai/search/what-s-a-react-agent-5hu7ZOaKSAuY7YdFjQLCNQ) |
| 50 | + for quick implementation, Agentic copilots give you Mastra's full orchestration capabilities when you need more control over your agent's behavior. |
| 51 | + |
| 52 | + ### What are CoAgents? |
| 53 | + CoAgents are what we call CopilotKit's approach to building agentic experiences! They're interchangeable with agentic copilots being a more descriptive term for the overall concept. |
| 54 | + |
| 55 | + ### When should I use CopilotKit's CoAgents? |
| 56 | + You should use CoAgents when you require tight control over the Agentic runloop, as facilitated by an Agentic Orchestration framework like [Mastra](https://mastra.ai/). |
| 57 | + With CoAgents, you can carry all of your existing CopilotKit-enabled Copilot capabilities into a customized agentic runloop. |
| 58 | + |
| 59 | + We suggest beginning with a basic Copilot and gradually transitioning specific components to CoAgents. |
| 60 | + |
| 61 | + The need for CoAgents spans a broad spectrum across different applications. At one end, their advanced capabilities might not be required at all, or only for a minimal 10% of the application's |
| 62 | + functionality. Progressing further, there are scenarios where they become increasingly vital, managing 60-70% of operations. Ultimately, in some cases, CoAgents are indispensable, orchestrating |
| 63 | + up to 100% of the Copilot's tasks (see [agent-lock mode](/mastra/multi-agent-flows) for the 100% case). |
| 64 | + |
| 65 | + ### Examples |
| 66 | + An excellent example of the type of experiences you can accomplish with CoAgents applications can be found in our [Research Canvas](https://github.com/CopilotKit/CopilotKit/tree/main/examples/coagents-research-canvas). |
| 67 | + |
| 68 | + More specifically, it demonstrates how CoAgents allow for AI driven experiences with: |
| 69 | + - Precise state management across agent interactions |
| 70 | + - Sophisticated multi-step reasoning capabilities |
| 71 | + - Seamless orchestration of multiple AI tools |
| 72 | + - Interactive human-AI collaboration features |
| 73 | + - Real-time state updates and progress streaming |
| 74 | + |
| 75 | + ## Next Steps |
| 76 | + |
| 77 | + Want to get started? You have some options! |
| 78 | + |
| 79 | + <Cards> |
| 80 | + <Card |
| 81 | + title="Build your first CoAgent" |
| 82 | + description="Follow a step-by-step tutorial to build a travel app supercharged with CoAgents." |
| 83 | + href="/mastra/quickstart/mastra" |
| 84 | + icon={<RocketIcon />} |
| 85 | + /> |
| 86 | + <Card |
| 87 | + title="Learn more CoAgent concepts" |
| 88 | + description="Learn more about the concepts used to talk about CoAgents and how to use them." |
| 89 | + href="/mastra/concepts/terminology" |
| 90 | + icon={<GraduationCapIcon />} |
| 91 | + /> |
| 92 | + <Card |
| 93 | + title="Read the reference documentation" |
| 94 | + description="Just here for some reference? Checkout the reference documentation for more details." |
| 95 | + href="/reference" |
| 96 | + icon={<CodeIcon />} |
| 97 | + /> |
| 98 | + </Cards> |
| 99 | + </TailoredContentOption> |
| 100 | + <TailoredContentOption |
| 101 | + id="intermediate" |
| 102 | + title="I'm already using Mastra" |
| 103 | + description="Help me understand what agentic copilots are, what Copilotkit does to integrate with Mastra, and how to get started." |
| 104 | + icon={<MastraIcon />} |
| 105 | + > |
| 106 | + |
| 107 | + Mastra is a framework for building deeply customizable AI agents. |
| 108 | + |
| 109 | + CopilotKit's Agentic Copilots is infrastructure for in-app agent-user interaction, i.e. for transforming agents from autonomous processes to user-interactive 'virtual colleagues' that live inside applications. |
| 110 | + |
| 111 | + Any Mastra-based agent can be transformed into an Agentic Copilot with a minimal amount |
| 112 | + of effort to get industry leading agentic UX such as: |
| 113 | + - Intermediate result and state progress streaming |
| 114 | + - Human-in-the-loop collaboration |
| 115 | + - Agentic generative UI |
| 116 | + - And more! |
| 117 | + |
| 118 | + All of these features are essential to delight instead of frustrate your users with AI features. |
| 119 | + |
| 120 | + ### What are CoAgents? |
| 121 | + CoAgents are what we call CopilotKit's approach to building agentic experiences! They're interchangeable with agentic copilots being a more descriptive term for the overall concept. |
| 122 | + |
| 123 | + ## Next Steps |
| 124 | + Want to get started? You have some options! |
| 125 | + |
| 126 | + <Cards> |
| 127 | + <Card |
| 128 | + title="Quickstart" |
| 129 | + description="Integrate your Mastra agent with CopilotKit in a few minutes." |
| 130 | + href="/mastra/quickstart/mastra" |
| 131 | + icon={<RocketIcon />} |
| 132 | + /> |
| 133 | + <Card |
| 134 | + title="Reference" |
| 135 | + description="Learn more about the terms used to talk about CoAgents and how to use them." |
| 136 | + href="/reference" |
| 137 | + icon={<CodeIcon />} |
| 138 | + /> |
| 139 | + </Cards> |
| 140 | + </TailoredContentOption> |
| 141 | + |
| 142 | +</TailoredContent> |
0 commit comments