Description
Users are anxious about sending automated emails without seeing what the merged variables (like {{first_name}}) or AI-generated content looks like.
Steps to Reproduce
- Build a campaign.
- Click Launch.
- Notice you never see a final preview of a real email before it sends.
Expected Behavior
Add a "Preview" button in the Campaign Builder that selects a random Lead from the selected list, replaces merge tags, calls the AI generator (if applicable), and displays the resulting subject/body in a modal.
Implementation Hints
// frontend/campaign-builder.js
async function previewEmail() {
const response = await api.post(`/campaigns/${id}/preview/`, { step_id: 1 });
document.getElementById('preview-modal-body').innerText = response.data.body;
}
Description
Users are anxious about sending automated emails without seeing what the merged variables (like
{{first_name}}) or AI-generated content looks like.Steps to Reproduce
Expected Behavior
Add a "Preview" button in the Campaign Builder that selects a random Lead from the selected list, replaces merge tags, calls the AI generator (if applicable), and displays the resulting subject/body in a modal.
Implementation Hints