Sequences define the emails in your campaign. Each step has a subject, body, and delay (days to wait after the previous step).
from foxreach import SequenceCreate# Step 1: Initial outreach (sent immediately)step1 = client.campaigns.sequences.create(campaign.id, SequenceCreate( subject="Quick question about {{company}}", body="Hi {{firstName}},\n\nI noticed {{company}} is growing fast. We help companies like yours with cold email outreach.\n\nWould you be open to a quick chat this week?\n\nBest,\n[Your Name]", delay_days=0,))# Step 2: Follow-up (3 days later)step2 = client.campaigns.sequences.create(campaign.id, SequenceCreate( subject="Re: Quick question about {{company}}", body="Hi {{firstName}},\n\nJust following up on my last email. I know you're busy — would a 15-minute call work better?\n\nHere's a link to book time: [calendar link]\n\nCheers,\n[Your Name]", delay_days=3,))# Step 3: Final touch (5 days later)step3 = client.campaigns.sequences.create(campaign.id, SequenceCreate( subject="Last try — {{firstName}}", body="Hi {{firstName}},\n\n{I understand if this isn't a priority right now|No worries if the timing isn't right}. I'll leave the door open — feel free to reach out anytime.\n\nBest,\n[Your Name]", delay_days=5,))print(f"Added 3 sequence steps")
Use template variables like {{firstName}} and {{company}} for personalization. Use spin syntax like {option1|option2} for unique variations that improve deliverability.