Code Preview
#!/usr/bin/env python3
import random
TEMPLATES = [
'Quick question about {company}',
'{name}, thought you might find this interesting',
'Idea for improving {pain_point}',
'Can we help with {goal}?',
'{name} - following up on {topic}'
]
def generate_subject(variables):
template = random.choice(TEMPLATES)
return template.format(**variables)
# Generate 10 variations
vars = {
'company': 'Acme Inc',
'name': 'John',
'pain_point': 'sales process',
'goal': 'customer retention',
'topic': 'our conversation'
}
for _ in range(10):
print(generate_subject(vars))
# Full script in download...