Task triggers the SMS?

SMS configurations are usually made in app_settings.json. So, Can CHT send automatic SMS message via tasks.js?

Hi @Justinho

I’m curious what your use case is.

Right now, the only way to send an sms via tasks.js is to configure that a message would get sent when a specific report was created (through the transition of your choosing) and then create a task that would create this report.
So there is no direct way of tasks to send SMSs.

1 Like

Hi @diana,
Thanks for your reply.
So, I’ll just give you a scenario I have in mind. I have an assessment form that triggers a referral task in case the patient is referred and an SMS is sent to remind the patient that they need to go to the health centre.

Hi @Justinho

In your case, you would actually want to have some configuration where the same assessment form that triggers the referral task also creates the SMS schedule.

You would still have configurations in two places:

  • generate the task in task.js
  • generate the sms schedule in app_settings
1 Like