Skip to content

Brendan-Whispernode/OliveOilAgent

Repository files navigation

AI Recipe Blog Generator

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.

Features

  • 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

Setup

  1. Clone the repository
  2. Install dependencies:

pip install -r requirements.txt cd image_service npm install

  1. 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:

  1. Go to preview.reve.art and log in

  2. Open Developer Tools (F12)

  3. Go to the Network tab

  4. Make any image generation

  5. Look for requests to the API

  6. Find the Authorization header and Cookie values

  7. 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

Directory Structure

  • 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

Testing

To test the image generation service:

bash cd image_service node test_reve.js

To test the recipe generation:

bash python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors