Automated workflows, drip campaigns, and customer segmentation
Drag-and-drop builder
Advanced targeting
Time-based triggers
Automated sequences
X-Smsly-Key-Id: sk_live_xxxX-SMSLY-SDK-KEY: sdk_live_xxxfrom smsly import SMSly
# === DUAL KEY SECURITY ===
client = SMSly(
api_key="sk_live_xxx",
sdk_key="sdk_live_xxx"
)
# Create a marketing automation workflow
workflow = client.automation.workflow_create(
name="Welcome Series",
triggers=[{"event": "signup", "channel": "sms"}],
actions=[
{"type": "send_sms", "delay": "0h", "template": "welcome"},
{"type": "send_sms", "delay": "24h", "template": "feature_intro"},
{"type": "send_sms", "delay": "72h", "template": "first_purchase"}
]
)
print(f"Workflow ID: {workflow.id}")
# Create a customer segment
segment = client.automation.segment_create(
name="High Value Customers",
rules=[{"field": "total_spent", "operator": ">", "value": 1000}]
)/v1/automation/workflowCreate workflow/v1/automation/workflow/startStart workflow/v1/automation/segmentCreate segment/v1/automation/dripCreate drip campaign/v1/automation/workflowsList workflows