Magpi has two ways to collect data using SMS/text messaging: structured and interactive ("iSMS"). To learn more about the general differences between them, click here. This article will explain how create an iSMS form in Magpi, comparing it with the creation of a form for use with the Magpi mobile app. After reading this article, you will want to proceed to How to deploy an interactive SMS form with Magpi.
If you have ever created a Magpi mobile data collection form, then you already know 90% of what is needed, because iSMS systems use the same forms as you might already be using with the Magpi mobile app. If you don't know how to create a Magpi form, please refer first to the Magpi Quick Start Guide for instructions, and watch our Magpi Data Collection Basics intro video.
Magpi iSMS systems use the same form designer as any other Magpi form, but the interface for the respondent is very different. Each question in the form is sent to a respondent as a single text message, and their response is sent as a single text message back.
Example: Collecting Name, Gender, and Age from Every Clinic Visitor
As an example: suppose you want to create a simple form to allow a health worker to report the name, gender, and age of every person who comes to the clinic requesting information on HIV medications. If you were going to have that health worker use the Magpi app on a smartphone, that form might look like the image below in the Magpi form designer (you can right-click the image to open it larger in a new browser window or tab).
Basic Form for Use with the Magpi Mobile App (with a data collector and a respondent)
Notice that the questions are written for a data collector to collect data about someone else (the "respondent"). So, for example, the form asks "what is the respondent's name?" The idea, of course, is that a data collector with a mobile phone or tablet will run the Magpi app and open this form in that app. Then they will go to the person of interest (i.e. the respondent) and ask the questions of them.
iSMS can be a little different. Although the form above could be used for iSMS, with a data collector asking questions of a different person, with iSMS their is the additional possibility that the person entering the data (the data collector) might be the same person as the respondent: they may be answering questions about themselves.
If the iSMS system is meant to allow people to answer questions themselves, the same form might look more like the next image.
Basic Form for Use with iSMS (data collector = respondent)
Notice that the tone is more like a conversation, because with iSMS the respondent is having a conversation with the Magpi system -- with no intermediary data collector. On a phone, this iSMS might look like this (Magpi's messages are the ones in gray):
You'll notice a few things in the iSMS "conversation" above:
- The iSMS was started by the respondent, by texting the JOIN command followed by the form name. They would have to know this information, and the phone number to text to, in advance. If you know all the respondent's numbers, you could have Magpi initiate the iSMS conversations instead.
- Notice that repondent was able to reply with "m" for MALE because in the form design it shows "MALE" as the label and "M" as the code. In iSMS, a respondent can respond with either the label or the code. (responses are also not case-sensitive (M = m and MALE = male).
- iSMS allows for range checks: the age question only allowed for responses between 18 and 100. When the respondent entered 17, the system prompted automatically for another try.
Once the respondent has finished, the data they provided is in the Magpi data tab online, just like with any other Magpi form: