ADD to phonebook automatically

Hello.
I want ADD phone numbers automatically to phonebook when send SMS with random name (or no name).
I don’t found anything in web about it.
Thank you in advance.