AUTMATE

Your agent’s toolkit for integration and automation.

Tell your agent what to automate. It writes the TypeScript and deploys it, and Automate.ax detects which accounts it needs. All you do is approve them.

Start now with a coding agent.

Copy one prompt and paste it into your agent.

Agents love Automate.ax

You
Keep #product up to date when a Linear issue changes. Wait for updates to settle so we don’t spam Slack.
Agent
Okay, one sec!
issue-updates.automation.ts
import { automation, t } from "automate.ax"
import { linear } from "automate.ax/linear"
import { slack } from "automate.ax/slack"

export default automation("Sync issues", () => {
  const issue = linear
    .onIssueUpdated()
    .keyBy(issue => issue.id)
    .debounce("5m")

  slack.sendMessage({
    conversation: "#product",
    text: t`${issue.identifier}:
      ${issue.title}
      ${issue.state.name}`,
  })
})
Each change to the issue sends an event and restarts a five-minute debounce. Once updates settle, the latest values post to Slack.

What your agent gets

  1. 01

    Simple and secure access to integrations

    When your agent deploys, Automate.ax detects every account its automations need and prompts you to approve them on one page, each with a few clicks or a pasted API key. Automate.ax handles authentication, scopes access, and keeps credentials out of your code. Connect multiple accounts from the same service.
    forward-personal-mail.automation.ts
    import { automation, t } from "automate.ax"
    import { gmail, googleAccount } from "automate.ax/gmail"
    
    const personal = googleAccount("personal")
    
    export default automation("Forward personal mail", () => {
      const email = gmail.onNewEmail({ account: personal })
    
      gmail.forwardMessage(
        { messageId: email.messageId, to: "zach@acme.com" },
        { account: personal },
      )
    
      // uses "default"
      gmail.sendEmail({
        to: "zach@acme.com",
        subject: t`Forwarded: ${email.subject}`,
        text: "Sent from my work account.",
      })
    })
    View all integrations
  2. 02

    Built-in AI, email, and web scraping; no API keys required

    Every account comes with an allowance for AI (any model available on Vercel AI Gateway), email sending/receiving, and web scraping. You can get started with essential automations without hooking up providers.
    research-new-leads.automation.ts
    import {
      automation,
      generate,
      onHttpRequest,
      scrapeWeb,
      sendEmail,
      t,
    } from "automate.ax"
    import { z } from "zod"
    
    export default automation("Research new leads", () => {
      const lead = onHttpRequest({
        body: z.object({ email: z.string(), website: z.string() }),
      })
    
      // Renders the page in a managed browser, as Markdown
      const site = scrapeWeb({ url: lead.body.website })
    
      // Platform AI, no provider account to connect
      const brief = generate({
        prompt: t`Summarize this company and how we could help:\n${site}`,
      })
    
      // Emails every member of your organization
      sendEmail({
        to: "*",
        subject: t`New lead: ${lead.body.email}`,
        markdown: brief.output,
      })
    })
  3. 03

    Powerful orchestration with a fluent TypeScript API

    Correlate matching triggers, even if they fire days apart. Debounce bursts, delay work, run on a schedule, batch, and branch. Automate.ax remembers your workflow’s state and resumes exactly where execution left off.

    A payment in Stripe and a booking in Cal.com, days apart. correlate joins them by email and runs once both have happened.

    kickoff-ready.automation.ts
    import { automation, correlate, t } from "automate.ax"
    import { calcom } from "automate.ax/calcom"
    import { slack } from "automate.ax/slack"
    import { stripe } from "automate.ax/stripe"
    
    export default automation("Kickoff ready", () => {
      const paid = stripe
        .onCheckoutSessionCompleted()
        .keyBy((event) => event.data.object.customerDetails?.email ?? "")
      const booked = calcom
        .onBookingCreated()
        .keyBy((booking) => booking.payload.attendees[0]?.email ?? "")
    
      // Joins them by email, in either order, up to 14 days apart
      correlate([paid, booked], { occurrenceTtl: "14d" })
    
      slack.sendMessage({
        conversation: "#onboarding",
        text: t`${booked.payload.title}: paid and booked.`,
      })
    })
  4. 04

    Every run, queryable by your agent

    The CLI syncs a private, local PostgreSQL copy of your execution data: every trigger event, action output, error, and log. Your agent searches it, queries it with SQL, and keeps it live while it tests, so it sees what every step of every run returned.
    Terminal
    # Copy your runs into a local PostgreSQL database
    bunx automate.ax data sync --since 30d
    
    # Keep it current while you test
    bunx automate.ax data follow
    
    # Search runs, actions, logs, and outputs
    bunx automate.ax search "invalid_grant"
    
    # Or ask anything in SQL
    bunx automate.ax query --file steps.sql
    steps.sql
    -- Every step of the last day's runs, with what it returned
    SELECT
      runs.automation_identity_key AS automation,
      actions.name AS step,
      actions.status,
      actions.output,
      actions.error
    FROM automate.root_contexts AS runs
    JOIN automate.context_descendants AS family
      ON family.context_id = runs.id
    JOIN automate.actions
      ON actions.context_id = family.descendant_context_id
    WHERE runs.created_at > now() - interval '1 day'
    ORDER BY runs.created_at, actions.created_at

Get started

Ready when you are.

Give your coding agent a prompt and let it build your next automation with Automate.ax.

Using https://docs.automate.ax/llms.txt, build, deploy, and test this automation: [describe what you want].

Or get help from automation experts