This example contains a simple starter project for CrewAI written in Python.
These instructions assume you are in the coagents-starter-crewai-flows/ directory
First, install the backend dependencies:
cd agent-py
poetry installThen, create a .env file inside ./agent-py with the following:
OPENAI_API_KEY=...
IMPORTANT: Make sure the OpenAI API Key you provide, supports gpt-4o.
Then, run the demo:
Python
poetry run demoFirst, install the dependencies:
cd ./ui
pnpm iThen, create a .env file inside ./ui with the following:
OPENAI_API_KEY=...
Then, run the Next.js project:
pnpm run devNavigate to http://localhost:3000.
A few things to try if you are running into trouble:
- Make sure there is no other local application server running on the 8000 port.
- Under
/agent/greeter/demo.py, change0.0.0.0to127.0.0.1or tolocalhost