> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Salesloft: Tasks Create

> Create a Salesloft task (call, email or general) for a person, with a subject, due date and reminder. Includes SDK V2 examples, schemas, and cost.

Create a Salesloft task (call, email or general) for a person, with a subject, due date and reminder.

> [!NOTE]
>
> Tool ID: `salesloft_tasks_create`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'salesloft_tasks_create',
  {
    "subject": "Introduction",
    "person_id": "person_123",
    "user_id": 123
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run salesloft_tasks_create --input '{
  "subject": "Introduction",
  "person_id": "person_123",
  "user_id": 123
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "id": 123,
    "created_at": "2026-01-15T12:00:00Z",
    "updated_at": "2026-01-15T12:00:00Z"
  }
}
```

Use `deepline describe salesloft_tasks_create --json` for the latest machine-readable contract.

## Input reference

Creates a task.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.subject` | `string` | No | — | Subject line of the task. |
| `payload.person_id` | `string` | No | — | ID of the person to be contacted |
| `payload.user_id` | `integer` | No | — | ID of the user linked to the task. Defaults to the authenticated user. |
| `payload.user_guid` | `string` | No | — | Guid of the user linked to the task. Defaults to the authenticated user. |
| `payload.task_type` | `string` | No | — | Task type, valid options are: call, email, general |
| `payload.due_date` | `string` | No | — | Date of when the Task is due, ISO-8601 date format required |
| `payload.remind_at` | `string` | No | — | Datetime of when the user will be reminded of the task, ISO-8601 datetime format required |
| `payload.idempotency_key` | `string` | No | — | Establishes a unique identifier to prevent duplicates from being created |
| `payload.description` | `string` | No | — | A description of the task recorded for person at completion time |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Creates a task.",
    "properties": {
      "subject": {
        "type": "string",
        "description": "Subject line of the task."
      },
      "person_id": {
        "type": "string",
        "description": "ID of the person to be contacted"
      },
      "user_id": {
        "type": "integer",
        "description": "ID of the user linked to the task. Defaults to the authenticated user."
      },
      "user_guid": {
        "type": "string",
        "description": "Guid of the user linked to the task. Defaults to the authenticated user."
      },
      "task_type": {
        "type": "string",
        "description": "Task type, valid options are: call, email, general"
      },
      "due_date": {
        "type": "string",
        "description": "Date of when the Task is due, ISO-8601 date format required"
      },
      "remind_at": {
        "type": "string",
        "description": "Datetime of when the user will be reminded of the task, ISO-8601 datetime format required"
      },
      "idempotency_key": {
        "type": "string",
        "description": "Establishes a unique identifier to prevent duplicates from being created"
      },
      "description": {
        "type": "string",
        "description": "A description of the task recorded for person at completion time"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `integer` | No | — | ID of Task |
| `result.data.created_at` | `string` | No | — | Datetime of when the Task was created Format: `date-time`. |
| `result.data.updated_at` | `string` | No | — | Datetime of when the Task was last updated Format: `date-time`. |
| `result.data.description` | `string` | No | — | A description of the task recorded for person at completion time |
| `result.data.due_date` | `string` | No | — | Date of when the Task is due, ISO-8601 date format required Format: `date`. |
| `result.data.due_at` | `string` | No | — | Datetime of when the Task is due, can be null. ISO-8601 datetime format required Format: `date-time`. |
| `result.data.subject` | `string` | No | — | Subject line of the task |
| `result.data.current_state` | `string` | No | — | The state of the task. Valid states are: scheduled, completed |
| `result.data.person` | `object` | No | — | The person to be contacted |
| `result.data.person.id` | `integer` | No | — | — |
| `result.data.person._href` | `string` | No | — | — |
| `result.data.opportunity` | `object` | No | — | The opportunity associated with task |
| `result.data.opportunity.id` | `integer` | No | — | — |
| `result.data.opportunity._href` | `string` | No | — | — |
| `result.data.user` | `object` | No | — | User who is assigned the task |
| `result.data.user.id` | `integer` | No | — | — |
| `result.data.user._href` | `string` | No | — | — |
| `result.data.created_by_user` | `object` | No | — | User who created the task |
| `result.data.created_by_user.id` | `integer` | No | — | — |
| `result.data.created_by_user._href` | `string` | No | — | — |
| `result.data.task_type` | `string` | No | — | The type of the task. Valid types are: call, email, general |
| `result.data.remind_at` | `string` | No | — | Datetime of when the user will be reminded of the task, ISO-8601 datetime format required Format: `date-time`. |
| `result.data.expires_after` | `string` | No | — | Datetime of when the the task will expire, ISO-8601 datetime format required Format: `date-time`. |
| `result.data.completed_at` | `string` | No | — | Datetime of when the task was completed, ISO-8601 datetime format required Format: `date-time`. |
| `result.data.completed_by` | `object` | No | — | User who completed the task |
| `result.data.completed_by.id` | `integer` | No | — | — |
| `result.data.completed_by._href` | `string` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID of Task"
          },
          "created_at": {
            "type": "string",
            "description": "Datetime of when the Task was created",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "description": "Datetime of when the Task was last updated",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "description": "A description of the task recorded for person at completion time"
          },
          "due_date": {
            "type": "string",
            "description": "Date of when the Task is due, ISO-8601 date format required",
            "format": "date"
          },
          "due_at": {
            "type": "string",
            "description": "Datetime of when the Task is due, can be null. ISO-8601 datetime format required",
            "format": "date-time"
          },
          "subject": {
            "type": "string",
            "description": "Subject line of the task"
          },
          "current_state": {
            "type": "string",
            "description": "The state of the task. Valid states are: scheduled, completed"
          },
          "person": {
            "type": "object",
            "description": "The person to be contacted",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "opportunity": {
            "type": "object",
            "description": "The opportunity associated with task",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "user": {
            "type": "object",
            "description": "User who is assigned the task",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "created_by_user": {
            "type": "object",
            "description": "User who created the task",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "task_type": {
            "type": "string",
            "description": "The type of the task. Valid types are: call, email, general"
          },
          "remind_at": {
            "type": "string",
            "description": "Datetime of when the user will be reminded of the task, ISO-8601 datetime format required",
            "format": "date-time"
          },
          "expires_after": {
            "type": "string",
            "description": "Datetime of when the the task will expire, ISO-8601 datetime format required",
            "format": "date-time"
          },
          "completed_at": {
            "type": "string",
            "description": "Datetime of when the task was completed, ISO-8601 datetime format required",
            "format": "date-time"
          },
          "completed_by": {
            "type": "object",
            "description": "User who completed the task",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.