Send Facebook Messenger messages from a Google Sheet


How to send Facebook Messenger messages 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 send Facebook Messenger messages from a Google Sheet, list the profile links in the sheet, loop through them with Loop through data, and for each one open the profile, click Message, type the message with Enter text, and send it with Press key(s). It uses Facebook in your own logged-in browser, so no API is needed. Each row is deleted once sent.

Author
Alex Barlow
Published

Build the Facebook messages from a description


Describe it and click the button: the agent builds and tests the messenger in your Chrome extension. Runs happen on your own machine with the desktop app, with Facebook logged in in Chrome.

  1. Read the profile links from my Google Sheet
  2. Open each profile and click Message
  3. Type my message and send it
  4. Delete the row once it is sent
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 with one profile link per row in column A, a name in column B if you want to personalise the message, and no header row. Put your own profile in the first row to check the first message, and leave the sheet alone while the run deletes each row it has sent.

The video shows the agent building the Facebook Messenger automation from the lines above, in a few minutes.

Build the Facebook messages 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: the tab with the profile links in column A
  • 2.0 Loop through data
    • repeats for every row in [google-sheet-data]
    • 2.1 Go to page
      • URL: column A of [google-sheet-data]
    • 2.2 Click element
      • Select: the profile's Message button
    • 2.3 Enter text
      • Select text field: the message box
      • Text: your message, with column B of [google-sheet-data] where the name goes
    • 2.4 Press key(s)
      • Key: Enter
    • 2.5 Wait
      • Wait time: 2000
    • 2.6 Delete rows from a Google Sheet
      • Spreadsheet: your sheet
      • Sheet name: the tab with the profile links
      • First row: 1
      • Last row: 1

Common questions about sending Facebook Messenger messages


Why is the Facebook Message button not clicked?

Facebook changes its layout often, so reselect the button in the Click element step. A custom selector with Use element text and the text Message holds up better. When a run fails, hand it to the agent and it repairs the step.

Why is the Facebook message typed but not sent?

The Enter key press is not reaching the message box. Re-record Enter in the Press key(s) step with the message box focused.

Can Facebook block automated messages?

Yes, it can. Facebook limits how many messages an account sends. Keep lists short, add a longer Wait between messages, and message people who expect to hear from you.

Can I personalise each Facebook message with the person's name?

Yes. Put the name in column B of the sheet and insert that column into the message text in Enter text where the name goes; each person gets the message with their own name.

Can I send Facebook Messenger messages in bulk without code or an API?

Yes. The automation drives Facebook in your own logged-in browser, so it needs no Messenger API or developer account, and the agent builds the steps from the lines above.

Can I schedule Facebook messages to send automatically?

Yes, on the desktop app with Facebook logged in on that machine. For cloud runs, save a login and add a Log in with credentials step before the loop; see logins.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community.

Related guides