mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 07:27:57 -05:00
* update infra and remove railway
* feat(tools): add generic mail sending block/tools, updated docs script
* Revert "update infra and remove railway"
This reverts commit abfa2f8d51.
* remove message id
* updated type
167 lines
6.6 KiB
Plaintext
167 lines
6.6 KiB
Plaintext
---
|
|
title: Airtable
|
|
description: Read, create, and update Airtable
|
|
---
|
|
|
|
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
|
|
|
<BlockInfoCard
|
|
type="airtable"
|
|
color="#E0E0E0"
|
|
icon={true}
|
|
iconSvg={`<svg className="block-icon"
|
|
|
|
|
|
|
|
viewBox='0 -20.5 256 256'
|
|
version='1.1'
|
|
xmlns='http://www.w3.org/2000/svg'
|
|
xmlnsXlink='http://www.w3.org/1999/xlink'
|
|
preserveAspectRatio='xMidYMid'
|
|
>
|
|
<g>
|
|
<path
|
|
d='M114.25873,2.70101695 L18.8604023,42.1756384 C13.5552723,44.3711638 13.6102328,51.9065311 18.9486282,54.0225085 L114.746142,92.0117514 C123.163769,95.3498757 132.537419,95.3498757 140.9536,92.0117514 L236.75256,54.0225085 C242.08951,51.9065311 242.145916,44.3711638 236.83934,42.1756384 L141.442459,2.70101695 C132.738459,-0.900338983 122.961284,-0.900338983 114.25873,2.70101695'
|
|
fill='#FFBF00'
|
|
/>
|
|
<path
|
|
d='M136.349071,112.756863 L136.349071,207.659101 C136.349071,212.173089 140.900664,215.263892 145.096461,213.600615 L251.844122,172.166219 C254.281184,171.200072 255.879376,168.845451 255.879376,166.224705 L255.879376,71.3224678 C255.879376,66.8084791 251.327783,63.7176768 247.131986,65.3809537 L140.384325,106.815349 C137.94871,107.781496 136.349071,110.136118 136.349071,112.756863'
|
|
fill='#26B5F8'
|
|
/>
|
|
<path
|
|
d='M111.422771,117.65355 L79.742409,132.949912 L76.5257763,134.504714 L9.65047684,166.548104 C5.4112904,168.593211 0.000578531073,165.503855 0.000578531073,160.794612 L0.000578531073,71.7210757 C0.000578531073,70.0173017 0.874160452,68.5463864 2.04568588,67.4384994 C2.53454463,66.9481944 3.08848814,66.5446689 3.66412655,66.2250305 C5.26231864,65.2661153 7.54173107,65.0101153 9.47981017,65.7766689 L110.890522,105.957098 C116.045234,108.002206 116.450206,115.225166 111.422771,117.65355'
|
|
fill='#ED3049'
|
|
/>
|
|
<path
|
|
d='M111.422771,117.65355 L79.742409,132.949912 L2.04568588,67.4384994 C2.53454463,66.9481944 3.08848814,66.5446689 3.66412655,66.2250305 C5.26231864,65.2661153 7.54173107,65.0101153 9.47981017,65.7766689 L110.890522,105.957098 C116.045234,108.002206 116.450206,115.225166 111.422771,117.65355'
|
|
fillOpacity='0.25'
|
|
fill='#000000'
|
|
/>
|
|
</g>
|
|
</svg>`}
|
|
/>
|
|
|
|
{/* MANUAL-CONTENT-START:intro */}
|
|
[Airtable](https://airtable.com/) is a powerful cloud-based platform that combines the functionality of a database with the simplicity of a spreadsheet. It allows users to create flexible databases for organizing, storing, and collaborating on information.
|
|
|
|
With Airtable, you can:
|
|
|
|
- **Create custom databases**: Build tailored solutions for project management, content calendars, inventory tracking, and more
|
|
- **Visualize data**: View your information as a grid, kanban board, calendar, or gallery
|
|
- **Automate workflows**: Set up triggers and actions to automate repetitive tasks
|
|
- **Integrate with other tools**: Connect with hundreds of other applications through native integrations and APIs
|
|
|
|
In Sim, the Airtable integration enables your agents to interact with your Airtable bases programmatically. This allows for seamless data operations like retrieving information, creating new records, and updating existing data - all within your agent workflows. Use Airtable as a dynamic data source or destination for your agents, enabling them to access and manipulate structured information as part of their decision-making and task execution processes.
|
|
{/* MANUAL-CONTENT-END */}
|
|
|
|
|
|
## Usage Instructions
|
|
|
|
Integrates Airtable into the workflow. Can create, get, list, or update Airtable records. Requires OAuth. Can be used in trigger mode to trigger a workflow when an update is made to an Airtable table.
|
|
|
|
|
|
|
|
## Tools
|
|
|
|
### `airtable_list_records`
|
|
|
|
Read records from an Airtable table
|
|
|
|
#### Input
|
|
|
|
| Parameter | Type | Required | Description |
|
|
| --------- | ---- | -------- | ----------- |
|
|
| `baseId` | string | Yes | ID of the Airtable base |
|
|
| `tableId` | string | Yes | ID of the table |
|
|
| `maxRecords` | number | No | Maximum number of records to return |
|
|
| `filterFormula` | string | No | Formula to filter records \(e.g., "\(\{Field Name\} = \'Value\'\)"\) |
|
|
|
|
#### Output
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | ---- | ----------- |
|
|
| `records` | json | Array of retrieved Airtable records |
|
|
|
|
### `airtable_get_record`
|
|
|
|
Retrieve a single record from an Airtable table by its ID
|
|
|
|
#### Input
|
|
|
|
| Parameter | Type | Required | Description |
|
|
| --------- | ---- | -------- | ----------- |
|
|
| `baseId` | string | Yes | ID of the Airtable base |
|
|
| `tableId` | string | Yes | ID or name of the table |
|
|
| `recordId` | string | Yes | ID of the record to retrieve |
|
|
|
|
#### Output
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | ---- | ----------- |
|
|
| `record` | json | Retrieved Airtable record with id, createdTime, and fields |
|
|
| `metadata` | json | Operation metadata including record count |
|
|
|
|
### `airtable_create_records`
|
|
|
|
Write new records to an Airtable table
|
|
|
|
#### Input
|
|
|
|
| Parameter | Type | Required | Description |
|
|
| --------- | ---- | -------- | ----------- |
|
|
| `baseId` | string | Yes | ID of the Airtable base |
|
|
| `tableId` | string | Yes | ID or name of the table |
|
|
| `records` | json | Yes | Array of records to create, each with a `fields` object |
|
|
| `fields` | string | No | No description |
|
|
|
|
#### Output
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | ---- | ----------- |
|
|
| `records` | json | Array of created Airtable records |
|
|
|
|
### `airtable_update_record`
|
|
|
|
Update an existing record in an Airtable table by ID
|
|
|
|
#### Input
|
|
|
|
| Parameter | Type | Required | Description |
|
|
| --------- | ---- | -------- | ----------- |
|
|
| `baseId` | string | Yes | ID of the Airtable base |
|
|
| `tableId` | string | Yes | ID or name of the table |
|
|
| `recordId` | string | Yes | ID of the record to update |
|
|
| `fields` | json | Yes | An object containing the field names and their new values |
|
|
|
|
#### Output
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | ---- | ----------- |
|
|
| `record` | json | Updated Airtable record with id, createdTime, and fields |
|
|
| `metadata` | json | Operation metadata including record count and updated field names |
|
|
|
|
### `airtable_update_multiple_records`
|
|
|
|
Update multiple existing records in an Airtable table
|
|
|
|
#### Input
|
|
|
|
| Parameter | Type | Required | Description |
|
|
| --------- | ---- | -------- | ----------- |
|
|
| `baseId` | string | Yes | ID of the Airtable base |
|
|
| `tableId` | string | Yes | ID or name of the table |
|
|
| `records` | json | Yes | Array of records to update, each with an `id` and a `fields` object |
|
|
|
|
#### Output
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | ---- | ----------- |
|
|
| `records` | json | Array of updated Airtable records |
|
|
|
|
|
|
|
|
## Notes
|
|
|
|
- Category: `tools`
|
|
- Type: `airtable`
|