Node Red script

Hello, I have a 48v 10000 Quattro and would like to use the 230v relay inside the Quattro to switch a 230 V contactor.
Please, could somebody help me with a script fir node red to close the relay once the batteries are at 90% soc open the the relay once the SOC is 80%.

Thank you

The internal relays can be programmed with the assistants in ve config.