Airtable integration
The agent finds the next property that needs an ad, loads its buyer persona and rules, and writes the finished ad back as a new record.
A client needed fresh, rule-compliant ads for many property listings. GenAILabs built an OpenAI agent that drafts each ad for a chosen buyer persona, writes a unique headline, validates the result and saves it to Airtable.
Snapshot
Verified status, engagement and technology.
The challenge
The business context, constraints and data handling that shaped the build.
Writing a separate ad for every listing is slow, and ads that all sound the same stop working. The client also had rules each ad had to follow. They wanted an agent that writes varied ads within those rules and stores them with the property record.
So we built an agent that reads the property record and report from Airtable, drafts the ad for a buyer persona, writes a headline that differs from earlier ones, validates the ad against the rules and saves it back.
Contributions
Factual breakdown of our direct engineering contributions.
The agent finds the next property that needs an ad, loads its buyer persona and rules, and writes the finished ad back as a new record.
One prompt writes the ad from the buyer persona, the client's rules, regional rules, an example structure and the property's report.
A second prompt writes a short headline, which is compared against earlier headlines using embeddings so the same one is not reused.
A validation prompt checks the draft against the rules and the property facts and returns the final ad.
Property details are pulled from an attached PDF report and passed to the prompts, so ads match the documents.
Delivered with source code, a readme and a guide to editing each prompt and adding new variables.
System / solution
Four prompts and an Airtable connection.
property-ad-agent/
├── property_ad_generator.py main script
├── agents.py the four prompts
├── airtable_ad_manager.py Airtable reads and writes
├── utils.py PDF text, embeddings
├── requirements.txt
└── readme.txtSystem architecture
The main script asks Airtable for a property that needs an ad, then loads its buyer persona and rules. The agent drafts the ad, writes a headline and checks it against the closest existing headlines, regenerating if needed. A validation prompt produces the final ad, which is saved as a new Airtable record.
Flywheel impulse
Verified real-world deployment and support terms.
The agent was delivered as Python source code with a readme, then as an adjusted version with a fine-tuning guide after the client's testing. The guide shows where each prompt lives and how to add new variables. The client runs it with their own OpenAI and Airtable keys.
Outcomes / evidence
No usage metrics were shared. These are facts about the order and the build.
Verified evidence
Four prompt stages
Ad creation, headline creation, headline comparison and validation
Verified evidence
Embedding-based headline check
New headlines are compared to the closest existing ones before they are accepted
Verified evidence
Delivered on the agreed date
One extra day was agreed to add the embedding step, and the order completed on Aug 1, 2024
Key outcome
Property ads written to Airtable
The client can generate a validated ad and headline per property and have it stored automatically. No usage metrics were shared.
Capabilities involved
Multi-step LLM pipelines and Airtable integration.
Chaining separate prompts for drafting, headline writing, comparison and validation, each with one job.
Connecting an AI agent to Airtable and to PDF reports so it works from the client's real records.
Related work
Other client projects built by the same team.
A CrewAI agent that reviews NDAs against five weighted criteria and returns scores and a clear recommendation.
An n8n workflow that turns a Google Sheet of prospects into LinkedIn connection requests.
Let's talk
Let's discuss the problem you're trying to solve.
Talk to our teamStop experimenting and start engineering. Let's discuss how we can turn your complex requirements into a deployed solution.