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

# Quickstart

> Create, deploy, and invoke your first Automate.ax automation.

Build an HTTP-triggered automation that returns a JSON response.

## Before you begin

* [Install Bun](https://bun.sh/docs/installation).
* [Create an Automate.ax account](https://automate.ax/login).

<Steps>
  <Step title="Create a project directory">
    ```bash theme={null}
    mkdir hello-automate
    cd hello-automate
    ```
  </Step>

  <Step title="Sign in">
    ```bash theme={null}
    bunx automate.ax login
    ```

    The CLI opens your browser to authorize the device.
  </Step>

  <Step title="Initialize the project">
    ```bash theme={null}
    bunx automate.ax init
    ```

    Select or create a project when prompted. The command installs the package and creates an example automation in `automations/example.automation.ts`.
  </Step>

  <Step title="Review the automation">
    The generated example responds to an HTTP request:

    ```ts automations/example.automation.ts theme={null}
    import { automation, onHttpRequest, respondToHttpRequest } from "automate.ax"

    export default automation("Respond to an HTTP request", () => {
      onHttpRequest({
        scope: "automation",
        waitForResponse: true,
      })

      respondToHttpRequest({
        body: JSON.stringify({ message: "Hello from Automate.ax!" }),
        headers: { "content-type": "application/json" },
      })
    })
    ```
  </Step>

  <Step title="Deploy">
    ```bash theme={null}
    bunx automate.ax deploy
    ```

    The CLI prints the URL for the deployed HTTP trigger.
  </Step>

  <Step title="Invoke the automation">
    Send a request to the URL printed by the deploy command:

    ```bash theme={null}
    curl YOUR_TRIGGER_URL
    ```

    The automation responds with:

    ```json theme={null}
    { "message": "Hello from Automate.ax!" }
    ```
  </Step>
</Steps>
