A person who is good in certain field, who helps you to deal with stuff by consulting you is called as a consultant.