Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

How do I set up a 'Collect Data' event for a Twilio SMS device? 

  1. After you add your device to the study, select 'Study Arms' in the left sidebar navigation. Then select 'event Schedule' for the arm where you want to add the 'Collect Data' event.  
    1. (warning) Not sure how to add a device? See 'Collect Data' Event for general instructions, and Bi-directional SMS Set Up for specifics on setting up Twilio SMS devices. 



  2. Click the blue 'Add New event' button and select 'Collect Data' as the event type. The devices can be viewed by navigating to the Devices section in Manage Study.




  3. Select the device options from the drop down list. This will auto populate all of the devices that you have set up in Way to Health.  



  4. Name the event.




  5. Choose the day when the event should start and the event window. 
    1. event start: For a question that will occur daily for the study duration, it typically starts on Day 0 or Day 1.  For a one-off question, select the day (i.e. Day 6)
    2. event window: Depending on if your study has other SMS questions on the same day will likely dictate the length of the event window.  This is because if the first question is Sleep Score (score 1-10) and the second question is Pain Score (1-10), the windows cannot overlap because WTH doesn't know which event to attach a score of '5' to. Therefore either (1) the event windows should not overlap or (2) the choices for one of the questions should not be 1-10, but rather 'Good, Fair, Poor'. 

      (green star) Only asking 1 question per day? Leave the event window open all day so participants have a chance to respond at any time that day! 



  6. Indicate how many times the event should repeat. 


  7. Click the 'Send participant a message on start of this event' check box and  type the question or prompt into the  Message.  Since this is a text prompt, select 'Text only' as the delivery method.



  8. You are now ready to build logic on the event.  This will allow you to send automated responses depending on the participant's text. Click the 'Save and Define Logic' button. 



  9. Inside the logic screen, select If 'Completed and' 


  10. Choose the source field (i.e response_choice) and the response options (i.e.'T' or 'F').  Select 'Message' from the 'Add a consequence' drop down list. Type your message to the participant based on their response choice and select 'text only' as the notification method.
    1. (warning) For a question that can have multiple response options ('T, F, True, False') you MUST select 'Any'.



  11. Repeat #9 for responses 'F and False'. 

  12. (lightbulb) Tip! Want to send an alert to the study team if a participant sends a wrong message? You can add in a message to the team here! 



  13. What if the participant sends a response that is not 'F, False, T, or True'? 
    1. Select the source field to be 'valid_choice --> no'.  The valid choices (i.e. F, T, False, True, etc.) are set up on the device itself.  In this case, if the participant sends back anything but F, T, False, True, then they will receive the message.  
    2. Set up a message to the tell the participant that WTH doesn't understand and to try again.
    3. Reopen the event to allow them to respond again.  If you don't reopen the event, the participant will not receive a message if they send the correct response the second time. 



  14. What if I just want to send a message to the participant thanking them for sending in a guess? 
    1. This will be set up like #9, except you will choose all response choice options. 


  15. Once all response scenarios are covered, click the blue 'Save Feedback' button at the bottom of the page. 

  16. Your new 'Collect Data' event is now visible in the Overview of the schedule. You will notice that the chat bubble is red.  This indicates that the event is a bi-directional SMS event! 

 

My study is using Twilio MMS (picture messaging) devices. Can I use the MMS device to send bi-directional messages or do I need a separate MMS and SMS devices? 

You only need the Twilio MMS device! You can use the MMS device to set up bi-directional just as instructed above.

 

  • No labels