Automate Instagram posts from a Google Sheet


How to automate Instagram posts from a Google Sheet: install the Chrome extension, click Build with Browser agent, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.

Here is how the automation works. To automate Instagram posts from a Google Sheet, read the posts with Read data from a Google Sheet, loop through them, and for each row open Instagram, click Create, attach the image with Upload a file, write the caption with Enter text, and click Share. It fills in Instagram's own post form in your browser, so no API is needed. Each row is deleted once posted.

Author
Alex Barlow
Published

Build the Instagram poster from a description


Describe it and click the button: the agent builds and tests the poster in your Chrome extension. Runs happen on your own machine with the desktop app, since the images are on it and Instagram is logged in there in Chrome.

  1. Read the posts from my Instagram posts sheet
  2. Open Instagram and start a new post
  3. Upload the image and add the caption from the row
  4. Click Share and delete the row
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

You need a Google Sheet named something like Instagram posts, with one row per post: the image's file path on your computer in one column and the caption in another. For the first test, disable the Share step so nothing is published, or delete the test post on Instagram afterwards.

The video shows the agent building the Instagram poster from the four lines above, in a few minutes.

Build the Instagram poster step by step


The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.

  • 1.0 Read data from a Google Sheet
    • Spreadsheet: your sheet
    • Sheet name: Instagram posts
  • 2.0 Loop through data
    • repeats for every row in [google-sheet-data]
    • 2.1 Go to page
    • 2.2 Click element
      • Select: the Not Now button on the notifications prompt
      • Optional click: on
    • 2.3 Click element
      • Select: the Create button
    • 2.4 Click element
      • Select: the Post option
    • 2.5 Upload a file
      • File Input Field: the Select from computer field
      • File Path: the image path column of [google-sheet-data]
    • 2.6 Click element
      • Select: the Next button on the crop screen
    • 2.7 Click element
      • Select: the Next button on the edit screen
    • 2.8 Enter text
      • Select text field: the Write a caption box
      • Text: the caption column of [google-sheet-data]
    • 2.9 Click element
      • Select: the Share button
    • 2.10 Wait
      • Set a time in milliseconds: 5000, so the post finishes uploading
    • 2.11 Find row in a Google Sheet
      • Spreadsheet: your sheet
      • Sheet name: Instagram posts
      • Values (comma separated): the image path column of [google-sheet-data]
      • Exact match: on
    • 2.12 Delete rows from a Google Sheet
      • Spreadsheet: your sheet
      • Sheet name: Instagram posts
      • First row: [find-row-google-sheet]
      • Last row: [find-row-google-sheet]

Common questions about automating Instagram posts


Why does an Instagram button or field show element not found?

Instagram changed the element, so reselect it in the Click element, Upload a file or Enter text step that failed. When a run fails, hand it to the agent and it repairs the step.

Why does the image not upload to the Instagram post?

Check the folder permissions and the file size of the image in the Upload a file step's File Path.

Can I automate Instagram posts without code?

Yes. The automation fills Instagram's own post form in your browser, click by click, so it needs no Instagram API, developer account or script; the agent builds it from the lines above.

Can I automate Instagram posts in the cloud?

Yes, if the images are in Google Drive. Upload a file runs only on the desktop app, so swap it for Upload a file from Google Drive.

Can I schedule Instagram posts?

Yes. A scheduled run needs Instagram logged in: share the cookie in settings or add steps to log in.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community. For more on the approach, read the in-depth guide to automating posts to Instagram.

Related guides