Create outreach workflow
spur_create_workflowCreate a multi-step outreach sequence from saved templates. It's saved as an inactive draft: nothing sends until it's activated (spur_set_workflow_active) and owners are enrolled.
Send steps take a saved template: email/SMS from spur_list_message_templates (design new ones with spur_create_email_template / spur_create_sms_template), direct mail from the user's saved postcard or letter templates. Wait steps space them out. Reply/open/click branches can be added afterwards in Spur → Outreach.
Example: "text, wait 2 days, email, wait 5 days, postcard" -> steps=[{type:"send_sms",template_id:…},{type:"wait",days:2},{type:"send_email",template_id:…},{type:"wait",days:5},{type:"send_direct_mail",template_id:…}]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow name shown in Spur | |
| steps | Yes | Steps in run order: send_email / send_sms / send_direct_mail with a saved template_id, and wait steps (days, hours) between them | |
| description | No | Optional note about the workflow's goal |