Skip to main content
This first automation uses an HTTP trigger so you can deploy and test it without connecting an external account.

Create the project

Start in an empty directory and sign in to Automate.ax:
Initialize the Automate.ax project:
Follow the prompts to choose an organization and name the project. Automate.ax adds the package, configuration, and an example automation.

Write the automation

Open automations/example.automation.ts and replace it with:
automations/example.automation.ts
  • automation gives the automation a name.
  • onHttpRequest creates the web endpoint that starts it.
  • respondToHttpRequest sends a response back to the caller.
  • t builds a string from values that arrive when the automation runs.
The request arrives as a signal. Passing request.requestId addresses the response to that exact request and makes Automate.ax wait for it automatically.

Deploy it

Typecheck the project:
Deploy the project:
Automate.ax publishes the automation and prints its HTTP trigger URL. It also saves the deployment details in .automate/deployment.md.

Run it

Read the HTTP trigger URL from the deployment manifest and call it:
You receive a response like:

Connect integrations