Integrations
Airtable

Airtable Integration

No sections found for this integration
The integration documentation may not have the expected structure

Overview

The Airtable integration in Lamatic automates data synchronization and manipulation with Airtable bases. This integration enables both trigger-based workflows that respond to Airtable automation events and action-based operations for creating, updating, and managing Airtable records, tables, and bases.

This integration connects to your Airtable account to sync and manipulate data for processing in Lamatic Flow.

Features

βœ… Key Functionalities

  • Event Trigger Support: Responds to Airtable automation events via webhook endpoints for real-time data processing.
  • Action Operations: Supports comprehensive Airtable operations including record creation, updates, field management, and base operations.
  • Multiple Action Types: Provides various actions like List Bases, Create Comment, Create Field, Create Multiple Records, Create Record, Create Table, and more.
  • Flexible Configuration: Each action type has specific parameters tailored to its functionality.
  • Real-time Processing: Processes Airtable data in real-time when triggered by automation events.
  • Comprehensive Base Management: Supports operations across multiple Airtable bases and tables.

βœ… Benefits

  • Automated Workflows: Enables automated data processing triggered by Airtable events, reducing manual effort.
  • Bidirectional Integration: Supports both reading from and writing to Airtable bases for comprehensive data management.
  • Flexible Operations: Provides multiple action types for diverse Airtable management needs.
  • Real-time Processing: Processes data immediately when Airtable automations trigger the flow.
  • Scalable Integration: Handles operations across multiple bases and tables efficiently.
  • Customizable Actions: Each action type offers specific parameters for precise control over operations.

Prerequisites

Before setting up the Airtable integration, ensure you have the following:

  • Airtable Account: Access to an Airtable account with appropriate permissions.
  • API Token: Valid Airtable API token with necessary permissions for target bases.
  • Base Access: Read/write permissions on target Airtable bases and tables.
  • Webhook Endpoint: For trigger mode, access to the flow's webhook endpoint URL.
  • Airtable Automation: For trigger mode, ability to create and configure Airtable automations.

Setup

Step 1: Set Up Airtable Credentials

Please refer to the Airtable Integration documentation (opens in a new tab) to complete the setup and obtain the necessary credentials.

Step 2: Set Up Lamatic Flow

For Trigger Node:

  1. Add Airtable Node: Drag the Airtable node to your flow as a trigger
  2. Setup Trigger In Airtable: Create automation in Airtable that triggers this flow
    1. In Airtable, go to your base and click "Automations"
    2. Create a new automation or edit an existing one
  3. Provide Script
    1. Add a "Run a script" action after your trigger
    2. Paste the script into the script editor

For Action Node:

  1. Add Airtable Node: Drag the Airtable node to your flow as an action
  2. Enter Credentials: Provide your Airtable API token
  3. Select Action: Choose the desired action type
  4. Configure Parameters: Set up action-specific parameters

Step 3: Testing

For testing, you need to manually provide test data based on your selected action type. Once deployed, the integration will automatically connect to your configured Airtable bases and tables.

Configuration Reference

Event Trigger Configuration

Airtable Automation Setup

  1. In your Airtable Automation, select a trigger when you would like to trigger this flow
  2. Define your input and use this script to send data to the webhook:
const inputconfig = input.config();
fetch("https://hooks.lamatic.ai/hook/XXXX", {
  method: "POST",
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify(inputconfig)
})
  .then(response => {
    if (!response.ok) {
      throw new Error(`HTTP error! Status: ${response.status}`);
    }
    return response.json();
  })
  .then(result => {
    console.log(result);
  })
  .catch(error => {
    console.error("Error:", error);
  });

Important Notes:

  1. Customize the inputconfig object to match your Airtable fields
  2. Test your automation before enabling it in production

Action Configuration

Configure the Airtable integration by selecting the desired action and providing the necessary parameters.

ParameterDescriptionRequiredExample
CredentialsAirtable API token for authenticationβœ…Airtable Connection
ActionAction to perform on Airtable (see available actions below)βœ…Create Record

Available Actions

1. List Bases

Retrieves all bases accessible to the authenticated user.

ParameterDescriptionRequiredExample
No additional parameters
2. Create Comment

Adds a comment to a specific record.

ParameterDescriptionRequiredExample
Base IDThe ID of the Airtable baseβœ…appXXXXXXXXXXXXXX
Table IDThe ID of the tableβœ…tblXXXXXXXXXXXXXX
Record IDThe ID of the record to comment onβœ…recXXXXXXXXXXXXXX
Comment TextThe text content of the commentβœ…This is a comment
3. Create Field

Creates a new field in a specified table.

ParameterDescriptionRequiredExample
Base IDThe ID of the Airtable baseβœ…appXXXXXXXXXXXXXX
Table IDThe ID of the tableβœ…tblXXXXXXXXXXXXXX
Field NameName of the new fieldβœ…New Field
Field TypeType of the field (text, number, date, etc.)βœ…singleLineText
4. Create Multiple Records

Creates multiple records in a specified table.

ParameterDescriptionRequiredExample
Base IDThe ID of the Airtable baseβœ…appXXXXXXXXXXXXXX
Table IDThe ID of the tableβœ…tblXXXXXXXXXXXXXX
RecordsArray of record objects with field dataβœ…[{"Name": "John"}, {"Name": "Jane"}]
5. Create Record

