The moment it happens
Import a CSV file into Airtable
Send a link to a CSV and every row is added to your table, with an email telling you how many.
- Runs
- The moment it happens
- Apps
- Airtable
- AI
- Not needed
- Access
- data.records:write
Send this to your assistant
Create a ClickRuntime automation: give me a link where I can send a CSV file URL. Add every row to my Airtable Products table and email me how many were added.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Airtable has its own CSV import, but it is a manual step in the browser, and it works on whole tables at once. Anyone who regularly receives spreadsheets from a supplier, a conference scanner, a former CRM or a client's accountant ends up uploading the same kind of file over and over, matching the columns by hand each time and hoping nothing is duplicated. When a large file is involved, the browser upload times out or someone forgets to run it.
You send the link to a CSV, and the automation downloads it, maps the columns to your table's fields and creates the records in batches of 10, which is the number the Airtable API accepts per request. When it finishes, you get an email with the number of rows created, so you know the import completed.
It suits operations teams, event organizers and finance staff who receive recurring data files.
What you get out of it
Imports no longer depend on a person at a computer
Send the link from your phone or from another tool, and the rows appear in Airtable. The file does not wait for someone to be at their desk with the right browser tab open.
Column mapping is the same every time
Once the mapping from CSV headers to Airtable fields is set, each file is treated identically. That removes the mismatches and mispasted columns that corrupt data when it is done by hand.
Large files are handled in batches
Airtable accepts ten records per request. Splitting the work into batches means a file with several thousand rows is imported steadily, instead of failing halfway through as a browser upload might.
You get a count to check against
The confirmation email reports how many records were created. If the file had 1,200 rows and the email says 1,200, you know it worked, and a mismatch tells you to investigate.
Data from other tools becomes easy to bring in
Any system that can export or host a CSV can feed your base: a payments report, a survey export, a newsletter list. Airtable stays the one place where everything is combined.
Less risk of duplicate or lost rows
A defined process runs the same way each time, so you avoid the uploading of the same file twice or the accidental skipping of the last page of data. A repeatable import keeps your table clean.
How it works
What happens, step by step
When you send ClickRuntime a link to a CSV file, the automation downloads it.
It matches each column in the file to a field in your Airtable table.
Every row is added to the table, ten at a time.
You get an email saying how many rows were added, for example "248 of 248 rows added".
Before it runs live
- Connect Airtable
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Airtable steps into one automation
Under the hood
The code that runs this automation
import csv, io
from clickruntime import on_event, credentials, http, notify
BASE_ID = "appXXXXXXXXXXXXXX"
COLUMNS = {"name": "Name", "sku": "SKU", "price": "Price", "stock": "Stock"}
@on_event
def handle(event):
csv_url = (event.json or {}).get("csv_url")
rows = list(csv.DictReader(io.StringIO(http.get(csv_url).text)))
records = [{"fields": {COLUMNS[k]: v for k, v in row.items() if k in COLUMNS and v}} for row in rows]
headers = {"Authorization": f"Bearer {credentials.connection('airtable', 'work')}"}
added = 0
for i in range(0, len(records), 10):
resp = http.post(f"https://api.airtable.com/v0/{BASE_ID}/Products", headers=headers,
json={"typecast": True, "records": records[i:i + 10]})
resp.raise_for_status()
added += len(resp.json()["records"])
notify.email_me(f"CSV import: {added} products added", f"{added} of {len(rows)} rows added from {csv_url}")
return {"added": added}FAQ
Common questions
Where must the CSV be hosted?
What happens with rows that do not match my field types?
Can it update existing records instead of adding new ones?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Save form submissions to Airtable
Every submission lands as a record in your table, and returning people update their existing record instead of creating a new one.
See how it worksDelete a person's records on request
Send an email address and every record about that person is deleted, logged and confirmed to you.
See how it worksScreen new job applications in Airtable
Each applicant is scored against the job and sorted into shortlist, maybe or reject, and you get an email about the shortlisted ones.
See how it worksKeep exploring
Set up “Import a CSV file into Airtable” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.