Do one of these three:
1) Either you create a AI with the AI Editor, save it and import it to your map.
The AI Editor
2) You create an AI using JASS AI with Notepad++.
How to create a campaign AI
3) You create your race out of the normal melee units and the AI will train those units, it will not recognise any custom units you add.