> ## 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 canvas

> Create a standalone Slack Canvas.

`slack.createCanvas` creates a Slack Canvas with optional Markdown content. Set `channelId` to add the new canvas as a channel tab; Slack requires a channel for Canvas creation on free workspaces.

## Example

```ts automations/create-slack-canvas.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"

export default automation("Create launch canvas", () => {
  onDashboardRun({ title: "Create launch canvas" })

  slack.createCanvas({
    channelId: "C01234567",
    documentContent: {
      markdown: "# Launch plan\n\nOwners and milestones.",
      type: "markdown",
    },
    title: "Launch plan",
  })
})
```

## Inputs

| Input                          | Type                                             | Required | Description                                                                  |
| ------------------------------ | ------------------------------------------------ | -------- | ---------------------------------------------------------------------------- |
| `title`                        | `string`                                         | No       | Initial canvas title.                                                        |
| `documentContent`              | `{ type: "markdown"; markdown: string }`         | No       | Initial Markdown content, up to Slack's 1 MiB limit.                         |
| `channelId`                    | `string`                                         | No       | Channel that receives a tab for the canvas. Required by Slack on free plans. |
| Second argument: `{ account }` | `string \| IntegrationAccountReference<"slack">` | No       | Slack binding.                                                               |

## Output

Returns `{ canvasId }` with the stable Slack Canvas ID.
