With help from AI, some New York City small businesses and nonprofits are learning to use the technology to work smarter, not leaner.