Back to Autogpt

Airtable Records

docs/integrations/block-integrations/airtable/records.md

0.6.448.1 KB
Original Source

Airtable Records

<!-- MANUAL: file_description -->

Blocks for creating, reading, updating, and deleting records in Airtable tables.

<!-- END MANUAL -->

Airtable Create Records

What it is

Create records in an Airtable table

How it works

<!-- MANUAL: how_it_works -->

This block creates new records in an Airtable table using the Airtable API. Each record is specified with a fields object containing field names and values. You can create up to 10 records in a single call.

Enable typecast to automatically convert string values to appropriate field types (dates, numbers, etc.). The block returns the created records with their assigned IDs.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
base_idThe Airtable base IDstrYes
table_id_or_nameTable ID or namestrYes
recordsArray of records to create (each with 'fields' object)List[Dict[str, Any]]Yes
skip_normalizationSkip output normalization to get raw Airtable response (faster but may have missing fields)boolNo
typecastAutomatically convert string values to appropriate typesboolNo
return_fields_by_field_idReturn fields by field IDboolNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
recordsArray of created record objectsList[Dict[str, Any]]
detailsDetails of the created recordsDict[str, Any]

Possible use case

<!-- MANUAL: use_case -->

Data Import: Bulk import data from external sources into Airtable tables.

Form Submissions: Create records from form submissions or API integrations.

Workflow Output: Save workflow results or processed data to Airtable for tracking.

<!-- END MANUAL -->

Airtable Delete Records

What it is

Delete records from an Airtable table

How it works

<!-- MANUAL: how_it_works -->

This block deletes records from an Airtable table by their record IDs. You can delete up to 10 records in a single call. The operation is permanent and cannot be undone.

Provide an array of record IDs to delete. Using the table ID instead of the name is recommended for reliability.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
base_idThe Airtable base IDstrYes
table_id_or_nameTable ID or name - It's better to use the table ID instead of the namestrYes
record_idsArray of upto 10 record IDs to deleteList[str]Yes

Outputs

OutputDescriptionType
errorError message if the operation failedstr
recordsArray of deletion resultsList[Dict[str, Any]]

Possible use case

<!-- MANUAL: use_case -->

Data Cleanup: Remove outdated or duplicate records from tables.

Workflow Cleanup: Delete temporary records after processing is complete.

Batch Removal: Remove multiple records that match certain criteria.

<!-- END MANUAL -->

Airtable Get Record

What it is

Get a single record from Airtable

How it works

<!-- MANUAL: how_it_works -->

This block retrieves a single record from an Airtable table by its ID. The record includes all field values and metadata like creation time. Enable normalize_output to ensure all fields are included with proper empty values.

Optionally include field metadata for type information and configuration details about each field.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
base_idThe Airtable base IDstrYes
table_id_or_nameTable ID or namestrYes
record_idThe record ID to retrievestrYes
normalize_outputNormalize output to include all fields with proper empty values (disable to skip schema fetch and get raw Airtable response)boolNo
include_field_metadataInclude field type and configuration metadata (requires normalize_output=true)boolNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
idThe record IDstr
fieldsThe record fieldsDict[str, Any]
created_timeThe record created timestr
field_metadataField type and configuration metadata (only when include_field_metadata=true)Dict[str, Any]

Possible use case

<!-- MANUAL: use_case -->

Detail View: Fetch complete record data for display or detailed processing.

Record Lookup: Retrieve specific records by ID from webhook payloads or references.

Data Validation: Check record contents before performing updates or related operations.

<!-- END MANUAL -->

Airtable List Records

What it is

List records from an Airtable table

How it works

<!-- MANUAL: how_it_works -->

This block queries records from an Airtable table with optional filtering, sorting, and pagination. Use Airtable formulas to filter records and specify sort order by field and direction.

Results can be limited, paginated with offsets, and restricted to specific fields. Enable normalize_output for consistent field values across records.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
base_idThe Airtable base IDstrYes
table_id_or_nameTable ID or namestrYes
filter_formulaAirtable formula to filter recordsstrNo
viewView ID or name to usestrNo
sortSort configuration (array of {field, direction})List[Dict[str, Any]]No
max_recordsMaximum number of records to returnintNo
page_sizeNumber of records per page (max 100)intNo
offsetPagination offset from previous requeststrNo
return_fieldsSpecific fields to return (comma-separated)List[str]No
normalize_outputNormalize output to include all fields with proper empty values (disable to skip schema fetch and get raw Airtable response)boolNo
include_field_metadataInclude field type and configuration metadata (requires normalize_output=true)boolNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
recordsArray of record objectsList[Dict[str, Any]]
offsetOffset for next page (null if no more records)str
field_metadataField type and configuration metadata (only when include_field_metadata=true)Dict[str, Any]

Possible use case

<!-- MANUAL: use_case -->

Report Generation: Query records with filters to build reports or dashboards.

Data Export: Fetch records matching criteria for export to other systems.

Batch Processing: List records to process in subsequent workflow steps.

<!-- END MANUAL -->

Airtable Update Records

What it is

Update records in an Airtable table

How it works

<!-- MANUAL: how_it_works -->

This block updates existing records in an Airtable table. Each record update requires the record ID and a fields object with the values to update. Only specified fields are modified; other fields remain unchanged.

Enable typecast to automatically convert string values to appropriate types. You can update up to 10 records per call.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
base_idThe Airtable base IDstrYes
table_id_or_nameTable ID or name - It's better to use the table ID instead of the namestrYes
recordsArray of records to update (each with 'id' and 'fields')List[Dict[str, Any]]Yes
typecastAutomatically convert string values to appropriate typesboolNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
recordsArray of updated record objectsList[Dict[str, Any]]

Possible use case

<!-- MANUAL: use_case -->

Status Updates: Update record status fields as workflows progress.

Data Enrichment: Add computed or fetched data to existing records.

Batch Modifications: Update multiple records based on processed results.

<!-- END MANUAL -->