Sahil Aggarwal’s timing appeared to be perfect for launching his software company in 2021. He raised nearly $30 million from investors, and by the following year, his startup, Rattle, was valued at more than $100 million. Then along came generative artificial intelligence that could easily automate the kind of administrative work Rattle specialized in. Aggarwal tried to integrate AI, but said it felt like attaching an engine onto a horse-drawn carriage. The company teetered on the brink. “If two engineers can reproduce your entire product in a matter of a few weeks, then you deserve to be killed,” he said.…