How to use a webhook to pass data into Axiom.ai

You can externally trigger and pass data into an automation using a webhook. Learn more about the Axiom.ai API and how to obtain your API key here. If you need a template to post data from Zapier to an automation, click here.

# How to start from scratch


It is recommended that you build and test your automation with dummy data before connecting to the webhook. To begin, click "New Automation" and then "Add first step". Ensure Axiom.ai is open on the webpage with the form.

# Start with a "Receive data from another app" step


This step receives the data and returns a token ("[webhook-data-1]") for use in subsequent steps:

How
  1. Open the step finder, search for "Receive", and add the step.
  2. Toggle "Test data" on and insert some test data in a 2D array format, like [[“Row 1 colA”, “Row 1 colB”, “Row 1 colC”], [“Row 2 colA”, “Row 2 colB”, “Row 2 colC”]].

# Add a "Go to page" step


This step loads the web app you wish to interact with.

How
  1. Search for "Go", add the step, and select "[webhook-data-1]" to pass a URL from the "Receive" step.

# Build out the rest of your automation


Use the step finder to add further steps, You can insert data passed in via the webhook using 'Insert Data' and selecting the correct token which will be [webhook-data] to pass data as needed.

# Test with dummy data


Run your automation to ensure everything works with dummy data. Remember, failed runs do not count against your usage.

# Setting up your POST request


You'll need your API key to trigger automations. Send a POST request to https://lar.axiom.ai/api/v3/trigger with your API token, the automation's name, and the data as a 2D array.

Example:

{
    "key": "1jf8SSbf73gfa",
    "name": "My Axiom",
    "data": [["A1", "B1", "C1"], ["A2", "B2", "C2"]]
}

# Ready to go live


When your automation is ready, switch to live data. Learn more about our API and rate limits here.