Trigger a desktop run from Make and post the data back

How to trigger a desktop run from Make and post the data back: install the Chrome extension, click Build from description, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.

Here is how the automation works. To trigger a desktop run from Make, post to https://lar.axiom.ai/api/v5/desktop-trigger from an HTTP: Make a request module with your API key and the automation's name. The run starts in the axiom.ai desktop app on your own network, so your data stays on hardware you control, and a Trigger webhook step at the end posts what it scraped back to a second Make scenario.

Author
Alex Barlow
Published

Build the desktop run from a description


Describe it and click the button: the agent builds and tests the scraper in your Chrome extension. The desktop trigger needs a Pro plan or above, see pricing, and your API key from Authentication.

  1. Go to the page I give you
  2. Scrape the values I want from it
  3. Post what was scraped to my Make webhook
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

Have the desktop app installed, running and logged in to the same account, a Make account, and the exact name of the automation, which is case-sensitive and whitespace-sensitive. The desktop trigger takes no input data, so the automation holds its own target URL; the data array the cloud trigger endpoint accepts is not available here.

The video shows the agent building the desktop run Make starts from the three lines above, in a few minutes.

Build the desktop run step by step


The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.

  • 1.0 Get data from a URL
    • URL: the page you want to scrape
    • Select: the values you want from it
  • 2.0 Trigger webhook
    • Endpoint: your Make custom webhook address
    • Payload: [scrape-data]

Common questions about triggering a desktop run from Make


How do I route the automation to the desktop app?

Save the automation, click the Cog icon in the toolbar on the left, open the Run via API on desktop section under Run options, and turn on Route webhook triggers to desktop. Until it is on, the endpoint rejects the call with Desktop webhook not enabled for this task. See automation settings for the rest of the run options.

How do I catch the results in a Make scenario?

In Make, create a new scenario, add the Webhooks module and choose Custom webhook; click Add, give the webhook a name, save it and click Copy address to clipboard. Make then waits for data so it can work out the structure. That address goes in Endpoint on the Trigger webhook step. When a run finishes, the scenario shows Successfully determined and the scraped data appears in the webhook module's output, ready for whatever modules you add after it: a spreadsheet row, a database record, a Slack message.

How do I start the desktop run from Make?

The scenario that queues the run can start from anything Make offers: a schedule, a new row in a sheet, a form submission, another app. After its trigger module, add an HTTP module with Make a request, set URL to https://lar.axiom.ai/api/v5/desktop-trigger, Method to POST, Body type to Raw and Content type to JSON (application/json); Make sends the matching header for you. Paste this into Request content, with your own key and automation name:

{
  "key": "your-api-key-here",
  "taskName": "My First Automation"
}

The same call in cURL, useful for checking the key and name before you put them in Make:

curl -s -X POST https://lar.axiom.ai/api/v5/desktop-trigger -H "Content-Type: application/json" -d '{"key":"your-api-key-here","taskName":"My First Automation"}'

A successful call returns a 202 and { "queued": true }. Queued means the desktop app has a run waiting, not that the run has started. If the app is not running when the call lands, the run starts as soon as the app is next online, as long as that happens within 24 hours. After that the trigger expires. Authentication on this endpoint is body-only: send key in the JSON body, since the X-API-KEY and Authorization: Bearer headers used elsewhere in the API do not work here.

Why does the desktop trigger answer with an error?

The error text names the cause; find it in the table.

ResponseWhat it means
Unable to authenticate, you must send an API key.key is missing from the request body, or the body never arrived as JSON. Check Body type is Raw and Content type is JSON (application/json) on the HTTP module.
Unable to authenticate, please check your API key and try again.key does not match an active API key. Generate a new one in the Dashboard.
Missing task name, you must send the name of the task that you wish to trigger.taskName is missing from the request body. The cloud trigger endpoint calls this field name, so check you have not carried that habit over.
404, taskName not foundThe name does not match an automation in your account. Copy it straight from the Dashboard, since a stray space or capital is enough to break it.
Desktop webhook not enabled for this taskThe Route webhook triggers to desktop switch is off for this automation.
Triggering automations through the API is not included in the Starter plan. Upgrade to Pro or higher.The account is on the Starter plan. Triggering needs Pro or higher.
An HTML page rather than JSONThe URL points at a host that does not serve this endpoint. Check the URL.

How do I check a desktop run's status from Make?

You cannot; there is no endpoint for checking a desktop run's status from outside the desktop app. Check the run history in the Dashboard or in the desktop app itself. For the full endpoint reference, see trigger a desktop run.

Can the Make scenario run the scrape in the cloud instead?

Yes, and the cloud trigger accepts input data. See post scraped data from a bot to Make and trigger a web scraper from Make.

What can a desktop run do that the cloud cannot?

Read a local file, drive a desktop app, or reach an internal site, all on your own machine. One HTTP module and one webhook module give you a local run that any Make scenario can start, with the results landing back in Make a few seconds later. When a run fails, hand it to the agent and it repairs the step.

Can I trigger a desktop run from Make on a schedule?

Yes. Make's own schedule trigger starts the scenario that holds the HTTP module, so the desktop run is queued at each interval and runs as long as the desktop app is online within 24 hours of the call.

Can I trigger a desktop run from Zapier instead of Make?

Yes. See trigger a desktop run from Zapier.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community.

Related guides