Twilio Library

The following functions provide Twilio SMS messaging capability. If you do not have a Twilio account, you can use the FreeSMS Library instead, however it will use 100 Workflow Credits instead of 1.



To use this library and its functions, you must use the import line at the beginning of your Base Python code.

import Twilio


Send SMS


Send an SMS message from sender phone number to recipient phone number.

Credit cost: 1


  • senderstr sender's phone number (North America only)
  • recipientstr recipient's phone number (North America only)
  • bodystr the body of the message
  • account_sidstr user provided Twilio Account SID number
  • auth_tokenstr user provided Twilio authentication token

Return Value



  • Sample Code:
    • import Twilio
      result = Twilio.sendSMS('5555555555','5555555555','Hello from Medium One!','YOUR_TWILIO_ACCOUNT_SID_HERE','YOUR_TWILIO_TOKEN_HERE')

Note: The user can unsubscribe from SMS by replying "stop" and re-subscribe by replying "start"