Sending SMS when there is a change in Firebase database

I’m trying to make a SMS notification function for my resturant app when there is a new order. The app is current being built as a webapp so I think how it should be done is to send sms when the firebase database order has a new object, but I have no clue where to begin with…it would be great if someone can provide some hints. Thanks!

Firebase cloud functions is your answer, use a DB trigger to call firebase messaging