Automatically send sms upon different events

I am looking for an easy way to implement automatic sms on different events. Like:

  1. Leave request received (sms to leave approver)
  2. Leave accepted/rejected (sms to employee)
  3. PO sent (sms to vendor with item name and quantity)
  4. Payment received (to client/customer)
  5. Greetings/thank you text to customer upon creation of a contract, etc.
    and some other similar/different events.

I looked upon the issue over the forum but could not find any exact solution.

Hello,
you can set up notifications for different events.

See this SMS notification settings for sending sms about PO (for example.)


Another one _: sms to supplier


For leave application:


You can write small scripts and achieve results.

Hope this helps.

I need to send a SMS alert to the technician once he is assigned to a task. But the Receiver By Document Field list only contains ‘owner’. What should I do to fix this?

Use the assignment rule document

@IsinduMJ You can customize the Recipients child doctype.

Make the Receiver By Document Field as Data field (instead of select).
And in that field, add a field name by which you want to send notifications.

Hope this helps you!!

1 Like

I made a custom app with a simple server script that listens to the event and uses frappe.send_sms to send messages. Works well as long as your SMS settings are configured right.

what sms service are you using??

I had a similar need and fixed it by setting up a custom alert with a server script. Just make sure your voip provider supports direct SMS sending through an API. I used the requests library to send POST requests, and it worked fine once I matched the parameters they needed. Also, I triggered the script using a doc event like on_submit, depending on the doctype.