Skip to content

About

Airtable Blocks extension prototype for lead intake: webhook events in, lead records out. Fits n8n, Make and Zapier lead workflows. React, Airtable Blocks SDK.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

airtable-blocks

CI License React Airtable JavaScript

Custom Airtable blocks (React) that connect a base to automation tools such as n8n, Make or Zapier.

airtable-webhook-leads

Sends the records of a table to a webhook, one request per record, so an automation can take over from there: enrich a lead, notify a channel, write to a CRM.

  • Pick the table and enter the webhook URL in the block's own settings. Nothing is hardcoded, so one build serves any base and any workflow.
  • Send records to webhook POSTs each record as flat JSON and reports how many were sent and how many failed.
  • Single-select and multiple-select values are sent as plain names, empty cells as empty strings.

Example request body:

{
  "baseId": "appXXXXXXXXXXXXXX",
  "tableId": "tblXXXXXXXXXXXXXX",
  "recordId": "recXXXXXXXXXXXXXX",
  "Name": "Ada Lovelace",
  "Status": "New",
  "Tags": ["inbound", "dach"]
}

Install

Requires Node 18+ and the Airtable Blocks CLI (npm i -g @airtable/blocks-cli).

  1. In your base, add a custom extension (Extensions → Add an extension → Build a custom extension) and note its base and block IDs.

  2. Save your API key with block set-api-key, then create airtable-webhook-leads/.block/remote.json:

    { "blockId": "blkXXXXXXXXXXXXXX", "baseId": "appXXXXXXXXXXXXXX" }
  3. Run it:

    cd airtable-webhook-leads
    npm install
    npm run lint
    block run        # develop against your base
    block release    # publish to your base

The webhook URL and table are stored in the block's configuration inside Airtable, not in this repository.

Notes

  • The block runs in the browser, so the receiving webhook has to allow cross-origin POST requests (n8n webhook nodes do by default).
  • Airtable now calls blocks extensions; this project uses the Blocks SDK 1.8 API, which Airtable still supports for existing blocks.

MIT licence. airtable-webhook-leads started from Airtable's custom-block template, which is MIT-0 licensed (see airtable-webhook-leads/LICENSE.md).

About

Airtable Blocks extension prototype for lead intake: webhook events in, lead records out. Fits n8n, Make and Zapier lead workflows. React, Airtable Blocks SDK.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages