Claude MailWizard Backend is a server that facilitates email generation using Anthropic's Claude AI. This backend is required to run locally when using the Anthropic API key for generating email responses.
Ensure you have the following installed:
- Node.js (v16 or later recommended)
- npm or yarn
- Anthropic API key (store it securely)
-
Clone the repository:
git clone https://github.com/yourusername/claude-mailwizard-be.git cd claude-mailwizard-be -
Install dependencies:
npm install # or yarn install
Start the backend server with:
npm start
# or
node index.jsIf using nodemon for development:
npm run devThe server will run on http://localhost:3000 by default.
POST /api/generate
{
"prompt": "Your input text here"
}{
"generatedEmail": "Your AI-generated email content"
}