How to automate messages on Facebook


The Facebook Messenger bot sends direct messages (DMs) in Chrome, sourced from a Google Sheet. It cycles through profile links in the sheet, opens them in Chrome, clicks on the message button, types a message, and presses return to send. After sending a message, the bot deletes the row and proceeds to the next profile.

Get started: Set up your Google Sheet

Create a new Google Sheet. You can do this in your Chrome browser by typing 'sheet.new' into the address bar, assuming you have a Google account. Name your sheet something like "Facebook Messenger bot".. Set up a tab with profile links to message.

Install the Facebook Messenger bot

To install this Facebook Messenger bot, click "Install template".. If you’re a new user, you’ll have to click "Install Chrome extension"., then create a free axiom.ai account to edit the template.

Once installed, click 'Start'.

axiom.ai will guide you through the steps you need to configure in the app.

Configure your Facebook Messenger bot in four easy steps

  • Step 1.0 Read data from a Google Sheet
    • Spreadsheet: Search for the Google Sheet you created. Once found, click to select.
    • Sheet name: Choose the tab with the Facebook profile links.
  • Step 2.0 Loop through data
    • Step 2.1 Go to page: Profile page
      • Enter URL: Click 'Insert data', choose google-sheet-data, and select the column with Facebook profile links.
    • Step 2.2 Click Element: Message^
    • Step 2.3 Enter Text: Message
      • Text: Input the message to be sent.
    • Step 2.4 Press Key(s): Send message^
    • Step 2.5 Delete rows from a Google Sheet
      • Spreadsheet: Search for the Google Sheet you created. Once found, click to select.
      • Sheet name: Choose the tab with Facebook links.

^ Preconfigured

Run your Facebook Messenger bot

To test this Facebook Messenger bot, disable step 2.2 to prevent messages being sent. If you wish to schedule the bot add steps to login.

Customize your template

Like all Axiom templates, you can use our no-code bot builder to customize any bot according to your requirements. For example Step 2.3 you could personalise the message by passing in a name from the Google Sheet, simply click "Insert data".

Troubleshooting

We recommend you watch the video to troubleshoot. If you wish to schedule the bot you will need to share the Cookie in settings or add steps to login.

  • Message button not clicked? Click Select and reselect the button.
  • Message not being sent? Try re-recording the Return key action.

We offer excellent customer support. If you need help, get in touch.