Category: Automations › Social Media & Content · Best for: Social media managers · Platform: n8n · Steps: 9
What it does
Describe your post, and the AI writes a catchy caption.
This workflow automatically creates a social media post caption in an editorial plan in Airtable. It also uses background information on the target group, tonality, etc. stored in Airtable.
Works with: Airtable, OpenAI, Memory Buffer Window, Agent
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- OpenAI API key: how to connect (used by OpenAI Chat Model)
- Airtable personal access token: how to connect (used by Get Airtable Record Data, Post Caption into Airtable Record, Airtable Trigger: New Record, Background Info)
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Point these fields at your own sheets, chats and accounts:
- Get Airtable Record Data →
base: choose your own - Get Airtable Record Data →
table: choose your own - Post Caption into Airtable Record →
base: choose your own - Post Caption into Airtable Record →
table: choose your own - Background Info →
base: choose your own - Background Info →
table: choose your own
- Get Airtable Record Data →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). Airtable Trigger: New Record starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- Airtable Trigger: New Record starts the workflow (Airtable).
- OpenAI Chat Model uses AI (OpenAI).
- Window Buffer Memory uses AI (Memory Buffer Window).
- Background Info uses Airtable.
- Wait 1 Minute pauses before continuing.
- AI Agent uses AI (Agent).
- Get Airtable Record Data uses Airtable.
- Format Fields reshapes the data for the next step.
- Post Caption into Airtable Record uses Airtable to update.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
Welcome to my AI Social Media Caption Creator Workflow!
This workflow automatically creates a social media post caption in an editorial plan in Airtable. It also uses background information on the target group, tonality, etc. stored in Airtable.
This workflow has the following sequence:
- Airtable trigger (scan for new records every minute)
- Wait 1 Minute so the Airtable record creator has time to write the Briefing field
- retrieval of Airtable record data
- AI Agent to write a caption for a social media post. The agent is instructed to use background information stored in Airtable (such as target group, tonality, etc.) to create the post.
- Format the output and assign it to the correct field in Airtable.
- Post the caption into Airtable record.
The following accesses are required for the workflow:
- Airtable Database: Documentation
- AI API access (e.g. via OpenAI, Anthropic, Google or Ollama)
Example of an editorial plan in Airtable: https://airtable.com/appIXeIkDPjQefHXN/shrwcY45g48RpcvvC
For this workflow you need the Airtable fields "created_at", "Briefing" and "SoMe_Text_AI"
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method