workflows.schedule_job
Smart-schedule a job for a lead — auto-picks next business day, syncs to Google Calendar, generates a Calendly booking link, and sends SMS confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes to attach to the job. Optional. | |
| leadId | Yes | Lead ID. Required. | |
| durationHours | No | Job duration in hours. Default 2. | |
| preferredDate | No | ISO date string for preferred date. Optional (defaults to next business day). | |
| preferredTime | No | "morning", "afternoon", "evening" or HH:mm. Optional (defaults to 9am). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | No | ||
| success | No | ||
| calendlyLink | No | ||
| scheduledDate | No | ||
| calendarSynced | No |