These scripts go into ~/.zavai. Zavai will call them to perform various actions; you can customise them to suit your needs.