How to send an email blast (From Gmail with a bot)

Sending email blasts from Gmail lets you send the right message to the right people at the right time. It can help personalize your marketing campaign, making it less intrusive for the receiver and boosting overall performance.

Learn how to send email blasts more efficiently by creating a browser bot that automates the process in Gmail, taking repetitive manual tasks off your hands. If you don’t use Gmail, don’t worry. You can use what you learn in this guide to automate email blasts on any web-based email platform. Let's dive in!

# What exactly is a bot?

Axiom’s bots are powerful tools that you can delegate repetitive tasks, such as blast emailing, to. Think of them as your very own digital helpers. They’re built using a simple step-by-step process - without the need for code - that replicates your actions in the Chrome browser, allowing you to automate a whole range of tasks.

The beauty of learning how to create bots is that they can be tailored to your specific requirements and scheduled to run independently, freeing up valuable time.

# How does an email blast bot work?

Gmail blast bots run in your Chrome browser and are built to mimic your actions, from logging into the app, to clicking the compose button. Once the compose form is open, the bot can populate it with text and files stored on your computer or in a Google Sheet.

# Can my Gmail account be blocked?

Gmail has daily send limits and if you exceed those limits, especially with a new account, there is a strong likelihood that your account will be blocked. We recommend staying within the limits. If you need to send more emails, you can use multiple accounts.

Read Google's Policy here. (opens new window)

# Let’s learn how to build a email blast bot with Axiom.ai

In this example, we will guide you through the process of extracting data from a Google Sheet, looping through the rows, and using Gmail to compose and send new emails. This method can be applied to any web-based email app, including Outlook.

# 1. Set up your Google Sheet

Create a new Google Sheet. You can do this in your Chrome browser by entering 'sheet.new' into the address bar. Don’t forget to name your sheet something like 'Gmail blast’. In the sheet, add some text data, with the email copy in one column and the name in another column, so you can personalize the message.

axiom.ai add first step

# 2. Add your first step: ‘Read data from Google Sheet’

axiom.ai adding a step

Use the Step Finder to search for ‘Read data from Google Sheet’ and click on it. The step will be added to Axiom for you to configure.

In the 'Spreadsheet URL' field, you can search by name for the Google Sheet you created. Click on it to select.

axiom.ai read data from google sheet step

In the ‘Sheet name' field, click on the drop-down and select the correct tab.

In the ‘First cell’ field, toggle the switch and enter 'A1’. This setting tells the bot where to start reading data.

In the 'Last cell' field, click the toggle switch and enter 'A10'. You have limited the bot to read ten rows. This is fine for now, you can increase the amount later once you’ve tested it.

If you want to learn more about Google Sheet steps, watch these videos

