How to connect n8n and your bots

n8n is a workflow builder you can connect to axiom.ai in either direction. Trigger an n8n workflow when an axiom.ai automation runs, or trigger an automation from any n8n workflow.

Note: A subscription that includes Webhooks is required to use the Receive data from another app step or the Trigger webhook step. See pricing for details.

Trigger an n8n workflow from an automation


Use the Trigger webhook step to start an n8n workflow when your automation runs. You'll need an n8n instance.

In n8n:

An n8n Webhook node with its HTTP Method set to POST, the test and production webhook URLs at the top, Authentication None and Respond Immediately

  1. Create a new workflow.
  2. Add a trigger node and select Webhook.
  3. Set the Webhook node's HTTP Method to POST.
  4. Copy the webhook URL n8n provides. Save it for the next section.
  5. Optionally configure the webhook to accept specific data or parameters.
  6. Build out the rest of your workflow with the nodes you need.

In axiom.ai:

  1. Open your automation and add a Trigger webhook step.
  2. Set Endpoint to the webhook URL you copied from n8n.
  3. Set Payload to the data you want to send.

To test it:

  1. In n8n, click Listen for test event on the Webhook node.
  2. In axiom.ai, click Run.
  3. n8n shows the request as the node's output when the setup is correct.

Trigger an automation from an n8n workflow


You'll need:

  • API key. Find it on the API key dashboard. It goes in the request body as key, not in a header.
  • Automation name. The exact name of the automation you want to trigger.
  • Endpoint. https://lar.axiom.ai/api/v3/trigger.

In n8n:

An n8n HTTP Request node posting to the axiom.ai trigger endpoint: Authentication None, Send Body on, Body Content Type JSON, Specify Body Using JSON, and the key, name and data in the JSON field. The output shows the link to watch the run

  1. Add an HTTP Request node to your workflow.
  2. Set URL to the axiom.ai endpoint above.
  3. Set Method to POST.
  4. Turn on Send Body, set Body Content Type to JSON and Specify Body to using JSON.
  5. Paste the request body into JSON:
    {
      "key": "your-api-key",
      "name": "My automation",
      "data": [["A1", "B1"], ["A2", "B2"]]
    }
    

    key is your API key, name is the automation's exact name, and data is optional: the rows to pass into the automation, each a list of cells. The values above are dummy data; replace them with an expression from an earlier node, such as the output of a scraping node. See pass input data for the full format.

In axiom.ai:

  1. Add a Receive data from another app step at the start of your automation.

To test it:

  1. In n8n, click Execute step on the HTTP Request node.
  2. When the setup is correct, axiom.ai starts the run and returns a link to watch it live, which n8n shows as the node's output.

When the run is successful, axiom.ai returns a JSON response n8n can use in later nodes. See understanding the API response for the format. For the whole loop, scrape included, see trigger a web scraper from n8n and get the data back.

Quick starts: build from description with one click


How to trigger a scraper from n8n and get the data back. Each guide carries a Build from description button: one click opens the extension with the lines filled in and the agent builds it, or follow the steps yourself.