1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "start",
10 "leads": [{
11 "email": "jane@acmecorp.com",
12 "firstName": "Jane",
13 "companyName": "Acme Corp",
14 "servicesOffered": [
15 "SEO",
16 "PPC",
17 ],
18 "summarySnippet": "Full-service digital marketing agency specializing in performance campaigns for e-commerce brands.",
19 }],
20 "emailProvider": "smtp",
21 "smtpHost": "smtp-relay.brevo.com",
22 "smtpUser": "yourlogin@example.com",
23 "smtpPass": "your-smtp-password",
24 "apiKey": "SG.xxxxxxxxxxxxxxxxxxxx",
25 "mailgunDomain": "mail.yourdomain.com",
26 "fromName": "Jane at Acme Corp",
27 "fromEmail": "jane@acmecorp.com",
28 "unsubscribeUrl": "https://yourapp.com/unsubscribe?sid={{sequenceId}}&e={{email}}",
29 "rateLimitPerRun": 100,
30 "emailTemplate": """Hi {{firstName}},
31
32I came across {{companyName}} and was impressed by your work in {{topService}}.
33
34{{summarySnippet}}
35
36I'd love to explore how we might work together. Would you be open to a quick 15-minute call this week?
37
38Best,
39[Your name]
40
41To opt out: {{unsubscribeLink}}""",
42 "subjectLine": "Quick question for {{companyName}}",
43 "kvStoreName": "outreach-sequences",
44}
45
46
47run = client.actor("ryanclinton/outreach-sequencer").call(run_input=run_input)
48
49
50print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
51for item in client.dataset(run["defaultDatasetId"]).iterate_items():
52 print(item)
53
54