Skip to main content
Supercharge your CrewAI agents with Generative UI powered by C1 by Thesys. Instead of limiting agents to text responses, you can render interactive UIs, create dynamic workflows, and plug in real-time dashboards - all generated on the fly.
This guide assumes you have basic knowledge of CrewAI. You’ll also need a Thesys API key from the C1 Console.
1

Create a new CrewAI agent

You can follow the CrewAI Quickstart to create a new CrewAI agent.
2

Create a new LLM class for Thesys

Extend the BaseLLM class to create a new LLM class for Thesys.
src/crewai-genui/thesys_llm.py
3

Update the reporting agent to use Thesys

In the crew.py file, the researcher and reporting_analyst agents would be defined. The job of of the reporting_analyst agent is to analyze the research and provide a summary of the findings. This is the perfect place to use Thesys as the LLM and generate a properly formatted report complete with charts and tables rather than just a plain text response.So lets go ahead and update the reporting_analyst agent to use Thesys.
src/crewai-genui/crew.py
4

Rendering the response

Now that we have the reporting_analyst agent using Thesys, we need to render the response. There are multiple ways to go about it but for this guide we will use the Streamlit SDK to render the response.First we need to install the dependencies.
And then we need to update the main.py file to serve a streamlit app.
src/crewai-genui/main.py
5

Run the app

This will start the Streamlit app at http://localhost:8501 and you should be able to run your crewai agent using the UI.

View the code

Find more examples and complete code on our GitHub repository.