Templates / Research-to-social post generator with Perplexity AI and Facebook Graph API

Research-to-social post generator with Perplexity AI and Facebook Graph API

Needs changes

by HoangSP ✓ · 556 views · created 2025-09-17 · Social Media

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 12 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model and Facebook Graph API.

How it runs

Trigger: When a chat message arrives.

  1. ⚙️ CONFIG (Set fields) (Edit Fields (Set)): sets or maps fields
  2. LM: For Topic Agent (OpenAI Chat Model): uses OpenAI Chat Model
  3. Agent: Topic + Research (AI Agent): runs an AI agent
  4. Tool: Call Perplexity Researcher (Call n8n Workflow Tool): uses Call n8n Workflow Tool
  5. LM: For JSON Extraction (OpenAI Chat Model): uses OpenAI Chat Model
  6. Agent: Extract JSON (AI Agent): runs an AI agent
  7. Parser: Article JSON (Structured Output Parser): uses Structured Output Parser
  8. LM: For Post Writer (OpenAI Chat Model): uses OpenAI Chat Model
  9. Agent: Create Post Content (AI Agent): runs an AI agent
  10. Parser: Post Fields (Structured Output Parser): uses Structured Output Parser

…plus 1 more step. See the full node list below.

Services it uses

OpenAI Chat ModelFacebook Graph API

Before you upgrade to n8n 3.0

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

  • AI Agent v1 (old agent modes) in Agent: Topic + Research (v1.8), Agent: Extract JSON (v1.8), Agent: Create Post Content (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Agent: Topic + Research (v1.8), Agent: Extract JSON (v1.8), Agent: Create Post Content (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (7)

From the author

Who’s it for Teams that want to turn a chat prompt into a researched, ready-to-post social update—optionally published to Facebook. What it does / How it works - Chat Trigger receives the user prompt - Topic Agent optionally calls a research sub-workflow for…

Excerpt from HoangSP'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.