replay

code Python verified Free Download devices Cross-platform

code Code Preview

Python
#!/usr/bin/env python3
"""
Follow-up Email Generator
Generate multi-step email sequences
"""
from datetime import datetime, timedelta

FOLLOWUP_TEMPLATES = {
    1: {
        'delay_days': 3,
        'subject': 'Quick follow-up: {original_subject}',
        'body': '''Hi {name},

I wanted to follow up on my previous email about {topic}.

{value_prop}

Would you have 15 minutes this week for a quick call?

Best,
{sender_name}'''
    },
    2: {
        'delay_days': 5,
        'subject': 'Still interested in {topic}?',
        'body': '''Hi {name},

I know you're busy, so I'll keep this short.

{pain_point}

{solution}

Worth a conversation?

{sender_name}'''
    },
    3: {
        'delay_days': 7,
        'subject': 'Final thought on {topic}',
        'body': '''Hi {name},

I'll assume now isn't the right time.

If things change, here's a quick resource: {resource_link}

Feel free to reach out when you're ready.

Best,
{sender_name}'''
    }
}

def generate_sequence(variables, start_date=None):
    """Generate complete follow-up sequence"""
    if start_date is None:
        start_date = datetime.now()

    sequence = []
    for step, template in FOLLOWUP_TEMPLATES.items():
        send_date = start_date + timedelta(days=template['delay_days'])
        email = {
            'step': step,
            'send_date': send_date,
            'subject': template['subject'].format(**variables),
            'body': template['body'].format(**variables)
        }
        sequence.append(email)

    return sequence

if __name__ == '__main__':
    vars = {'name': 'John', 'topic': 'email automation',
            'sender_name': 'Alex', 'original_subject': 'Quick question'}
    for email in generate_sequence(vars):
        print(f"Step {email['step']}: {email['subject']}")

info About This Tool

The Follow-up Email Generator creates multi-step email sequences with optimized timing and messaging. Increase response rates with persistent but professional outreach.

Key Features

  • 3-Step Sequences - Proven structure for cold outreach
  • Optimized Timing - Days 3, 5, 7 spacing for best results
  • Personalization - Dynamic variable replacement
  • Graceful Exit - Professional breakup email included
  • Calendar Integration - Calculates send dates automatically

Sequence Structure

  • Email 1 (Day 3) - Gentle bump, restate value
  • Email 2 (Day 5) - Address pain points directly
  • Email 3 (Day 7) - Breakup email with resource

Requirements

  • Python 3.7+
  • No external dependencies

Pro Tip: The 3-email sequence converts 70% better than single emails. Always follow up!

download Download Script

Need Full Automation?

Try Postigo for automated email campaigns with AI personalization

rocket_launch Start Free Trial