We have some new “Getting Further with ZAP Scripting” pages: https://www.zaproxy.org/docs/getting-further/scripting/