Skip to main content
Before deploying to CrewAI AMP, it’s crucial to verify your project is correctly structured. Both Crews and Flows can be deployed as “automations,” but they have different project structures and requirements that must be met for successful deployment.

Understanding Automations

In CrewAI AMP, automations is the umbrella term for deployable Agentic AI projects. An automation can be either:
  • A Crew: A standalone team of AI agents working together on tasks
  • A Flow: An orchestrated workflow that can combine multiple crews, direct LLM calls, and procedural logic
Understanding which type you’re deploying is essential because they have different project structures and entry points.

Crews vs Flows: Key Differences

Crew Projects

Standalone AI agent teams with crew.py defining agents and tasks. Best for focused, collaborative tasks.

Flow Projects

Orchestrated workflows with embedded crews in a crews/ folder. Best for complex, multi-stage processes.

Project Structure Reference

Crew Project Structure

When you run crewai create crew my_crew, you get this structure:
The nested src/project_name/ structure is critical for Crews. Placing files at the wrong level will cause deployment failures.

Flow Project Structure

When you run crewai create flow my_flow, you get this structure:
Both Crews and Flows use the src/project_name/ structure. The key difference is that Flows have a crews/ folder for embedded crews, while Crews have crew.py directly in the project folder.

Pre-Deployment Checklist

Use this checklist to verify your project is ready for deployment.

1. Verify pyproject.toml Configuration

Your pyproject.toml must include the correct [tool.crewai] section:
If the type doesn’t match your project structure, the build will fail or the automation won’t run correctly.

2. Ensure uv.lock File Exists

CrewAI uses uv for dependency management. The uv.lock file ensures reproducible builds and is required for deployment.
If the file doesn’t exist, run uv lock and commit it to your repository:

3. Validate CrewBase Decorator Usage

Every crew class must use the @CrewBase decorator. This applies to:
  • Standalone crew projects
  • Crews embedded inside Flow projects
If you forget the @CrewBase decorator, your deployment will fail with errors about missing agents or tasks configurations.

4. Check Project Entry Points

Both Crews and Flows have their entry point in src/project_name/main.py:
The entry point uses a run() function:

5. Prepare Environment Variables

Before deployment, ensure you have:
  1. LLM API keys ready (OpenAI, Anthropic, Google, etc.)
  2. Tool API keys if using external tools (Serper, etc.)
If your project depends on packages from a private PyPI registry, you’ll also need to configure registry authentication credentials as environment variables. See the Private Package Registries guide for details.
Test your project locally with the same environment variables before deploying to catch configuration issues early.

Quick Validation Commands

Run these commands from your project root to quickly verify your setup:

Common Setup Mistakes

Next Steps

Once your project passes all checklist items, you’re ready to deploy:

Deploy to AMP

Follow the deployment guide to deploy your Crew or Flow to CrewAI AMP using the CLI, web interface, or CI/CD integration.