I don't think you need to work much with lua to get the AI working.
It's a lot of xml work, you only need to add a few build plan names into a lua script but not more.
Go to ...\Xml/Ai/Players, copy one of the basic player sets, rename it to Hutts and adjust it to your needs.
In GC, simply assign the newly created file to the Hutt faction and the basics are done.
The hutt AI should be active now but it will run out of units eventually. To compensate for this make sure to create plans in ...\Xml\Ai\Goals. Take a look at the AI_Goals_Underworld_Galactic.xml for example, and lets take the Build_Underworld_Droid_Works goal.
It is referenced in: ...\Scripts\AI\AI_Plan_Underworld_BuildUnderworldDroidWorks.lua, ...\XML\AI\GoalFunctions\AI_GoalSet_Underworld_Galactic.xml and ...\XML\AI\PerceptualEquations\AI_Equations_Underworld_Galactic.xml.
It's a good start to open the mentioned files and take a look on how the AI is taught to build the structure.
I have to admit that I didn't work much with any kind of GC AI yet so I'm probably not able to explain every tiny bit but if you got any questions just ask and we'll do our best to answer them