-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_campaign.py
More file actions
49 lines (40 loc) · 1.64 KB
/
run_campaign.py
File metadata and controls
49 lines (40 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python3
"""
Run outbound campaign with your actual CSV data.
"""
import asyncio
from linkedin_mcp_server.tools.outbound import run_full_outbound_campaign
async def run_your_campaign():
"""Run campaign with your AllCode CSV file."""
result = await run_full_outbound_campaign(
csv_file_path="AllCode account revised - from Yaman 061225 - June 23, 11_41PM.csv",
sender_name="Andreas",
sender_company="AllCode",
ccai_api_key="your-ccai-api-key", # Replace with your actual API key
# Map your CSV columns
linkedin_column="Person Linkedin Url",
name_column="First Name", # Will combine with Last Name
email_column="Email",
phone_column="Work Direct Phone",
company_column="Company",
# Templates and customization
email_template="professional",
sms_template="brief",
custom_email_message="I'd love to discuss how AllCode can help accelerate your AWS cloud initiatives.",
# Your contact info
from_email="your-email@allcode.com",
from_name="Andreas",
from_phone="+1-555-0100",
# Test with small batch first
limit=3
)
if result.get("success"):
summary = result["campaign_summary"]
print(f"✅ Campaign completed!")
print(f"📊 Contacts processed: {summary['contacts_processed']}")
print(f"📧 Emails sent: {summary['emails_sent']}")
print(f"📱 SMS sent: {summary['sms_sent']}")
else:
print(f"❌ Campaign failed: {result}")
if __name__ == "__main__":
asyncio.run(run_your_campaign())