Skip to main content
This guide demonstrates how to integrate C1 by Thesys with CopilotKit - the open-source Agentic Application Framework for building in-app AI Copilots, CoAgents, and Generative UI agents. Leveraging Agentic Generative UI, shared state, human-in-the-loop (HITL) patterns, and the AG-UI protocol, this integration enables the creation of customizable, real-time, and production-ready AI copilots within your application.
This guide assumes you have basic knowledge of CopilotKit. You’ll also need a Thesys API key from the C1 Console.
1

Create a new CopilotKit project

2

Install CopilotKit Runtime with OpenAI

app/api/completion/route.ts
3

Create a Copilot

In this guide we will be using the CopilotSidebar component to create a sidebar copilot. But you can easily replace it with CopilotChat or CopilotPopup to create a chat or popup copilot.
app/layout.tsx
app/page.tsx
4

Run the app

View the code

Find more examples and complete code on our GitHub repository.