Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Build a community SMS group chat with Twilio Functions and Google Sheets

Blog post from Twilio

Post Details
Company
Date Published
Author
Phil Nash
Word Count
1,799
Language
English
Hacker News Points
-
Summary

A community can create a group message chat using Twilio Functions and Google Sheets, allowing neighbors to easily offer or ask for help. To set up this system, users need Node.js, a Twilio account, a Twilio number, a Google developer account, and a Google Sheet with the necessary columns. Users must also create a service account for the Google Sheets API and download the JSON file. The code uses Twilio Functions to forward incoming messages to all numbers in the group stored in the Google Sheet. The code includes a function that loads the sheet, filters out the number that sent the message, and builds a TwiML response for each remaining number on the list. Once deployed, users can send a message to their phone number, which will broadcast out to everyone else on the list.