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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create task

> Create an Apollo task for one saved contact.

`createTask` creates a scheduled, completed, or skipped task assigned to an
Apollo user.

```ts automations/create-apollo-task.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { createTask } from "automate.ax/apollo"

export default automation("Create an Apollo call task", () => {
  onHttpRequest({ scope: "automation" })
  createTask({
    contact: "ada@example.com",
    user: "seller@example.com",
    type: "call",
    dueAt: new Date("2026-08-06T17:00:00Z"),
    title: "Call Ada",
  })
})
```

Required inputs are `contact`, `user`, `type`, and `dueAt: Date | ISO string`.
Types include `action_item`, `call`, LinkedIn step variants, and
`outreach_manual_email`. `priority` defaults to `"medium"`; `status` defaults to
`"scheduled"`; `title` and `note` are optional. Optional `account` selects the
binding. Returns the created `ApolloTask`.
