How to send SMS automatically on Different Trigger Points?

I have already Configure SMS Setting.

explain your work flow…

Thank You for reply.

I want send SMS automatically like Email Alerts.

SMS 1 Send SMS when Lead enter into the CRM.
SMS 2. When User change the Contact Date on Opportunity.
SMS 3. When Quotation will Submitted.
SMS 4. Send SMS to Customer When Customer on-board.

Thank You

I’m also trying to do something similar like this. Any suggestions will be appreciated

You can create hook for that.

What will creating new hook do ? Can you explain please.

Also I want to do so by using webhook but m having issue configuring it like where to set parameters such as route, authentication key,etc

https://frappe.io/docs/user/en/guides/basics/hooks

Ok, I have created a function in webhook.py (adding api, auth key,etc) and called it on hooks.py as frappe.integrations.doctype.webhook.webhook.message_sending

but message is not being sent

Also one more concern, how to put dependency in that like this only get executed when,ie, message only being sent when new lead is added

Webhook is a different concept. You have to Define one function and call it in hooks.py file.
You will call based on certain conditions like validate, save, update, submit. You have to call it based on your requirement.

https://frappe.io/docs/user/en/guides/basics/hooks

Read this link from below heading.
Document hooks

Looking at healthcare settings in the healthcare module should give some help in writing your own automated SMS. SMS are sent upon patient registration, appointment creation etc

1 Like

Web Hooks is the best Option to do so:

You can write a webhook like this one:

doc_events = {
	"Lead": {
		"on_submit": "path.to.yourapi.yourfunction,
	},
    ...
}

And in the API function you can call the send_sms function with required arguments for recipient number and message.

Did you try this ?

Regards,

Parth

Is Bulk SMS Manual List possible in sms center or some other way ?

No ideas about that.

“Is Bulk SMS Manual List possible in sms center or some other way”

It seems not just an existing list - see the attached screenshot a Send To select dropdown lists say 6 choices All Contact, All Customer, All Lead, etc

Here’s the SMS Settings page for reference

Any alternate approach ?

Your search of the forum and look at the help docs will give you clues and point the way here.

https://discuss.erpnext.com/search?q=erpnext%20sms%20gateway

Example docs that may interest you:

https://erpnext.org/docs/user/manual/en/setting-up/sms-setting

https://frappe.io/docs/user/en/guides/integration/rest_api
https://erpnext.org/docs/current/api

continue discussion here Manual Custom List SMS