# Create task

> Creates a HubSpot task for the rep who has the lead, or for a named rep.

| | |
|---|---|
| Type | `createTask` |
| Group | HubSpot |

## Exits

| Exit | Name |
|---|---|
| `next` | Next |

## Settings

| Key | Label | Takes | Default | Notes |
|---|---|---|---|---|
| `for` | For | `rep` The rep who has the lead, `named` A named rep | `rep` |  |
| `repId` | Named rep | A string: a rep's id, from list_reps. |  | Only when the task is for a named rep. |
| `subject` | Subject | A string. | `Follow up the inbound lead` | May hold fields in braces. |
| `notes` | Notes | A string. May hold several lines. |  | May hold fields in braces. |
| `dueInHours` | Due in (hours) | A number. | `24` |  |

## In a flow document

```json
{
  "id": "createTask1",
  "type": "createTask",
  "settings": {
    "for": "rep",
    "subject": "Follow up the inbound lead",
    "dueInHours": 24
  }
}
```
