There are many factors that will need to be addressed. The best thing for you to do is find out what your parcel is zoned now. If you can, determine the "use code" also. Then contact the planning department with your questions. If it is easy you cna follow through and get it done yourself. This would be if the parcel is zoned for residential and you can change the use code.
There can be so many issues that will come up like is it up to code and in habitable condition, is it in any of the restricted zones where the production, distribution and repair facilities take precedence. It could also be ini a zone where new offices are prohibited. If any of these are the case you might be able to apply for variance or conditional use and go forward. You also might need to make improvements and hire an architect, engineer or attorney. But no reason not to ask.