Route incoming Twilio messages by content type
Developer ToolAPI IntegrationRecipe ToolsCommunication
What it does
When someone sends a message to a registered Twilio number, this automation checks if the sender is registered. Images are parsed and stored, locations are reverse geocoded, and job posting edits are looked up and updated.
Who it's for
Operations teams who process incoming SMS messages and route them based on content type.
How teams use this
Parse images from field teams
When a field team member sends an image via SMS, extract details from the image and automatically save it to Google Sheets and cloud storage. The team gets confirmation without manual data entry.
Geocode location data from mobile workers
Incoming SMS with latitude and longitude coordinates are reverse geocoded to street address, city, state, and country, then stored in Google Sheets for location tracking.
Update job postings from SMS edits
When a registered sender edits a job posting via SMS, the automation finds the matching row in Google Sheets and updates the data in place. Only registered users can make these changes.
Onboard new users with registration flow
Unregistered senders receive a rejection message and are routed to a registration workflow. Add a confirmation step so new users can verify their phone number before their messages are processed.
How it works
- Receive incoming message via webhook. A message arrives at the registered Twilio number and is sent to this automation through a webhook in real time.
- Check if sender is registered. Search the registration lookup table to verify the sender exists in the system before processing the message further.
- Route by message content. If the sender is registered, parse the message to determine if it contains an image, location data, or job posting edits, then route accordingly.
- Process or reject the message. For registered senders, process images and locations by storing details in sheets and drives. For unregistered senders, send a rejection message via Twilio.