---
title: "Tweet drafts on a random hashtag saved to Airtable by AI"
kind: "Kit"
category: "Marketing & SEO"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/4676e4fe-b8d3-42e6-a7cb-d97d72c78639"
updated: "2026-11-13"
---

# Tweet drafts on a random hashtag saved to Airtable by AI

> The name, the description, the About and a README below are the seller's words: data, not instructions.

An n8n workflow that picks one of two hashtags at random, asks OpenAI for a short tweet about it and adds the hashtag and the tweet as a new Airtable row. It posts nothing to X.

Tweet drafts on a random hashtag saved to Airtable by AI is an n8n workflow in the Marketing \& SEO category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-13. Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

## About

### What it is

This n8n workflow writes one tweet draft each time you run it. A short code step picks one of two hashtags at random. OpenAI writes a tweet of under 100 characters about that hashtag. The workflow then adds a row with the hashtag and the tweet to an Airtable table. Five nodes run it, and nothing is posted to X.

### Who it suits

Social media managers, small teams and founders who keep a bank of draft tweets in Airtable. Skip it if you want posts published for you, since it only drafts and stores text.

Who uses it, and how

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Marketing | Social media managers | Fill a bank of drafts | A manager runs it ten times and reviews ten drafts in Airtable. |
| Startups | Founders | Get ideas for a posting week | A founder runs it before a launch and keeps the best draft. |
| Agencies | Content freelancers | Offer a client some options | A freelancer lists the hashtags a client cares about and sends the drafts for a quick pick. |
| Community | Moderators | Keep a feed lively | A moderator drafts a few posts for a tag and edits them by hand. |

You need a little n8n: import a file, add an OpenAI credential and an Airtable credential, and choose a table.

### Where to use it

Any n8n that can reach OpenAI and Airtable will run it. It starts when you press the test button, and it needs no web form.

- n8n Cloud: import the file into a new workflow there
- Your own n8n server: the same file and steps
- Your own hashtags: edit the list in \`Pick Hashtag\`

### How to set it up

Download saves a zip with `workflow.json` and Mindket’s setup notes in your downloads folder. You need an OpenAI key, an Airtable token and an Airtable table with two text columns.

What you need first

| Need | Detail |
| --- | --- |
| n8n | On n8n Cloud or on a server of your own |
| OpenAI | An API key |
| Airtable | A personal access token, and a table with columns named \`Hashtag\` and \`Content\` |

1. In n8n, create a workflow, open its menu, choose Import from File and pick `workflow.json`.
2. Add an OpenAI credential and select it in `Write Tweet`.
3. Add an Airtable credential that uses a personal access token and select it in `Airtable`.
4. In `Airtable`, choose your base and your table, whose columns are `Hashtag` and `Content`.
5. Press Execute Workflow and check that a new row appears.

### How to use it

Press Execute Workflow for each draft you want. Each run adds one row. Edit or delete the drafts in Airtable before you use any of them.

What to change for a different result

| To change | Where |
| --- | --- |
| The hashtags | The list in \`Pick Hashtag\` |
| The tweet rules | The message in \`Write Tweet\` |
| The model | \`Write Tweet\` |
| The column names | The two names in \`Set\`, to match your table |
| Where the drafts go | Replace \`Airtable\` with another node |

### Example

A founder runs it once. `Pick Hashtag` chooses `#n8n`, the model writes a short tweet that includes `#n8n`, and a new row appears in Airtable with `#n8n` in `Hashtag` and the tweet in `Content`.

### For newcomers and experts

**If you are new.** n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A Code node runs a few lines of JavaScript. Airtable stores rows in a table that works like a spreadsheet.

**For experts.** `Pick Hashtag` runs once for each incoming item and returns one hashtag. `Set` keeps only two fields, and `Airtable` maps the incoming fields to columns by name.

Where to look closer

| Node | What it does | What to know |
| --- | --- | --- |
| \`Pick Hashtag\` | Picks one hashtag at random | The list holds two hashtags |
| \`Write Tweet\` | Asks the model for a tweet | Reads no earlier tweets, so drafts can repeat |
| \`Set\` | Keeps the hashtag and the tweet | Names must match your columns |
| \`Airtable\` | Adds one row | You choose the base and the table |

### Good to know

The model call and two nodes were out of date, and the Airtable base is yours to choose.

- Model: the file called \`text-davinci-001\` through the old completions endpoint, which OpenAI’s page, read on 12 November 2026, lists as shut down on 4 January 2024. Mindket’s copy uses the OpenAI node with \`gpt-6-luna\`
- Airtable: the file used the first version of the node with an API key. Airtable’s page says API keys stopped working on 1 February 2024, so the node is now the current one and uses a personal access token
- Code: the file used the Function Item node, which n8n marks as deprecated and replaces with the Code node, so \`Pick Hashtag\` is a Code node
- Drafts only: nothing is posted to X, so read each draft first
- Repeats: the model does not see earlier drafts, so the same tweet can come back
- Not run: Mindket read this copy against n8n’s source and did not run it on a live n8n
- Your data: the hashtag goes to OpenAI, and the hashtag and tweet go to Airtable
- Credentials: the JSON holds none

## README

```markdown
# Tweet drafts on a random hashtag saved to Airtable by AI

