A simple single-page application for generating AI-powered marketing emails in multiple locales.
Live Demo: https://junction.luchang.xyz
- Generate marketing emails based on campaign briefs
- Optional PDF upload for additional context
- Multi-locale support with live preview
- Iterative refinement with additional instructions
- Send generated emails to recipients
- Frontend: Vue 3, TypeScript, Vite
- Backend: n8n AI workflow with Gemini agents and GCP
- Enter Marketing Brief: Provide campaign details, target audience, and key messages
- Upload PDF (Optional): Add supporting documents if needed
- Generate Emails: Click "Generate Emails" to create variants for different locales
- Send: Enter recipient email and send all variants
This project uses a powerful backend workflow orchestrated by n8n, integrating Google's AI and communication services.
- n8n Workflow: The core logic is handled by an n8n workflow (configuration available in
n8n_config.json). - Google Gemini: We utilize the Gemini Pro model (via Google AI Studio) to generate high-quality, context-aware marketing copy and HTML email templates in multiple languages.
- Google Workspace (Gmail): The generated emails are automatically sent to the recipient using the Gmail API.
To deploy the backend:
- n8n: Import
n8n_config.jsoninto your n8n instance. - Credentials:
- Google Gemini API: Obtain an API key from Google AI Studio and configure the
googlePalmApicredential in n8n. - Gmail OAuth2: Set up a project in Google Cloud Console, enable the Gmail API, and create OAuth2 credentials. Configure the
gmailOAuth2credential in n8n.
- Google Gemini API: Obtain an API key from Google AI Studio and configure the
- Webhook: Ensure the n8n Webhook node URL matches the
GENERATE_AND_SEND_URLin the frontend code.
