create_task
Add a follow-up task to a Kommo lead by specifying text, due date, and optional responsible user. Each call adds a separate task.
Instructions
Create a follow-up task (type 1) attached to a lead. Not idempotent: each call creates a new task. Returns the created task. Use list_tasks to review existing tasks and add_note for non-actionable remarks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Task description shown in Kommo. | |
| lead_id | Yes | Kommo lead ID (integer). Obtain it from list_leads or from the create_lead result. | |
| due_date | Yes | Deadline as a Unix timestamp in seconds, e.g. 1767225600. | |
| responsible_user_id | No | Kommo user ID responsible for the task. Omit for the default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Task ID. | |
| text | No | Task description. | |
| _links | No | HAL links as returned by Kommo (self, next, ...). | |
| result | No | Completion result (object or array), may be empty. | |
| duration | No | Duration in seconds. | |
| group_id | No | ID of the responsible user's group. | |
| entity_id | No | ID of the entity the task is attached to. | |
| account_id | No | Kommo account ID. | |
| created_at | No | Creation time, Unix seconds. | |
| created_by | No | ID of the user who created it. | |
| updated_at | No | Last update time, Unix seconds. | |
| updated_by | No | ID of the user who last updated it. | |
| entity_type | No | Entity type, e.g. leads. | |
| is_completed | No | Whether the task is completed. | |
| task_type_id | No | Task type ID (1 is follow-up). | |
| complete_till | No | Deadline, Unix seconds. | |
| responsible_user_id | No | ID of the responsible Kommo user. |