how to automate invoicing with AI