Latenode

Automatically like fresh Instagram posts with AI-powered targeting

This Latenode automation template helps social media managers and brands maintain an active and engaged presence on Instagram by automatically liking fresh posts on selected hashtags.

The workflow uses a rotating set of Instagram session cookies, AI-powered hashtag generation, and Phantombuster web scraping to streamline the process, reducing the need for manual intervention. The scheduled trigger runs every 2 hours, selecting a random cookie and generating relevant hashtags to target new posts, then automatically liking them. The solution integrates with Instagram, Phantombuster, Microsoft SharePoint, and OpenAI to provide a comprehensive automation experience.

Updated Apr 6, 2026Est. run: 26sEst. cost: $0.0703
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how credits work →
Social media

Workflow preview

What this template does

  • Automates the process of liking fresh Instagram posts based on selected hashtags
  • Leverages a rotating set of Instagram session cookies to manage account security and limits
  • Utilizes AI-powered hashtag generation to target relevant content
  • Integrates Phantombuster for web scraping and automation, OpenAI for intelligent targeting
  • Tracks liked posts and interactions in a Microsoft SharePoint repository

How it works

1
Trigger

Schedule Trigger

The automation runs on a scheduled trigger every 2 hours. This trigger initiates the workflow to maintain an active and engaged Instagram presence.

2
Action

Get Available Session Cookies

The workflow fetches a set of Instagram session cookies from a Microsoft SharePoint Online location. These cookies are used to interact with the Instagram API throughout the automation.

3
Action

Extract Cookies

The fetched cookies are parsed and a random cookie is selected from the available set to use for the current automation run.

4
AI

Generate Random Hashtag

An AI-powered GPT-4 model is used to generate a set of relevant hashtags to target fresh Instagram posts.

5
Action

Get Hashtag Agent

A Phantombuster agent is configured to scrape Instagram posts using the generated hashtags.

6
Action

Launch Agent

The Phantombuster agent is executed to scrape the latest Instagram posts matching the generated hashtags.

7
Action

Get Posts

The scraped Instagram post data is retrieved from Phantombuster.

8
Action

Get Response

The full response from the Phantombuster scrape is fetched and processed.

9
Action

Get Random Post

A random post is selected from the Phantombuster scrape response for liking.

10
Action

Download file

The data for the selected Instagram post is downloaded from Phantombuster.

11
Action

Extract from File

Relevant data is extracted from the downloaded post file, such as the post's ID and other metadata.

12
Logic

Check if in List

The workflow checks if the selected post has already been liked in a previous run by comparing it to a list of previously liked posts stored in Microsoft SharePoint.

13
Logic

If

If the post has not yet been liked, the automation proceeds to like the post.

14
Action

Prepare Updated Data

The data for the newly liked post is formatted for updating the list of previously liked posts stored in Microsoft SharePoint.

15
Action

Convert to File

The updated liked posts data is converted to a file format suitable for uploading to Microsoft SharePoint.

16
Action

Update file

The updated liked posts list is uploaded to the designated Microsoft SharePoint location.

17
Action

Create CSV Binary

A CSV file is created from the updated liked posts data.

18
Action

Upload CSV

The CSV file is uploaded to Microsoft SharePoint, providing a backup of the liked posts data.

19
Action

Get Autoliking Agent

A Phantombuster agent is configured to automatically like the selected Instagram post.

20
Action

Launch AL Agent

The Phantombuster autoliking agent is executed to like the selected Instagram post.

21
Action

Wait

The workflow waits for the autoliking agent to complete before finishing the automation run.

Setup guide

1

Add Instagram Business credential

1. Go to the Latenode Credentials panel. 2. Add a new credential and select 'Instagram for Business'. 3. Provide your Instagram business account's API credentials (Client ID, Client Secret, Access Token). 4. Save the credential.

2

Configure Phantombuster agent settings

1. In the Latenode visual builder, add a Phantombuster node. 2. Select the Phantombuster credential you created earlier. 3. Configure the agent settings, such as the specific Phantombuster agent you want to use and any required input parameters. 4. Map any necessary data fields between the Phantombuster agent and your workflow.

3

Set up OpenAI integration

1. Go to the Latenode Credentials panel. 2. Add a new credential and select 'OpenAI GPT Assistants'. 3. Provide your OpenAI API key. 4. Save the credential. 5. In the Latenode visual builder, add an OpenAI GPT Assistant node. 6. Select the OpenAI credential you created earlier. 7. Configure the node's settings, such as the model to use and any prompt templates.

4

Connect to Microsoft SharePoint

1. Go to the Latenode Credentials panel. 2. Add a new credential and select 'Microsoft SharePoint Online'. 3. Provide your SharePoint account credentials (username and password). 4. Save the credential. 5. In the Latenode visual builder, add a Microsoft SharePoint node. 6. Select the SharePoint credential you created earlier. 7. Configure the node's settings, such as the SharePoint site, list, or library you want to interact with.

5

Configure scheduled trigger

1. In the Latenode visual builder, add a Schedule Trigger node. 2. Set the trigger to run every 2 hours at a specified minute. 3. Save the configuration.

Requirements

Set up an Instagram for Business account with the necessary permissions for API access and automated interactions
Obtain OpenAI API key for GPT-4o-powered hashtag generation
Connect to Phantombuster API and configure web scraping parameters, including rotating Instagram session cookies
Integrate with Microsoft SharePoint Online to store and manage the rotating set of Instagram session cookies

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →
Social media

Automate your sales outreach with Apify, GPT-4o, and WhatsApp

This automated workflow streamlines the sales cold calling process by integrating web scraping, natural language processing, and WhatsApp messaging. It leverages Apify to extract lead data from social media and web sources, generates personalized sales scripts using GPT-4o, and sends automated outreach messages via WhatsApp to connect with potential customers. The workflow is designed for sales teams looking to optimize their cold calling pipeline and increase productivity by automating repetitive tasks.

26s$0.0703
Social media

Automatically sync LinkedIn lead gen form data to Google Sheets

This automation solution is designed to help marketers and sales teams efficiently capture and track new lead generation form responses from LinkedIn Ads. The automation will automatically transfer the lead details, such as name, email, and other relevant information, into a centralized Google Sheets spreadsheet. This provides a unified view of all incoming leads, allowing for better organization, analysis, and follow-up. By streamlining the lead capture process, users can focus on nurturing and converting these potential customers, rather than manually managing multiple data sources.

25s$0
Social media

Automatically sync TikTok lead data to a Google Sheets spreadsheet

This automation template helps social media marketers and advertisers automatically capture new lead data generated through TikTok's Lead Generation feature and append it as a new row or worksheet within a designated Google Sheets spreadsheet. The automation triggers when a new lead is submitted on TikTok, extracts the lead data, and then adds it to the specified Google Sheets file, streamlining the process of managing and organizing leads from this social media platform.

25s$0