> For the complete documentation index, see [llms.txt](https://docs.usestencil.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usestencil.com/integrations/airtable-integration/airtable-integration-basic.md).

# Basic

With Airtable integration, it allows images to be generated from data pulled from Airtable. Generated images are automatically populated back into Airtable.

### Requirements

* Airtable's Base ID
* Airtable's Table name
* Airtable's API Key

{% hint style="info" %}
You can get base ID for your airtable project by going to their documentation site
{% endhint %}

### 1. Set up your project with Airtable API Key

Go to project's setting page and paste your Airtable API Key.

![](/files/-MavUYNWKc0XVJsXR3a4)

### 2. Create Airtable integration action

Go to your project and go to the Console page for the template that you would like to generate the image.

![Select Airtable Integration](/files/-MavVHgsunCMiwRrcaj0)

Then, create New Action.

### 3. Map the column in Airtable to your template&#x20;

Fill in the requested information in Step 1 and Step 2. You need Airtable's Base ID and Table name to complete this step.

Then, match the column name in your Airtable table to your template.

![](/files/-MavWADYU7JMTkgBZF5y)

{% hint style="info" %}
For image modification, we support Airtable's field for URL, Text and Attachments.\
\
For multiple attachments, the first attachment will be used as the source of the image. We only support mime types `image/jpeg` and `image/png`.
{% endhint %}

![The difference between Attachment and URL/Text in Airtable](/files/-MfxOKE_AgjWjM1nxfHo)

![Attachment Type](/files/-MfxO_qWwTGqbzBe8gCz)

![URL Type](/files/-MfxOiCatMK99s_-NUjM)

### 4. Set the output column

Fill in the column name in Airtable that will be populated with your image. This column must be of type `Attachment`.&#x20;

Save your changes when you're done.

{% hint style="warning" %}
**The type of the column must be `Attachment`.**

Both PNG and JPEG images will be attached to the column.
{% endhint %}

### 5. Run your action

![](/files/-MavWuaAmXWklWM_KHxW)

Click on Run Action to start generating images. You can safely close the browser as the process is run in the background.&#x20;

Once they are done, you can view the generated images in Airtable. Both PNG and JPEG are uploaded to Airtable.&#x20;

{% hint style="warning" %}
Images are only generated for empty output column. If they already contain data, no images are generated for those particular rows.
{% endhint %}

### Example process

{% embed url="<https://www.usestencil.com/statics/videos/airtable-integration.mp4>" %}