Creates a single record in a specified table.

ParameterDescriptionRequiredExample
Base IDThe ID of the Airtable baseβœ…appXXXXXXXXXXXXXX
Table IDThe ID of the tableβœ…tblXXXXXXXXXXXXXX
FieldsObject containing field data for the recordβœ…{"Name": "John Doe", "Email": "[email protected]"}
6. Create Table

Creates a new table in a specified base.

ParameterDescriptionRequiredExample
Base IDThe ID of the Airtable baseβœ…appXXXXXXXXXXXXXX
Table NameName of the new tableβœ…New Table
FieldsArray of field definitionsβœ…[{"name": "Name", "type": "singleLineText"}]
7. Delete Record

Deletes a specific record from a table.

ParameterDescriptionRequiredExample
Base IDThe ID of the Airtable baseβœ…appXXXXXXXXXXXXXX
Table IDThe ID of the tableβœ…tblXXXXXXXXXXXXXX
Record IDThe ID of the record to deleteβœ…recXXXXXXXXXXXXXX
8. Get Record

Retrieves a specific record from a table.

ParameterDescriptionRequiredExample
Base IDThe ID of the Airtable baseβœ…appXXXXXXXXXXXXXX
Table IDThe ID of the tableβœ…tblXXXXXXXXXXXXXX
Record IDThe ID of the record to retrieveβœ…recXXXXXXXXXXXXXX
9. List Records

Retrieves multiple records from a table with optional filtering.

ParameterDescriptionRequiredExample
Base IDThe ID of the Airtable baseβœ…appXXXXXXXXXXXXXX
Table IDThe ID of the tableβœ…tblXXXXXXXXXXXXXX
Filter FormulaAirtable filter formula (optional)❌{Status} = "Active"
Max RecordsMaximum number of records to return (optional)❌100
10. Update Record

Updates a specific record in a table.

ParameterDescriptionRequiredExample
Base IDThe ID of the Airtable baseβœ…appXXXXXXXXXXXXXX
Table IDThe ID of the tableβœ…tblXXXXXXXXXXXXXX
Record IDThe ID of the record to updateβœ…recXXXXXXXXXXXXXX
FieldsObject containing updated field dataβœ…{"Status": "Completed"}

Low-Code Example

Event Trigger Example

triggerNode:
  nodeId: triggerNode_1
  nodeType: airtableNode
  nodeName: Airtable
  values: {}
  modes: {}

Action Node Example

nodes:
  - nodeId: airtableNode_510
    nodeType: airtableNode
    nodeName: Airtable
    values:
      credentials: 'Airtable Connection'
      action: AIRTABLE_CREATE_RECORD
      baseId: 'appXXXXXXXXXXXXXX'
      tableIdOrName: 'tblXXXXXXXXXXXXXX'
      fields: '{"Name": "John Doe", "Email": "[email protected]"}'
    modes: {}
    needs:
      - triggerNode_1

Troubleshooting

Common Issues

ProblemSolution
Authentication FailedVerify Airtable API token is valid and has appropriate permissions
Base Not FoundCheck base ID and ensure the token has access to the specified base
Table Not FoundVerify table ID exists in the specified base
Record Not FoundCheck record ID and ensure it exists in the specified table
Webhook Not TriggeredVerify webhook URL is correct and Airtable automation is properly configured
Permission DeniedEnsure API token has read/write permissions for the target base and table
Field Type MismatchVerify field types match the expected format for the target table
Rate Limit ExceededImplement appropriate delays between API calls to respect Airtable rate limits

Debugging

  • Check Lamatic Flow logs for detailed error messages
  • Verify Airtable API token permissions and validity
  • Test API token using Airtable's API documentation
  • Validate base and table IDs exist and are accessible
  • Confirm webhook URL is reachable from Airtable
  • Monitor Airtable automation logs for trigger issues
  • Test with simple operations before complex workflows
  • Check Airtable API rate limits and implement appropriate delays

Best Practices

  • Use specific field names and types when creating records
  • Implement error handling for API rate limits
  • Test webhook endpoints before deploying automations
  • Use appropriate field types for data consistency
  • Regularly monitor API token permissions
  • Implement retry logic for failed API calls
  • Use filter formulas efficiently for large datasets
  • Keep record payloads within Airtable's size limits
  • Test automations with sample data before production use

Example Use Cases

Data Synchronization Workflows

  • CRM Integration: Sync customer data between Airtable and other systems
  • Project Management: Automate task creation and updates based on external events
  • Inventory Management: Update product information and stock levels
  • Lead Management: Process and route leads from various sources

Automation Workflows

  • Form Submissions: Process form data and create Airtable records
  • Email Integration: Create records from incoming emails
  • Calendar Integration: Sync events and appointments
  • Social Media Monitoring: Track mentions and create engagement records

Data Processing Workflows

  • Data Validation: Validate and clean incoming data before storage
  • Data Transformation: Transform data formats for different systems
  • Reporting: Generate reports from Airtable data
  • Backup and Archival: Automate data backup and archival processes

Additional Resources

Was this page useful?

Questions? We're here to help

Subscribe to updates