How to trigger Axiom.ai automations using IFTTT
IFTTT (opens new window) offers a wide range of connections to various services, learn how to start using IFTTT automations to trigger your Axiom.ai automations and power-up your workflow with access to new services.
This guide assumes that you already have an automation set up, want to create a trigger using IFTTT, and have an Axiom.ai plan that supports webhooks (see pricing). Some features of IFTTT (opens new window) may require a subscription.
# Getting started
To get started, you will need the following from the Axiom.ai Chrome extension:
- API key - Your personal API key can be found in the extension dashboard.
- Automation name - The name of the automation you wish to trigger.
- Endpoint - The current Axiom.ai endpoint is
https://lar.axiom.ai/api/v3/trigger.
# Trigger an Axiom.ai automation with IFTTT
Learn how to trigger an Axiom.ai automation from IFTTT by making use of webhooks.
- Create IFTTT applet - Head to ifttt.com (opens new window) and click "create".
- Trigger - IFTTT offer a wide range of triggers for your automations. For this guide we will use "Date & Time" for simplicity.
- Action(s) - To trigger your Axiom.ai automation, select "Webhooks" as an action.
- Configure - Configure the "webhooks" action.
Configure the "webhooks" action:
- URL - The current endpoint is
https://lar.axiom.ai/api/v3/trigger. - Method - Set to
POST. - Content Type - Set to
application/json. - Request body - This should be set per our API | Triggering an automation documentation.
# Trigger an IFTTT applet with an Axiom.ai automation
Learn how to trigger an IFTTT applet from an Axiom.ai automation.
- Create IFTTT applet - Head to ifttt.com (opens new window) and click "create".
- Trigger - Select the "receive a web request with a JSON payload" trigger, and set an event name.
- Action(s) - Select the action(s) that you would like your IFTTT flow to take.
- Save - Once saved, you will then be given a webhook URL, save this for later.
Now head over to your Axiom.ai automation
- Trigger a webhook - Add the "trigger a webhook" step to your automation, towards the end of your automation is often best.
- Set Endpoint - In the "endpoint" field, insert the URL from step 4.
- Define payload - (Optional) If you're sending data to IFTTT, define a JSON payload in the "payload" field.
Example payload:
{
"organisation": "Axiom.ai",
"address": "123 Coast Road",
"phone": "xxx-xxx-xxxx"
}
# Testing your workflow
To test the triggering of your Axiom.ai automation from an IFTTT applet, simply run the flow from IFTTT and then check the run reports in Axiom.ai to confirm that the automation has run. If there is no run report present, this could either mean that there was an error in IFTTT, or the automation has yet to run.
To test the triggering of your IFTTT applet, simply click run within your Axiom.ai automation and then observe the actions that the IFTTT applet makes - for example, if it writes to a Google Sheet, check the Google Sheet that is connected.
# Examples
There are plenty of use cases that this can be applied to, below are some examples.
# Trigger Axiom.ai automation when an Airtable database is updated
To get started, you'll need to ensure that you have your Airtable account connected to IFTTT. To do so, add the Airtable action/trigger to an automation and follow the instructions. See IFTTTs documentation: Airtable Integrations (opens new window) for more information.
- Create IFTTT applet - Head to ifttt.com (opens new window) and click "create".
- Trigger - Select the "Airtable" trigger.
- Action(s) - Add the "Webhooks" action. To configure this action, see Trigger an Axiom.ai automation with IFTTT.
- Test - Add a new entry to your Airtable table, give it a moment, and then check "run reports" in your Axiom.ai extension.
Need to post data to Airtable using Axiom? Check out our guide on how to post data to airtable.
# Automatically create a new Notion page with IFTTT and Axiom.ai
To get started, you'll need to ensure that you have your Notion account connected to IFTTT. To do so, add the Notion action/trigger to an automation and follow the instructions. For this example, we are going to be making a company directory with an Axiom.ai automation that sends company data to IFTTT to be filed in Notion.so.
- Create IFTTT applet - Head to ifttt.com (opens new window) and click "create".
- Trigger - Select the "receive a web request with a JSON payload" trigger, and set an event name.
- Action(s) - Search "Notion" and select "create a page".
- Configure - Configure the action(s) as required, you'll need to set values for the page title and content - this can be dummy content for the time being.
- Add a filter code - To make use of the
JsonPayloadobject that is created by the webhook trigger, a filter code will need to be added. See the code below for more details. This can be modified for use with other services. - Set up your Axiom - Add a "Trigger webhook" step to your automation to use when sending data to IFTTT.
- Test - Click "run" on your automation with some test data then check the activity within your IFTTT applet to confirm it ran as expected.
To set up a filter code that changes the Notion.so page name and inserts data into the page, follow the code below. You'll need to switch out with the data that you are sending to the webhook.
// Parse the payload to be able to be used within your applet.
let payload = JSON.parse(MakerWebhooks.jsonEvent.JsonPayload)
// Set the title based on the first value within the payload
NotionSo.createNewPage.setPageTitle(payload.organisation)
// Set the page content
NotionSo.createNewPage.setPageBody(`Organisation: ${payload.organisation}\nAddress: ${payload.address}\nPhone: ${payload.phone}`)
To set up your Axiom.ai automation, you'll need to add a trigger webhook step. You'll need to save your IFTTT applet and grab the webhook URL. It should have the following format: https://maker.ifttt.com/trigger/<EVENT_NAME>/json/with/key/<ID>. You'll need to then format your payload as JSON, in our example, we used the following:
{
"organisation": "Axiom.ai",
"address": "123 Coast Road",
"phone": "xxx-xxx-xxxx"
}
# Wrapping up
Being able to trigger your IFTTT applets with an Axiom.ai automation, or vice verse, can be super powerful. IFTTT offers a wide range of connections that can be used to power up your Axiom.ai automations. IFTTT also offers mobile applications that could be used to trigger your Axiom.ai automations, making your automations much more portable.
Information correct as of October 2024. Updated to any platform mentioned my change or render this process obsolete.