There's a form available under the 'required documents' section that the invitee has to fill out together with a copy of their passport/residence permit. A copy of the birth/marriage certificate is needed if the person is related. Check out all the requirements on the Thailand VFS global site.