I have read some articles and according to them, WhatsApp has no API for developers for sending personal messages. Though when I type send a WhatsApp message in Google Assistant(Android mobile device) it shows a simple UI to choose a contact and type a message and a send button to send it directly from the assistant.
I also want to do this kinda thing with my messaging app.
My questions are
How to achieve this?
Has WhatsApp done this thing from their side to do this or Google Assistant did this?
Note: Not only WhatsApp I have noticed the same thing for the preloaded SMS messaging app in android devices.
Edit: The possible duplicate found has nothing to do with my question because it doesn't relate google assistant functionality.