A simple Flask application that uses Anthropic's Claude AI to review and improve event invitation drafts.
- Web interface for submitting draft invitations
- Integration with Claude AI for intelligent review and suggestions
- Improved version of the invitation provided by Claude AI
- Python 3.8 or higher
- Anthropic API key (Claude AI)
-
Clone this repository:
git clone https://github.com/yourusername/invitation-reviewer.git cd invitation-reviewer -
Create a virtual environment and activate it:
python -m venv venv # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate -
Install the required packages:
pip install -r requirements.txt -
Set your Anthropic API key by either:
a) Creating a
.envfile in the project root with the following content:ANTHROPIC_API_KEY=your-api-key-hereb) Setting it as an environment variable:
# On Windows set ANTHROPIC_API_KEY=your-api-key-here # On macOS/Linux export ANTHROPIC_API_KEY=your-api-key-here
invitation-reviewer/
│
├── app.py # Main Flask application with modular design
├── requirements.txt # Project dependencies
├── README.md # This file
├── .env.example # Example environment variables file
└── templates/
└── index.html # HTML template for the web interface
-
Make sure you have set your Anthropic API key as described in the Installation section.
-
Run the Flask application:
python app.py -
Open your web browser and navigate to
http://127.0.0.1:5000/ -
Paste your draft invitation into the form and click "Analyze with Claude AI" to receive suggestions for improvement.
-
Make sure you have set your Anthropic API key as described in the Installation section.
-
Build and run the docker container:
docker build . -t invite-review
docker run -p 5000:5000 invite-review-
Open your web browser and navigate to
http://127.0.0.1:5000/ -
Paste your draft invitation into the form and click "Analyze with Claude AI" to receive suggestions for improvement.
If you want to change how Claude evaluates the invitations, you can modify the SYSTEM_PROMPT variable in app.py. This allows you to customize the instructions given to Claude AI.
This project is licensed under the MIT License - see the LICENSE file for details.