(https://axiom.ai/video-guides/google-sheets/)

# 3. Add the ‘Go to page’ step

Use the Step Finder to search for ‘Go to page’ and click on it. The step will be added for you to configure.

In the 'Enter URL' field, cut and paste the Gmail URL: https://mail.google.com/mail/u/0/#inbox?compose=new. This step will open the Gmail compose email form by default.

axiom.ai pass data ionto a go to url step

# 4. Add the ‘Loop through data’ step

Next, add a new step by entering ‘Loop through data’ into the Step Finder, and clicking to add it. This step will allow your bot to loop through the rows of emails in the Google Sheet. Make sure to add the steps you want to repeat, inside this loop.

axiom.ai adding a loop step

# 5. Add a 'Split a name into columns' sub step

Staying within the ‘Loop through data’ step, it’s time to add a sub step, by clicking the white ‘Add step’ button. Search for and add the 'Split a name into columns' step.

In the data field, select '[google-sheet-data]'.

Once you've added the step, you should see the names separated as shown in the image. These names can be used to personalize your emails.

axiom.ai adding a split name step to gmail automation

# 6. Add an ‘Enter text’ sub step for the 'To' field

Add a further sub step by using the Step Finder to search for ‘Enter text’ and clicking on it.

When composing an email in Gmail, the cursor is automatically placed in the 'To' field, so no need to select the 'To' Field.

Click ‘Insert data’ to select the Google Sheet used to store your email addresses, then highlight the column with the email address for the blast.

axiom.ai enter text step

# 7. Add a 'Press Key(s)' sub step to enter email address

Add a further sub step by using the Step Finder to search for ‘Press key(s)’ and clicking on it.

Inside the step, press record, then the 'Return tab' key. Then click 'Stop recording', and the return tab to move the cursor to the following field.

axiom.ai adding a press keys step

This is an important step, as the return key press enters the email address into the field.

# 8. Add an ‘Enter text’ sub step to add email subject

Add a further ‘Enter text’ sub step.

Again, no need to click 'Select' -  just add your subject line into the ‘Text’ field.

If you want to personalize it, you can also insert data from the 'Split a name into columns' step.

axiom.ai enter text step

# 9. Add a 'Press Key(s)' sub step to tab to the email body

Add another ‘Press Key(s)’ sub step by using the Step Finder to search for and add it.

Press record, then the 'tab' key.

# 10. Add an ‘Enter text’ sub step to add email body

Add a further ‘Enter text’ sub step.

Again, no need to click 'Select' - just add your body copy into the ‘Text’ field.

If you want to personalize it, you can also insert data from the 'Split a name into columns' step. See the image below for an example.

# 11. Add a ‘Click element’ sub step to click compose

Add a ‘Click element’ sub step by using the Step Finder to search for and add it.

Click ‘Select’ and choose the ‘Compose’ button in Gmail.

Then click 'Custom' in the selector tool and tick the box 'Use element text instead of HTML'.

Finally click 'Send'.

This sends your email. Disable this step during testing.

# 12.  Add a ‘Wait’ sub step

axiom.ai wait step

Add a ‘Wait’ sub step by using the Step Finder to search for and add it.

In the field 'Set a time in milliseconds', input the number 1500. This step briefly pauses the bot to allow Gmail to send the email.

# 13. Add a ‘Delete rows from a Google Sheet’ sub step

Add a further sub step, 'Delete rows from a Google Sheet', to delete the row of data just entered. This is to prevent the same row from being entered repeatedly. Search for the step using the Step Finder, and add it.

axiom.ai delete rows from google sheet step

Next, in ‘Spreadsheet URL’, upload the Google Sheet you are using as your data source.

For 'Sheet name' click on the drop-down and select the correct tab.

Then, in 'First row to delete' enter the number 1 and repeat this in 'Last row to delete', so that both are set to 1. The delete step ensures we do not email the same person repeatedly.

# 14. Add a ‘Click element’ sub step to open a new email form

Add a final ‘Click element’ step to open the compose form, ready for the next email.

Click ‘Select’ and choose the ‘Compose’ button in Gmail.

Then click 'Custom' in the selector tool and tick the box 'Use element text instead of HTML', then click 'Complete'.

axiom.ai click element step

# 15. Ready to test

Almost there! Your blast email bot should resemble the screenshot below.

axiom.ai wait step

Now you’re ready to test your newly built bot, but before you do so, we recommend disabling the last ‘Click Element’ step added, allowing you to test without actually sending emails.

When you’re ready to test, use the desktop app, by clicking ‘Run with desktop app’.

# 16. Running the bot

You can run the bot in the cloud and the desktop app. If you want to run the bot in the cloud, you will need to share the session or add login steps.

To learn more about scheduling, see here..

# Issues you may encounter with the email blast bot

  1. The bot seems confused and out of sync? Ensure the 'Return tab' is set in step 7 of the guide.

  2. The wrong data is being submitted into a field? Re-select the 'Insert data' option in the corresponding 'Enter text' step.

Don't forget we offer excellent customer support. If you need help, get in touch. (opens new window)

# Conclusion

Congratulations, you've learned how to make a Gmail blast bot! With this newly acquired skill, you can save time on your emailing tasks and reach your customers more easily. You can apply the same pattern to any web-based email app, including Outlook. The sky's the limit with your new bot building super powers!

# What else can I automate with Axiom.ai?

Axiom is a powerful browser automation tool. If you're excited, here are some ideas for other bots: extract data from your email app (such as Gmail), generate content, and send DMs on social media. We have steps to extract data and to generate text with AI.

Contents

    Install the Chrome Extension

    Two hours of free runtime, no credit card required