How are general A.I. are made?


Suppose I want to make my own general A.I. like Jarvis in Ironman. From where should I start and what should I know for this? How should I begin as a beginner?