Mandrill - HelloSundayMorning/hsm-acem-survey-app GitHub Wiki

The templates live here: https://mandrillapp.com/templates

There is a “low risk” and a “high risk” template. Both templates receive the same data, but you don’t need to include everything. Fields available to the templates are:

AUDIT_CHART, A url. Used like: <img src="https://qortex.com/imageproxy?link=*|AUDIT_CHART|*"> to include the link to the chart.

RISK_CHART: Usage same as audit chart. The risk factor graph.

FREQUENCY_CHART: Usage same as audit chart. The drinking percentage pie chart.

RISK_FACTOR, text fragment like “2 times as likely”, used so: You are *|RISK_FACTOR|* to end up in hospital.

DRINK_PERCENTAGE: number (out of 100): You drink more than *|DRINK_PERCENTAGE|*% of your peers.

SURVEY_SCORE: number (out of 40): You scored *|SURVEY_SCORE|* out of 40..

Also SURVEY_SCORE can be used to show/hide the dependency warning:

*|IF:SURVEY_SCORE >= 20|*

Dude, you drink way too much!

*|END:IF|*

RISK_FACTOR options (by Q2 daily score answer):

  • 0: 'unlikely', // 1 or 2
  • 1: 'twice as likely', // 3 or 4
  • 2: '3 times more likely', // 5 or 6
  • 3: '4-6 times more likely', // 7, 8 or 9
  • 4: '7 times more likely' // 10 or more