What you’ll build
- A CrewAI agent with cooking-focused instructions.
- Tools for pantry lookup and recipe generation.
- Optional frontend action that displays a shopping list in your UI.
Prerequisites
- CrewAI project (crew-ai.mdx)
- Any ingredient/recipe API keys if you use a third-party source
Steps
1
Add pantry tool
Provide a tool to check ingredient availability (local DB or API). Return structured data for the agent.
2
Generate recipes
Let the LLM craft recipes using the pantry results. Keep responses concise with steps + ingredient list.
3
Optional shopping list action
Emit a UI action (see frontend actions guide) so your app can show a list or start a checkout flow.
Sample tools
src/crew_demo/tools/pantry.py
src/crew_demo/tools/shopping_list.py
Agent configuration
src/crew_demo/config/agents.yaml
CometChat setup
Provider: CrewAI, Agent ID:chef, Deployment URL: /kickoff. Provide suggested prompts like “What can I make with eggs, milk, and flour?”.