Write a guide on cash flow management for businesses. Include definitions of cash inflows and outflows, and provide examples of how businesses can optimize their cash flow by managing inventory, receivables, and payables effectively. Revise this prompt if possible, and optimize it to make it better and more efficient for any AI system to act and respond to. If possible run your optimized version.