close.createTask create a lead or outgoing-call Close task.
automations/close-create-task.automation.ts
Inputs
Fortype: "lead", provide leadId and non-empty text. For type: "outgoing_call", provide leadId and contactId. Optional fields include assignment, dates, completion, priority (high or medium), and dateless state. Optional second argument { account } selects a named Close binding.
Output
Returns the createdCloseTask. Close reports outgoing-call webhook events under the task.outbound_call event subtype.