Automate your SMS lead generation with Twilio and Google Sheets! 📊📱
This automation script leverages Twilio and Google Sheets to streamline the process of generating leads via SMS messages. It retrieves necessary data from Apollo 🚀 and populates a Google Sheets spreadsheet with phone numbers 📞, message bodies ✉️, and delivery status 📈. You can easily configure and run this automation to send SMS messages to your leads, and monitor the delivery status in real-time.
Follow these steps to set up and run the Twilio SMS automation:
-
Clone the Repository: Clone this repository to your local machine.
git clone https://github.com/your-username/twilio-sms-automation.git
-
Google Sheets Setup: Create a Google Sheets document with three columns:
phone
📞,message
✉️, andstatus
📈. This document will be used to store lead information and delivery status. -
Twilio Configuration: Obtain your Twilio Account SID, Auth Token, and Twilio phone number from the Twilio Console. Replace the placeholders in the code with your Twilio credentials.
-
Configure Apollo Integration: Configure Apollo to provide the necessary data for lead generation. Ensure that the data retrieval process is set up and running.
Once you have completed the setup, you can start using the automation:
-
Fill Data: Populate the Google Sheets document with phone numbers in the
phone
📞 column and the corresponding message bodies in themessage
✉️ column. -
Run the Automation:
- Open Google Sheets.
- Go to
Extensions > Apps Script
. - Paste the JavaScript code from this repository into the script editor.
- Save the script.
- Click
Run > sendSMS
to start the automation.
-
Monitor Status: In the Google Sheets document, the
status
📈 column will display the delivery status of each SMS. A green status indicates successful delivery ✅, while a red status indicates delivery failure or error ❌.
To configure the automation, you need to replace the following placeholders in the code with your own credentials:
TWILIO_ACCOUNT_SID
: Your Twilio Account SID.TWILIO_AUTH_TOKEN
: Your Twilio Auth Token.TWILIO_PHONE_NUMBER
: Your Twilio phone number.
Ensure that you have appropriate permissions and access to the Google Sheets document.
The status
📈 column in the Google Sheets document serves as a real-time indicator of SMS delivery status. It will turn green once an SMS is successfully delivered ✅, and it will be red if there is a delivery failure or error ❌. Be sure to review the status column to monitor the progress of your SMS campaigns.
To input a phone number in the spreadsheet, use the following format: '+919999999999'
. You may also use any valid country code. In this example, '+91' has been used as an illustration, as shown in the image below: