How to automate Tadabase with Axiom.ai

Tadabase (opens new window) allows you to built custom applications and databases to power your workflows. When combined with Axiom.ai, it's easy to send data to your Tadabase data tables and update the data as needed with their webhook systems.

# Getting started


To get started, you will need to have the following steps completed:

  1. Sign up to Tadabase.
  2. Create a new application.
  3. Create a new data table.
  4. Sign up to Tadabase's Webhook Catcher (opens new window) (using the same email as your Tadabase account).
  5. The "App ID", "API Key" and "API Secret" for the application ("Settings" → "API Keys" → "Generate New Key").

More details on how to do the steps above can be found in the Getting Started with Tadabase (opens new window) documentation.

# Working with Tadabase data in Axiom.ai


For demonstration purposes, we will be making use of a simple "users" data table throughout this guide - you will need to update any code or triggers used in this guide to your own use case and data table fields.

# Creating a new webhook


Tadabase has a great guide on how to set up your application to be ready to receive webhooks, you'll find their Incoming Webhooks (opens new window) documentation on their website. We recommend following this before continuing this guide.

You should end up with a webhook URL similar to the following: https://catcher.tadabase.io/webhook/<ID>.

You'll want to use the "Field Slug" for the fields that you wish to edit or update - you can find these by heading into the data table, then into the "Fields" tab.

# Creating a single record


To create a single record, you'll need the webhook URL that was created in the previous section. Then, in your Axiom.ai automation set up your automation as normal, once you are ready to send your data, add the following step:

  1. Add a Trigger webhook step to your automation.
  2. Add the webhook URL in the "Endpoint" field.
  3. Configure the "Payload" field based on your data table fields. See an example below.
{
    "name": "Jane Doe",
    "email": "example@axiom.ai"
}

Remember, you can use the "Insert data" button to insert data tokens from your automation, learn more in our passing data between steps documentation.

# Creating multiple records


To create multiple records, you'll need the webhook URL that was created in the previous section. You'll need to have the field mapping of your webhook set to "Multi-value Webhook" - you can edit this if it's not already set. Then, in your Axiom.ai automation set up your automation as normal, once you are ready to send your data, add the following step:

  1. Add a Trigger webhook step to your automation.
  2. Add the webhook URL in the "Endpoint" field.
  3. Configure the "Payload" field based on your data table fields. See an example below.
{
    "<MAPPING_FIELD>": [
        {
            "name": "Jane Doe",
            "email": "example@axiom.ai"
        },
        {
            "name": "John Smith",
            "email": "example@axiom.ai"
        }
    ]
}

The <MAPPING_FIELD> should correspond with the field that you inserted into the "Multi-value Webhook" field in the field mapping section of your webhook.

Remember, you can use the "Insert data" button to insert data tokens from your automation, learn more in our passing data between steps documentation.

# Updating a record


To create multiple records, you'll need the webhook URL that was created in the previous section. You'll need to edit your webhook and set the "Upon Receiving Webhook" option to "Update an Existing Record By ID" or "Update an Existing Record by Field", depending on your needs. Optionally, you can set the webhook to "create new if record not found". Set the field that the webhook should match into the input, for example, "id" set to "Dynamic".

Then, in your Axiom.ai automation set up your automation as normal, once you are ready to send your data, add the following step:

  1. Add a Trigger webhook step to your automation.
  2. Add the webhook URL in the "Endpoint" field.
  3. Configure the "Payload" field based on your data table fields. See an example below.
{
    "id": "4MXQJdrZ6v",
    "name": "John Smith"
}

Remember, you can use the "Insert data" button to insert data tokens from your automation, learn more in our passing data between steps documentation.

# Testing your workflow


To test your workflow, click "Run" in your Axiom.ai automation. Tadabase takes a few minutes to process API calls so give it a few minutes, and then head to your data table to check if your data has been added.

If your data has not been added, navigate to your webhook in the Tadabase's Webhook Catcher (opens new window) where there is a section that details failed webhook requests - review these failed requests for more information on what the error may be.

If there are errors within your automation, you'll find these in the builder, or in your run reports. Learn more about How to Debug.

# Wrapping up


Combining the automation powers of Axiom.ai with the storage options offered by Tadabase offers you an abundance of opportunities to power up your workflow. There are many use cases for this workflow, such as storing the data that your automation scrapes, and then providing it to your team using a Tadabase web application interface.

Note, it's not currently possible to use Tadabase's Outgoing Webhooks to trigger your Axiom.ai automations from changes to your data tables - it's not currently possible to customise these webhooks to include the data that Axiom.ai needs to trigger your automations. We hope that this changes in the future, but for now would recommend contacting their support team to log your feedback request.