A Google Apps Script project that automates the connection between GroupMe and the "Copilot" user.
This project features an Automated Installer. When you authenticate, the script will automatically:
- Create a new GroupMe group called "SMSpilot".
- Create a Bot in that group pointed at this script.
- Save your Access Token and Group ID to the script properties.
GroupMeBridge.gs: Handles the messaging logic (filtering bots, tagging Copilot).doGet.gs: The Auto-Installer. Handles the OAuth callback and provisions resources.index.html: The UI for the installer.
- Create the project at script.google.com.
- Create
GroupMeBridge.gs,doGet.gs, andindex.htmlwith the provided code. - Deploy:
- Deploy > New deployment.
- Select type: Web app.
- Execute as: Me.
- Who has access: Anyone.
- Click Deploy.
- Copy the Web App URL. This is your Callback URL.
- Go to dev.groupme.com/applications.
- Click Create Application.
- Callback URL: Paste your Web App URL from Step 1.
- Click Submit.
- In the Applications list on
dev.groupme.com, click your new application (SMSpilot). - Click the OAuth URL (Authorization link) provided in the details section.
- Authorize the application if prompted.
- You will be redirected to your Web App.
- Watch the screen: The script will display a checklist as it automatically creates the group, registers the bot, and saves your configuration.
Once the installer finishes (showing all green checkmarks):
- Open the newly created "SMSpilot" group in your GroupMe app.
- Send a message:
Hello. - The bot will reply:
@Copilot Hello.