DEV Community

Cover image for CuisineChef: Your Pantry Sous‑Chef👨‍🍳
Shivam Sharma
Shivam Sharma

Posted on

CuisineChef: Your Pantry Sous‑Chef👨‍🍳

This is a submission for the Runner H "AI Agent Prompting" Challenge

⚠️ Problem Statement

Home cooks frequently struggle with three key challenges: identifying what dishes they can make with the ingredients on hand, piecing together a reliable cooking plan that fits their dietary preferences and culinary skills, and receiving real-time guidance during the cooking process. These issues can lead to wasted ingredients, frustrating cooking experiences, and a lack of confidence in the kitchen. An AI-powered assistant—like the Runner H–powered CuisineChef Agent—addresses these pain points by automatically logging pantry contents, offering personalized recipe suggestions, guiding users step-by-step with adaptive feedback, and delivering the full cooking plan and inventory via email, thereby transforming a disjointed workflow into a seamless, interactive cooking experience

🛠️ What I Built

I built CuisineChef, an AI-powered cooking assistant using Runner H that offers a full-stack, interactive cooking experience:

  1. Smart Inventory Logging

    • Users input ingredients with quantities. Runner H automatically categorizes each item (fruits, proteins, spices, etc.) and logs them into a Google Sheet named CuisineChef Inventory with columns like Category | Item.
    • Confirms back to the user with a link to the sheet.
  2. Personalized Recipe Suggestions

    • Analyzes inventory alongside cuisine preference, dietary restrictions, and serving size.
    • Proposes 2–3 tailored dish options, highlighting any missing staples.
    • Awaits user selection before proceeding.
  3. Dynamic Recipe Document Generation

    • On dish selection, Runner H creates a Google Doc titled Recipe – [Dish Name].
    • The document includes:
      • Full ingredient list (from the sheet)
      • Step-by-step cooking directions with sensory cues, technique explanations, and substitution tips
  4. Interactive Cooking Walkthrough

    • Presents one instruction at a time with prompts like “Ready to proceed?”.
    • Adapts in real-time based on user feedback, enabling a guided in-kitchen experience.
  5. Finalization & Email Delivery

    • Logs cooking metadata (Dish | Date | Servings | Total Time | Notes) back into the sheet.
    • Sends an email via Gmail with subject Your Recipe & Inventory: [Dish Name], body text, and links to the Google Doc and Sheet.
  6. Robust Workflow & Error Handling

    • Enforces rules such as confirmation prompts, strict dietary compliance, and step order.
    • Verifies document accessibility before emailing and retries failed operations, notifying if needed.

This workflow builds on Runner H’s proven orchestration capabilities—like automating generating Google Docs, and emailing them after execution demonstrating how Runner H can cohesively orchestrate Sheets, Docs, Gmail, and interactive logic to deliver a dynamic, end-to-end cooking assistant.

🤖 Demo

View the Demo here

Mail Screenshot
Mail Screenshot

Ingredients Google Sheet Screenshot
Ingredients Google Sheet Screenshot

Cooking Procedure Google Doc Screenshot
Cooking Procedure Google Doc Screenshot

Example visual flow:

  1. User enters categorized ingredients
  2. Sheet auto-populates with data
  3. Agent proposes 2–3 dishes; user selects one
  4. Recipe Doc populated with detailed steps
  5. Interactive cooking walkthrough with confirmation prompts
  6. Final email delivered with doc and sheet links

🔃 Workflow

  1. User Input & Inventory Logging

    • Prompt: User lists ingredients with quantities and selects cuisine, dietary restrictions, servings, and difficulty level.
    • Action: Runner H uses Google Sheets integration to:
    • Create/open a sheet named CuisineChef Inventory
    • Auto-categorize each ingredient (fruits, proteins, spices, etc.)
    • Insert a row per item: Category | Item | Quantity | Unit
    • User Feedback: “Your inventory has been saved here: [Sheet Link]”
  2. Recipe Suggestion

    • Process: Runner H analyzes available ingredients, chosen cuisine, and dietary restrictions.
    • Outcome: It recommends 2–3 recipes, noting any missing staples.
    • User Input Required: Pauses until the user selects one option.
  3. Creating the Recipe Document

    • Action: Using Docs integration, Runner H generates a Google Doc titled Recipe – [Dish Name].
    • Contents:
    • Ingredient list (sourced from the sheet)
    • Step-by-step instructions
    • Sensory cues, techniques, substitution tips
  4. Interactive Cooking Guide

    • Delivery: Instructions delivered one at a time in-chat.
    • User Confirmation: After each step, Runner H asks: “Ready to proceed?”
    • Adaptation: Adapts based on feedback (“Too spicy?”, “Sauce too thin?”).
  5. Final Logging & Metadata Capture

    • Reliability: Ensures sheet updates before proceeding, in line with Sheets + Gmail automation methods.
  6. Email Delivery

    • Email Composition: Using Gmail integration:
    • Subject: “Your Recipe & Inventory: [Dish Name]”
    • Body: Friendly message with links to both Sheet and Doc
    • Recipients: User's email
    • Automation: Follows mail‐merge style automation patterns for sending emails from sheets.
  7. Error Handling & Rules

    • Validates document accessibility before sending
    • Retries up to two times on failures
    • Notifies user via email or Slack about any errors, per your rules
    • Confirms each stage sequentially, respecting dietary restrictions and step order

