To prevent "SOQL queries: 101 limit error" errors when trying to send SMS messages using a flow with the Apex Class, we created a new flow called Blackthorn Messaging Send Message(Flow).
Flow Configuration

Entry Criteria Defined on Account Object

Get a Contact Record from the Account

Looping the Process to Handle Contacts

Define the Variables to get Data from the Contact Record

Recipient Variable

Collect Contact Records into a Collection Variable

Call the Apex Method to Send SMS to the Valid Contact Records
