Developers

~ 0 min
2021-05-17 11:26

Almost every smartphone in the world runs the WhatsApp application,the WhatsApp application is confirmed when you do it for the first time via the phone number, and the phone number is unique around the world, so you can take advantage of this feature to provide authentication of the validity of the contact's phone number for your location services instead of using SMS messages that are charged financially.

So when a new visitor registers on your site and you want to make sure that his phone number that he entered is really owned by him, we send a code to his number via WhatsApp to enter it on your site, and if it is correct, then you will verify this number.

The steps for the work of this service start from your site when you ask the visitor to request authentication via the WhatsApp service number, where you can put a special link for WhatsApp containing the subject matter responsible for sending the code, or you can write explicitly: Send the following word to the following number via WhatsApp until you get the authentication code.

When the contact talks to the number and sends him the appropriate command, we will generate a unique code for him and send it to you via a special link to a file on your site so that your site’s program knows it as well, where your program saves it to compare it later with the number that the visitor will enter in the field assigned to him on your site. Enter the same code that we sent you, and he will be the owner of the number that he registered with you, and his phone number will be successfully authenticated.

Also notes the authentication message can be displayed according to the language of the contact. Pay attention to the word between the parentheses where we replace it with the code that we generated {authcode}.

This service requires special programming. If you are not the developer of your site, you can communicate with the developer to program this service.
When a message arrives from a contact, massejli service analyzes this message to link it to a s through the chatbot or through the list and send this information to the webhook link in order for it to be processed.

The webhook link that will be called must be online and not within an internal network.

The information that massejli service will send you will be in json format and in utf8 format:

Phone number: It is the number on which massejli service has been activated, which helps you to distinguish the contact with any number he speaks in case you have more than one number in the same account.

The token authentication key: You can find it in the developers section of the WhatsApp section of the my.masseji.com website. It is useful for you to compare the token sent in the message to ensure that whoever sends you the information is the service of masssejli and not another party.

Contact: the phone number of the caller who is talking with your number.

Command: it helps you classify incoming messages from contacts. You must have entered it in the list or in the chatbot subject.

Message: The original text sent by the contact before being classified under a subject.
An example of the information you will receive from massejli service for a message from a contact:
{"phone": "964622445511", "token": "Demofdsf3453328987d3d34", "contact": "9613123456", "command": "opinion", "message": "my opinion is ..."}

When this information arrives at your webhook, you can process it and send a reply with a message in json format and in utf8 format, an example of the response:
{"message":"hello world"}

Average rating 0 (0 Votes)

You cannot comment on this entry

x Chat with us on Whatsapp
WhatsApp Live Chat
Support Agent: