EmotionCognitionLab / pvs

1 stars 0 forks source link

change the message of the automated emails/SMS for stage 3 #349

Closed HyunjooY closed 1 year ago

HyunjooY commented 1 year ago

Hi Noah,

As we discussed via slack, would you change the text of the automated emails/SMS for stage 3? This is for a reminder participants need to increase breathing practice time (from one to two) when they start stage 3. Below is the message for stage 3. Thank you!

subject: "A quick reminder to train today!",
html: "Have you done your training today? Remember to play brain games and complete two 15-minute paced breathing exercises today!",
text: "Have you done your training today? Remember to play brain games and complete two 15-minute paced breathing exercises today!",
sms: "Have you done your training today? Remember to play brain games and complete two 15-minute paced breathing exercises today!"
noah10 commented 1 year ago

@HyunjooY - Looking at the code I realized that when somebody has done no breathing segments for the day there's no easy way to know what stage they are in. (I could pull historical breathing data, but that can end up being a lot of data, which could slow things down, so I'm trying to avoid that.)

Is it OK if this message only goes out to someone who has already done at least one breathing segment for the day, and the old message goes out otherwise? Because the home training reminder goes out 2x/day (at 11AM and 7:30PM) that would still catch people who did one 15 minute session. (At least if they did it before 7:30PM - if they didn't they'd still get the old message at 7:30PM.)

HyunjooY commented 1 year ago

It would be fine with me. Thank you!

noah10 commented 1 year ago

This is up on dev and ready to be tested. @HyunjooY , if your account on dev isn't in stage 3 let me know if you'd like me to manipulate the data to put it into stage 3.

HyunjooY commented 1 year ago

Okay. My account is in stage 3. So, for testing, I need to do one practice before 7:30 PM, right? I returned all the lab devices so is it okay to install the dev version on one of my windows laptop and practice it? I guess I need to do this with a new laptop; go to View->Toggle Developer Tools, click the "Application" tab in the window that appears, click Local Storage on the left and click app://. Then create a key named "HeartBeam.isConfigured" with the value "true" If you prefer I use the lab laptops, I will test it tomorrow.

noah10 commented 1 year ago

Yes, just do one 15-minute session before 7:30PM. And yes, it's fine to install a dev version on your own laptop and you have the correct steps there. You may end up seeing a video (or double videos) that you've seen before, but just ignore that.

HyunjooY commented 1 year ago

I did one 15 min session now; I will let you know which message will be delivered at 7:30 PM.

HyunjooY commented 1 year ago

I did not get 7:30 PM message. I only got the 6 AM message today. And the message was the same as before. Actually I have gotten 6 AM and 4 PM messages for a few weeks. I did not do lumosity game. Is it the reason? This is my email folder screenshot.

image
noah10 commented 1 year ago

Ah - that tells me that you haven't finished the pre-intervention baseline yet, so you get reminders for that, not for the home training practice. Slack me the email address you're registered with on dev and I'll mark your account as having finished the baseline.

HyunjooY commented 1 year ago

I got this message at 11 am. It looks good.

image
noah10 commented 1 year ago

This has been deployed to production.