What This Workflow Does
This intelligent automation solves the common problem of deciding what to cook based on available pantry items. Instead of scrolling through endless recipes or making multiple grocery trips, users simply message their ingredients to a WhatsApp number. The system combines Gemini AI's creative recipe generation with FatSecret API's nutritional data to suggest balanced meal options.
The workflow acts as a personal cooking assistant available 24/7. It helps reduce food waste by suggesting recipes that use what you already have, while considering dietary preferences and nutritional needs. For businesses, it provides an innovative way to engage customers with personalized food recommendations.
How It Works
1. Ingredient Input via WhatsApp
Users send a list of available ingredients to a designated WhatsApp number. The message can include dietary preferences like "vegetarian" or "gluten-free" to refine suggestions.
2. AI Recipe Generation
Gemini AI analyzes the ingredients and generates multiple recipe ideas. It considers flavor combinations, cooking methods, and meal types (breakfast, lunch, dinner).
3. Nutritional Analysis
The FatSecret API evaluates each recipe's nutritional profile, providing calorie counts, macronutrient breakdowns, and potential ingredient substitutions for better balance.
4. Personalized Response
The system compiles the best 2-3 recipe options with cooking instructions and nutritional information, then sends them back via WhatsApp in an easy-to-follow format.
Who This Is For
This automation benefits home cooks who want to simplify meal planning, nutrition-conscious individuals tracking their food intake, and busy families needing quick dinner ideas. Businesses in the food industry can use it as a value-added service for customers.
Pro tip: Add a grocery list feature that suggests missing ingredients for selected recipes, creating a seamless meal planning to shopping experience.
What You'll Need
- n8n cloud account or self-hosted instance
- WhatsApp Business API access (or Twilio for WhatsApp integration)
- Google Cloud account with Gemini API enabled
- FatSecret API developer account
- Basic understanding of n8n workflows
Quick Setup Guide
- Download and import the JSON template into your n8n instance
- Configure WhatsApp webhook settings in your messaging platform
- Add your Gemini API and FatSecret API credentials to n8n
- Set dietary preference filters if needed
- Test the workflow by messaging ingredients to your WhatsApp number
Key Benefits
Reduces decision fatigue by instantly providing personalized recipe options rather than overwhelming users with endless possibilities.
Saves grocery costs by maximizing use of existing pantry items before they expire, cutting food waste by an estimated 30-40%.
Improves nutritional balance through FatSecret API's detailed analysis of each suggested meal's macronutrients and micronutrients.
24/7 availability via WhatsApp means users get cooking help whenever inspiration strikes, without downloading additional apps.
Scalable for businesses to offer as a customer engagement tool, with potential to integrate with loyalty programs or e-commerce platforms.