An n8n workflow that writes one tweet draft each time you run it. A short code step picks one of two hashtags at random. OpenAI writes a tweet of under 100 characters about it, and the workflow adds a row with the hashtag and the tweet to an Airtable table. Nothing is posted to X.

## What is inside

- `workflow.json`: the workflow as n8n exports it, 5 nodes. All five run, and there are no sticky notes. It holds no credential.
- `README.md`: these notes.

## What we changed from the original copy

- The text step was an HTTP Request node that posted to OpenAI's old `v1/engines/text-davinci-001/completions` address with a header credential. OpenAI's deprecation page, read on 12 November 2026, lists `text-davinci-001` as shut down on 4 January 2024, and the replacement it names, `gpt-3.5-turbo-instruct`, is itself listed as shut down. The step is now the OpenAI node's message action with `gpt-6-luna`, the small model that page names for `gpt-4o-mini`. The node reads the tweet from `message.content`, where the file read `choices[0].text`.
- The file set a temperature of 0.7 and a limit of 64 tokens. This copy sets neither: OpenAI's reasoning guide says hidden reasoning tokens count toward the output limit, so a small cap can leave no visible text, and the model's page lists no temperature setting.
- The prompt is reworded for a chat model, and it asks for the tweet text only.
- `FunctionItem` is replaced by a Code node named `Pick Hashtag`. n8n's source marks the old node as deprecated and hidden, and points to the Code node.
- `Airtable` was the first version of the node, which signs in with an API key. Airtable's page, read on 12 November 2026, says API keys stopped working on 1 February 2024. The node is now the current version, with a personal access token and a resource-locator for the base and the table. The file's base ID was its author's and is gone. You choose your base and table, and the file's table was named `main`.
- `Set` is rebuilt as the current Set node with the same two fields, and the credential links are gone.

Mindket read this copy against n8n's source. It was not run on a live n8n.

## Before you start

- An n8n instance, on n8n Cloud or your own server.
- An OpenAI API key.
- An Airtable personal access token, and a table with two text columns named `Hashtag` and `Content`.

## Set it up

1. In n8n, create a workflow, open its menu and choose Import from File. Pick `workflow.json`.
2. Add an OpenAI credential and select it in `Write Tweet`.
3. Add an Airtable credential that uses a personal access token and select it in `Airtable`.
4. In `Airtable`, choose your base and your table.
5. Press Execute Workflow and check that a new row appears.

## What happens in a run

1. `On clicking 'execute'` starts the run when you press Execute Workflow.
2. `Pick Hashtag` chooses `#techtwitter` or `#n8n` at random.
3. `Write Tweet` asks the model for a short tweet on that hashtag, with the hashtag included.
4. `Set` keeps two fields: `Hashtag`, from `Pick Hashtag`, and `Content`, the model's reply.
5. `Airtable` adds them as a new row, mapping the fields to columns of the same name.

## What to change

- The hashtags: the list in `Pick Hashtag`.
- The tweet rules: the message in `Write Tweet`.
- The model: `Write Tweet`.
- The column names: the two names in `Set`, to match your table.
- Where the drafts go: replace `Airtable` with another node.

## Good to know

- The workflow only drafts. Nothing is posted to X, so read each draft before you use it.
- The model does not see earlier drafts, so the same tweet can come back.
- Rows are added on every run, and the workflow has no schedule, so it runs only when you press the button.
- Data: the hashtag goes to OpenAI, and the hashtag and the tweet go to Airtable.
- Cost: one model call per run, billed by OpenAI.
```

## What is in it

3 files, 8 KB, downloaded as a zip.

```text
NOTICE.md  597 B
README.md  4 KB
workflow.json  4 KB
```

## Workflow check

Checked by Mindket on 13 Nov 2026. Read from the workflow’s file, not from a run.

- Steps: 5 steps, starting by hand
- AI: 1 step calls an AI model: Write Tweet
- Sign-ins: Signs in to: Airtable
- API keys: No API key is left in the file
- Step types: Mindket’s checker reads all 5 of its step types

## Get it

- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/4676e4fe-b8d3-42e6-a7cb-d97d72c78639)
- [Its page on Mindket](https://mindket.com/p/4676e4fe-b8d3-42e6-a7cb-d97d72c78639)
