Credentials. Your model and Serper keys go in a plain .env file, so keep it out of version control.
Who it is forA developer or analyst who wants a repeatable briefing on any topic without writing orchestration code.
The problemOne prompt that both researches and writes tends to skim, and wiring several agents together by hand takes time.
The outcomeA project that runs a researcher then a reporting analyst in sequence and writes output/report.md.
What you need first
- Python 3.10 or later
- The CrewAI CLI from the installation guide
- A model provider API key in the project's .env file
- A Serper.dev API key if your agents use web search
Steps
- Install CrewAI following the installation guide in the docs
- Run
crewai create crew latest-ai-developmentand thencd latest_ai_development - Edit agents/researcher.jsonc and agents/reporting_analyst.jsonc with each agent's role, goal, backstory and llm
- Define research_task and reporting_task in crew.jsonc with process sequential and a default topic under inputs
- Add your model key and SERPER_API_KEY to .env, then run
crewai installandcrewai run
Prompt for your agent
Using crewAIInc/crewAI, scaffold a crew with a researcher and a reporting analyst for the topic <topic>. Configure crew.jsonc with a sequential process that writes output/report.md, then run it and show me the report.
Caveat. Every agent step is a paid model call, and the example uses openai/gpt-4o, so a long crew run can cost more than a single prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for crewAIInc/crewAI and "Build a two-agent research and report crew"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer