Templates / Engage with relevant Instagram posts using OpenAI and Postgres

Engage with relevant Instagram posts using OpenAI and Postgres

Ready for 3.0

by Deepesh Kumar Jain ✓ · 19 views · created 2026-08-11 · Social Media, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 23 nodes and runs on a schedule (every day at 15:00). Along the way it connects Postgres and OpenAI. It also calls api30.unipile.com:16038 over HTTP.

How it runs

Trigger: On a schedule (every day at 15:00).

  1. Get Influencer Data (Postgres): select
  2. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Fetch_Influencer_Post (HTTP Request): calls an HTTP API
  4. formatPost (Code): runs custom JavaScript code
  5. hasTodayPost (If): checks a condition and branches into true / false
  6. checkPostRelevancyText (OpenAI): uses OpenAI
  7. GetImage (HTTP Request): calls an HTTP API
  8. Merge: merges the data from its input branches
  9. CheckImageRelevancy (OpenAI): analyze (image)
  10. format_Relevancy (Code): runs custom JavaScript code

…plus 12 more steps. See the full node list below.

Services it uses

PostgresOpenAI

HTTP calls to: api30.unipile.com:16038

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Quick overview This scheduled workflow pulls Instagram influencers from Postgres, fetches each creator’s latest post via Unipile, evaluates caption and image relevance with OpenAI, and—when qualified—generates and publishes a like and comment through Unipile…

Excerpt from Deepesh Kumar Jain'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.