This workflow demonstrates how Runner H orchestrates a multi-step, user-interactive, integrated cooking experience, leveraging structured Sheets for inventory, Docs for recipe creation, and Gmail for final delivery—following best practices in Google Workspace.

️⌨️ Prompt

You are **CuisineChef Agent** powered by Runner H.
You have access to the following tools (with my permissions):  
- **Gmail** (send access)   @tool:Gmail 
- **Google Sheets** @tool:Google sheets 
- **Google Docs** @tool:Google Docs 

**Objective:** Based on available ingredients and cuisine choice, guide the user through an interactive cooking experience.

---
STEP 1: Ask for user inputs:
1. List the ingredients you have.
2. Choose your desired cuisine style (e.g., Italian, Indian, Thai).
3. Any dietary restrictions (e.g., vegetarian, gluten-free).
4. Number of servings.
5. Preferred cooking time or difficulty level.
---
STEP 2: Categorize ingredients:
- Group items into these categories:
  - **Fruits** (e.g., apples, tomatoes) :contentReference[oaicite:1]{index=1}
  - **Vegetables** (roots, leafy, stem, seed, fruit-vegetables) :contentReference[oaicite:2]{index=2}
  - **Proteins** (meat, fish, tofu, legumes) :contentReference[oaicite:3]{index=3}
  - **Grains/Starches** (rice, pasta, bread, cereals) :contentReference[oaicite:4]{index=4}
  - **Dairy / Alternatives** (milk, cheese, plant-based milks) :contentReference[oaicite:5]{index=5}
  - **Condiments & Sauces** (oil, vinegar, ketchup, soy sauce) :contentReference[oaicite:6]{index=6}
  - **Herbs & Spices** (salt, pepper, cumin, basil) :contentReference[oaicite:7]{index=7}
  - **Oils & Fats** (olive oil, butter, coconut oil) :contentReference[oaicite:8]{index=8}
  - **Sweeteners & Preserves** (honey, jam, syrups) :contentReference[oaicite:9]{index=9}
  - **Misc/Staples** (flour, baking powder, stock) :contentReference[oaicite:10]{index=10}

- Prompt user:
   Please confirm which of these categories you have items from, and optionally list specifics for each:
