Templates / OpenAI-powered tweet generator

OpenAI-powered tweet generator

Needs changes

by Gareth Roll · 4,872 views · created 2022-03-14 · Content Creation, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function Item (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 5 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Airtable. It also calls api.openai.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Function Item: runs custom JavaScript per item (legacy Function Item node)
  2. HTTP Request: calls api.openai.com
  3. Set (Edit Fields (Set)): sets or maps fields
  4. Airtable: append

Services it uses

Airtable

HTTP calls to: api.openai.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function Item (legacy) in FunctionItem: replace with Code node, mode 'Run Once for Each Item'.
Removed in 3.0Replace with
Function Item (legacy)
FunctionItem
Code node, mode 'Run Once for Each Item'

Nodes used (5)

From the author

This workflow uses OpenAI to generate tweets to be stored in Airtable for review. A JS snippet handles the topics to be tweeted about in the form of hashtags.

Excerpt from Gareth Roll's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.