Automate Instagram comment replies with OpenAI and Redis tracking
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on a schedule (every day). Along the way it connects Redis and OpenAI. It also calls graph.instagram.com over HTTP.
How it runs
Trigger: On a schedule (every day).
- Get Recent Posts (HTTP Request): calls graph.instagram.com (POST)
- Split Posts (Split Out): splits a list into separate items
- Get Comments (HTTP Request): calls an HTTP API
- Add Post Context (Merge): merges the data from its input branches
- Split Comments (Split Out): splits a list into separate items
- Check If Replied (Redis): get
- Not Replied Yet? (If): checks a condition and branches into true / false
- Spam Filter (Code): runs custom JavaScript code
- Should Reply? (If): checks a condition and branches into true / false
- Generate AI Reply (OpenAI): work with chat
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: graph.instagram.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.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - Redis
n8n-nodes-base.redis - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
This workflow automatically replies to new comments on your Instagram posts using smart AI. It checks your recent posts, finds unread comments, and skips spam or duplicates. The AI reads the post and comments to create a friendly, natural reply with emojis.…