Hi @rapidoo !
Indeed, using CopilotKit library is a good option for sure (they have some boilerplate examples using LangGraph)!
We provide a agent-chat-ui library that can be helpful to get started or this one where authentication and payments are implemented as well!
I ran into this same problem. Most of the options out there assume you want React or some heavy frontend framework, which is overkill if you just need your agent to interact with UI components.
I ended up building an open source web component library called Zephyr that was designed specifically for this. Its all custom elements so it works with any frontend or no frontend framework at all. The agent talks to components through a simple API:
There’s an MCP server so you can plug it into Claude Desktop or Cursor, and I just added a Vercel AI SDK integration if you’re using that for your agent. Zero dependencies, load it from a CDN and you’re running.