Skip to contentSkip to navigationSkip to topbar

Passcode-protected SMS Bot

Created by: Hayley Denbraver
  • SMS
  • Python
  • COVID use case
(information)

Info

Regulations require that you first register your number to use these resources to send SMS traffic to US and Canadian mobile destinations. If you are sending to Canada or the US and have not already done so, please see our documentation to register your Twilio phone number(link takes you to an external page) or Toll-Free number(link takes you to an external page) before you use this template.

This application builds an SMS bot to retrieve information such as emergency contact info. All information is gated by a customizable passcode to avoid it to be retrieved by people at random.

Important Reminder around Data Compliance: Even with a passcode protection be sure to check what information you are legally allowed to share via a format such as SMS.

The sample was submitted as part of the Twilio x DEV hackathon. Read more about it in their submission post.(link takes you to an external page)

Report this template(link takes you to an external page)
(information)
Twilio is not responsible for the third party content found at the following link. Please use the software provided by this third party at your own risk.
  1. Get the code for this project

    The code for this sample is available on GitHub to view.

    View on GitHub(link takes you to an external page)
  2. Get Twilio credentials

    You will need an Account SID and Auth Token in order to run this code.

    Checking for existing account...

  3. Set up the code sample locally

Need some help?

We all do sometimes; code is hard. Get help now from our support team(link takes you to an external page), or lean on the wisdom of the crowd by browsing the Twilio tag(link takes you to an external page)on Stack Overflow.

Terms of servicePrivacy Policy

Copyright © 2025 Twilio Inc.