
Learning Analytics and AI
AI Critical Thinking Activity Creator
Date
Team
2024
Individual work
My Role
AI Designer
Target Users / Audience
Educators
Tools Used
Python, Visual Studio Code, Groq, Chainlit, CrewAI
Overview
This project creates a multi-agent system using CrewAI to generate critical thinking activities for any user-specified topic. It uses a large language model from Groq and the Chainlit framework for the chat interface.
This project creates a multi-agent system using CrewAI to generate critical thinking activities for any user-specified topic.
When a chat session starts (@cl.on_chat_start), it defines three specialized AI agents: a 'Teacher' to outline key concepts, an 'InstructionalDesigner' to create activities, and an 'Evaluator' to critique them. It then defines a sequence of tasks for these agents: content creation, activity design, evaluation, improvement, and finally, the creation of a class script. These agents and tasks are organized into a 'Crew', which is stored in the user's session.
The user is then prompted to provide a topic. When the user sends a message (@cl.on_message), the code retrieves the 'Crew' and initiates the task execution with the user's input as the 'topic'. The output from each agent's task is then displayed to the user in the Chainlit interface, attributed to the respective agent.

Below is the full version of the code:
Process
Final Deliverable(s)
Here is a video of how the code works: