Custom function to automaticlly create a contact when an account is created

Custom function to automaticlly create a contact when an account is created

We need a custom function to automaticlly create a Contact when an Account is created.
The fields that need to be copied are:

Account Fields 🡪 Contact Fields
Account Owner 🡪 Contact Owner
Account Name 🡪 Account Name
text of Account Name 🡪 Last Name
Phone 🡪 Phone
custom field Mobile Phone 🡪 Mobile