Adding batteries to solar

I have a 3 phase 18kW system with a polyphase inverter. 5kW export on each phase

As our export rates drop more and more (QLD)

What’s required to add a battery system (new inverter and batteries)? Also, do I need wiring back to my main switch board or will only be inverter to batteries?