script to update AI data