An automated system that generates recipe blog posts using AI, featuring specialty olive oils and vinegars. The system generates recipes, creates images, and posts directly to Shopify.
- Generates unique recipes using product catalog
- Creates AI-generated recipe images
- Writes blog posts in a chef's voice
- Automatically posts to Shopify
- Stores generated content locally
- Clone the repository
- Install dependencies:
pip install -r requirements.txt cd image_service npm install
- Create a .env file with your credentials:
OPENAI_API_KEY=your_key_here SHOPIFY_ACCESS_TOKEN=your_token_here SHOPIFY_STORE_URL=your_store_url REVE_AUTH_TOKEN=your_reve_auth_token REVE_COOKIE=your_reve_cookie REVE_PROJECT_ID=your_reve_project_id
To get the REVE credentials:
-
Go to preview.reve.art and log in
-
Open Developer Tools (F12)
-
Go to the Network tab
-
Make any image generation
-
Look for requests to the API
-
Find the Authorization header and Cookie values
-
Run the services:
Start the image generation service:
bash cd image_service npm start
Start the main application (in a new terminal):
bash python main.py
- main.py # Main orchestration script generate_recipe.py # Recipe generation logic generate_image.py # Image generation using REVE post_to_blog.py # Shopify blog posting
- image_service/ # REVE image generation service
- server.js # Image service main server
- test_reve.js # Test script for image generation
- utils/ # Helper functions and configuration
To test the image generation service:
bash cd image_service node test_reve.js
To test the recipe generation:
bash python main.py