In some important information notification scenarios, users need to receive and pay attention to the information. The synchronous push of SMS + voice notification can solve this problem.
SMS notification + voice notification of the same content are sent synchronously
Push the voice notification of the same content synchronously while pushing the short message; After receiving the notification on the phone, the user can also check the SMS to confirm the information content.
Applicable fields:
Freight driver notice, express logistics notice, IOT equipment early warning notice, server monitoring early warning notice, important order information change notice.
Example notification template:
[mutual billion wireless] Dear * * * user, your available balance is 6358. Please renew in time. For self-service renewal, please log in to the user center for operation!
[mutual billion wireless] Dear * * * user, your account has reached the maximum sending volume you set, and the system has suspended sending. If you need to change, please log in to the user center for operation!
[* * Petrochemical] your vehicle number * * *, please enter the factory before * * *, please wear your helmet and reflective vest correctly, and follow the command of on-site personnel. Thank you for your cooperation!
Scenario 2: SMS notification + voice prompt sent synchronously
Synchronous push prompt, view the voice notification of SMS, and remind users to pay attention to SMS.
Applicable fields:
Meeting notice, activity notice, questionnaire, logistics reminder, order reminder, etc.
Example notification template:
Text message content: [* * same city] * * the same city reminds you that * * * goods have arrived * * *, please pick up your goods as soon as possible
Voice content: * * the city reminds you that you have a new logistics message. Please check the SMS.
Text message content: Hello, * * * has issued a purchase order. Please open the link to view the specific details and reply to the delivery date. If you have any questions, please call * * *. Please know.
Voice content: Hello, there is a purchase order sent to your mobile phone SMS today. Please open the SMS to confirm the order content and reply to the delivery time. Thank you!
Text message content: [* * power grid] * * Hello, * * the meeting will begin in * * *, and the meeting place is * * *. Please come to * * * * on time.
Voice content: Hello, you have a new conference notice SMS, please know.
Example code:
//Interface type: mutual wireless trigger SMS interface, which supports sending verification code SMS, order notification SMS, etc. // Account registration: please open an account through this address http://user.ihuyi.com/?9vXc7 // matters needing attention: //(1) During debugging, please use the system default SMS content: your verification code is: [variable]. Please don't disclose the verification code to others. //(2) Please use APIID and APIKEY to call the interface, which can be obtained in the member center; //(3) The code is only for reference to access the mutual wireless SMS interface. Customers can write it by themselves according to their actual needs; package main import ( "crypto/md5" "encoding/hex" "fmt" "io/ioutil" "net/http" "net/url" "strconv" "strings" "time" ) func GetMd5String(s string) string { h := md5.New() h.Write([]byte(s)) return hex.EncodeToString(h.Sum(nil)) } func main() { v := url.Values{} _now := strconv.FormatInt(time.Now().Unix(), 10) //fmt.Printf(_now) _account := "cf_xxxxxxx"//View user name login user center - > verification code notification SMS > Product Overview - > API interface information - > apiid _password := "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" //View password login user center - > verification code notification SMS > Product Overview - > API interface information - > apikey _mobile := "136xxxxxxxx" _content := "Your verification code is 9552. Please don't disclose the verification code to others." v.Set("account", _account) v.Set("password", GetMd5String(_account+_password+_mobile+_content+_now)) v.Set("mobile", _mobile) v.Set("content", _content) v.Set("time", _now) body := strings.NewReader(v.Encode()) //Encode the form data client := &http.Client{} req, _ := http.NewRequest("POST", "http://106.ihuyi.com/webservice/sms.php?method=Submit&format=json", body) req.Header.Set("Content-Type", "application/x-www-form-urlencoded; param=value") //fmt.Printf("%+v\n", req) / / check the structure of the message resp, err := client.Do(req) //send out defer resp.Body.Close() //Be sure to close resp.Body data, _ := ioutil.ReadAll(resp.Body) fmt.Println(string(data), err) }