- Fruits:
- Vegetables:
- Proteins:
- Grains:
- Dairy/Alternatives:
- Condiments/Sauces:
- Herbs & Spices:
- Oils/Fats:
- Sweeteners/Preserves:
- Misc staples:
---
STEP 3: Organize Inventory in Google Sheet:
**Action:**  Create or open a Sheet named `CuisineChef Inventory`
- For each provided ingredient, add a row with columns: `Category | Item 
  - Auto-categorize into Fruits, Vegetables, Proteins, etc., based on a lookup list
- Confirm back to user: “Your inventory has been saved to Sheet: [Sheet Link]”.
---
STEP 4: Analyze & Suggest Dishes:
**Action:** Match available categories + cuisine to suitable dishes.
**Ask User**
- Propose 2–3 options including what additional staples (if any) are needed.
Make sure that the user selects an option before proceeding
---
STEP 5: Once dish selected:
Once the user has selected a dish then do the following:
**Action:** Create a new Google Doc titled `"Recipe – [Dish Name]"`
- Populate it with:
  - Ingredients list along with the quantity/amount (pulling from the sheet)
  - Step-by-step cooking instructions with sensory cues and tips
  - Key techniques, substitutions, and plating suggestions
---
STEP 6: Interactive walkthrough:
**Action:** After each step, ask “Ready to proceed?”
- Allow feedback (“Too spicy?”, “Sauce too thin?”) and adapt steps.
---
STEP 7: Adaptation:
**Action:**  If a user reports an issue (“sauce too thin,” “rice undercooked”), offer real‑time solutions.
- Suggest alternate cooking methods (oven vs stovetop vs slow cooker).
---
STEP 8: Final step:
- Use Gmail integration:
  - **Email to User:**  
        - **Subject**: Your Recipe & Inventory: [Dish Name]
        - **Body**: Hi! Here are your cooking documents. Let me know if you need tweaks.
  - Attach links to both the Google Doc and the Google Sheet.
**Actions**: Send the email to the user
---
Rules:
1. **Always ask** for user confirmation before proceeding to the next cooking step.
2. **Auto-categorization** must correctly map ingredients to one of the 10 categories.
3. **Do not proceed** to recipe generation until the user has selected a dish option.
4. **Make sure** to complete each step as specified in the same order
5. **Respect dietary restrictions** strictly—no banned ingredients may appear.
6. **Ensure Sheet and Doc links** are valid and accessible before emailing.
7. **Handle errors gracefully**—if a document fails to generate or email fails, notify via Slack/Gmail summary and retry up to two times.
---
Output Format:
Your final output (after cooking) should include
Email sent: ✔
• Sheet: [Sheet Link]  
• Recipe Doc: [Doc Link]  
Cooking Summary:  
• Dish: [Name]  
• Servings: [Number]  
• Total Time: [Minutes] 
• Notes: [e.g., “Adjusted for spice level”] 

---
## Example input flow
Hi there! Let’s cook something special today. Please tell me:

1. What ingredients do you have, grouped by category:  
    Fruits:  Mango, apple
    Vegetables:  Potato, Onion
    Proteins:  Chicken, egg
    Grains:  Rice
    Dairy/Alternatives:  Paneer, Milk
    Condiments/Sauces:  Soy sauce
    Herbs & Spices:  Chilli, salt, pepper
    Oils/Fats:  vegetable oil
    Sweeteners/Preserves:  sugar 
    Misc staples: none
2. Your preferred cuisine type: Indian
3. Any dietary restrictions: None
4. Number of servings: 2
5. Desired cooking time or difficulty level: Beginner
Enter fullscreen mode Exit fullscreen mode

️⁉️ How I Used Runner H

  1. Prompt design: Piped user inputs through integrated Sheets and Docs.
  2. Sheets integration: Created/opened a sheet (CuisineChef Inventory), auto-categorized each ingredient, and logged rows under Category | Item.
  3. Recipe generation: Once a dish was chosen, Runner H generated a Google Doc titled Recipe – [Dish Name], pulling ingredient data from the sheet and embedding detailed sensory instructions, substitutions, and plating tips.
  4. Interactive mode: After each cooking step, Runner H paused, asked for confirmation (“Ready to proceed?”), and responded to feedback (“Too spicy?”, “Sauce too thin?”) with adaptive guidance.
  5. Tracking: Logged cooking metadata into the doc.
  6. Gmail integration: Automatically sent an email with subject Your Recipe & Inventory: [Dish Name], body text, and links to both the sheet and recipe doc.
  7. Error handling: Incorporated rules to ensure process flow integrity, including retries for failed writes or email sends and validation of links prior to dispatch.

👁️‍🗨️ Use Case & Impact

  • Everyday cooks & busy households: Can maximize pantry use, reduce waste, and cook confidently with live guidance.
  • Dietary-specific users: Ensures respect for restrictions (vegan, gluten-free, etc.) through automated filtering.
  • Culinary learners: Offers educational cooking with science-based sensory cues and substitutions.
  • Scalable solution: Could be extended to meal planning, nutritional analytics, shopping lists—especially useful in meal-kit services or food-waste reduction initiatives.

By automating the entire recipe writing and cooking guide process, users get structured, reliable, and interactive cooking aid delivered straight to their inbox—no manual recipe-searching required.

📱 Social Love


🙏 Thank You for Reading!

I hope you enjoyed exploring CuisineChef Agent — my AI-powered, fully automated cooking assistant built with Runner H.

If this inspired you or helped you think of ways to build your own workflow, I’d love to hear about it!

👉 Drop a comment below — I read and reply to every one!

❤️ If you found this helpful:

  • Leave a like to support the post
  • Share it with others who love cooking, automation, or AI agents
  • And follow me for more Runner H and web automation builds!

Happy building (and cooking)! 🍳✨

– Shivam Sharma


Top comments (12)

Collapse
 
neetha_kc_e40f0efa69ff22 profile image
Neetha K C

Amazing !

Collapse
 
shivamsharma1 profile image
Shivam Sharma

Thanks :)

Collapse
 
sanjanag_75422deae163 profile image
sanjanag

Seems like a great tool for day to day purpose!

Collapse
 
shivamsharma1 profile image
Shivam Sharma

Yep, pretty handy.

Collapse
 
harshith_kumar_82998fdad1 profile image
Harshith kumar

An innovative application

Collapse
 
shivamsharma1 profile image
Shivam Sharma

Thanks!

Collapse
 
xwero profile image
david duymelinck

The biggest flaw I see is that quantities are not in the inventory. How can the agent know you have enough?

Collapse
 
shivamsharma1 profile image
Shivam Sharma

Hey David, the ingredient quantities are mentioned in the final recipe Google Doc. I tried to update the Inventory sheet and add the quantities after the cooking walkthrough, but I wasn't able to.

Collapse
 
xwero profile image
david duymelinck

I was looking at the input. How can you provide missing ingredient options if you don't know the quantity?

Thread Thread
 
shivamsharma1 profile image
Shivam Sharma

Are you referring to this? Misc staples: none

Thread Thread
 
xwero profile image
david duymelinck • Edited

No

logs them into a Google Sheet named CuisineChef Inventory with columns like Category | Item.

I expect an amount and measurement column is needed to list how much more required to make a dish, if there is a shortage.

Collapse
 
muhtalhakhan profile image
Muhammad Talha Khan

That sounds quite interesting, and I would have loved to participate if I had been aware of it. 😅