Create record
create_recordCreate a built-in or custom record with object_type + data; relationships take ids; built-ins use typed domain logic. Custom owners default to the caller; set display_field (usually name) for propose_updates matching. Sequence plans save atomically and never send. Touches record confirmed work; reuse captured source_touch_id or request_id + occurred_at. For lead/task, data.request_id (UUID) durably deduplicates retries; changed data conflicts. Task due: use due_at with the person's UTC offset and due_has_time:true for a stated time; a bare date is date-only. Returns the record. See data for sequence and activity fields.
When to use: Create built-in or custom records with object_type + data using the same domain logic.
Example: Add a partner 'Globex' with tier gold.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | New fields as key → value; relationships take target UUIDs; built-ins accept typed create fields. sequence: ordered steps [{title,brief,channel,day_offset}] + request_id UUID save the whole plan. timing_mode: from_start or after_previous; offsets stay cumulative; optional skip_weekends, pause_on_reply. Briefs accept CRM {{field}} tokens; preview with get_context(contact,sequence_brief). touch: source_touch_id reuses captured work, else request_id + occurred_at; sequence_action:{enrollment_id,step,outcome?,follow_up_on?} tracks confirmed work. Attempts and connection requests hold the step and require a follow-up date; not_now pauses; accepted/completed advance; retry pending tracking unchanged. | |
| owner_id | No | A uuid. | |
| request_id | No | Retry key: a client-generated UUID. Repeating a call with the same request_id and arguments within 24h replays the earlier result instead of creating a second record. For touch and sequence, put request_id inside data instead so the record itself stores it. | |
| object_type | Yes | Object key, e.g. account, contact, opportunity, task, touch, or a custom object's key; an unknown key returns the workspace's valid types instead of creating. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| record | No | ||
| result | No | ||
| created | No | ||
| object_type | No | ||
| custom_field_definitions | No |