Back to Templates 
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.
It posts the reply instantly and logs everything so you can track engagement.
Perfect for busy creators — stays active 24/7 without you lifting a finger!
| Node Name | Description | 
|---|---|
| Schedule Trigger | Triggers workflow based on traffic level (2–10 min intervals). | 
| Get Recent Posts | Fetches recent posts using Instagram Graph API. Returns post IDs needed to fetch comments. | 
| Split Posts | Splits batch of posts into individual items for parallel processing. | 
| Get Comments | For each post, retrieves comments with content, username, timestamp, like count. | 
| Split Comments | Splits comments into individual items for granular processing. | 
| Add Post Context | Combines comment + original post caption to generate relevant replies. | 
| Check if Replied | Checks if AI has already replied to this comment (prevents duplicate replies). | 
| Not Replied Yet? | Routes only unreplied comments forward. | 
| Spam Filter | Filters out spam using: <br>• Spam keywords <br>• Empty/one-word comments <br>• Excessive emojis <br>• Known spam patterns | 
| Should Reply? | Final logic gate: <br>• If reply key exists → Skip <br>• If spam → Skip <br>• Else → Proceed | 
| Generate AI Reply | Uses OpenAI (or compatible LLM): <br>• Input: Post caption + comment <br>• Tone: Friendly & engaging <br>• Max tokens: 150 <br>• Temperature: 0.8 (creative) | 
| Post Reply | Posts AI-generated reply via Instagram API: <br>• Method: POST <br>• Body: message parameter <br>• TTL: 30 days | 
| Mark As Replied | Updates internal tracking to prevent duplicate replies. | 
| Log Reply | Logs full reply details: <br>• Post ID <br>• Comment ID <br>• Username <br>• Reply text <br>• Timestamp <br>• Used for analytics & reporting | 
The bot will only reply once per comment, skip spam, and use full post context for natural responses.
pages_read_engagement, pages_manage_comments permissions.Explore More AI Workflows: https://www.oneclickitsolution.com/contact-us/