> ## 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 Notion comment

> Create a page comment or reply in an existing discussion.

`notion.createComment` create a page comment or reply in an existing discussion.

## Example

```ts automations/notion-create-comment.automation.ts theme={null}
import { automation, onSchedule } from "automate.ax"
import { notion } from "automate.ax/notion"

export default automation("Create Notion comment", () => {
  onSchedule({ schedule: "0 9 * * *" })

  notion.createComment({ parent: { page_id: "page-id" }, markdown: "Hello" })
})
```

## Inputs

Choose exactly one target (`parent` or `discussion_id`) and exactly one content form (`markdown` or `rich_text`). Attachments and display name are optional. Every input accepts a compatible signal, and an optional second argument can select a named account.

## Output

Returns the created full or partial `comment` object.

Use the returned `discussion_id` for follow-up replies.
