Automated Instagram commenting on selected profiles with GPT-4o and Phantombuster
Ready for 3.0What this workflow does
This AI workflow has 31 nodes and runs on a schedule (every 2 hours). Along the way it connects OpenAI Chat Model, Microsoft SharePoint and Phantombuster. It also calls api.phantombuster.com over HTTP.
How it runs
Trigger: On a schedule (every 2 hours).
- Get Available Session Cookies (Microsoft SharePoint): uses Microsoft SharePoint
- Extract Cookies (Extract from File): extracts data from a file (text)
- Select Cookie (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Set ENV Variables (Edit Fields (Set)): sets 3 fields: ENV_SESSION_COOKIE, ENV_COMMENT_PROMPT, ENV_COMMENT_LANGUAGE
- Get Profile Extractor Agent (Phantombuster): get
- Get List of Accounts (Microsoft SharePoint): update
- Launch Agent (Phantombuster): uses Phantombuster
- Wait: waits 30 seconds
- HTTP Request: calls api.phantombuster.com
- HTTP Request: calls an HTTP API
…plus 18 more steps. See the full node list below.
Services it uses
Other OpenAI + Phantombuster templates (19) · Other OpenAI + Microsoft SharePoint templates (15) · Other Phantombuster + Microsoft SharePoint templates (10)
HTTP calls to: api.phantombuster.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Microsoft SharePoint
n8n-nodes-base.microsoftSharePoint - Phantombuster
n8n-nodes-base.phantombuster - Edit Fields (Set)
n8n-nodes-base.set - Schedule Trigger
n8n-nodes-base.scheduleTrigger - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - Convert to File
n8n-nodes-base.convertToFile - HTTP Request
n8n-nodes-base.httpRequest
From the author
Who’s it for Influencers and social-media teams who want to comment automatically on posts from selected Instagram profiles—scaling engagement while staying within platform limits. How it works / What it does 1. Schedule Trigger runs every 2 h. 2. Profile…