Artificial-intelligence startup investors are turning their focus to accounting software, a traditionally subdued corner of business technology, as companies prepare for a potential economic slowdown.