How would you approach building an AI agent from scratch?

Situational