This week saw massive moves in both directions for software stocks, as investors try to figure out which names are best insulated from artificial intelligence.

Software company shed staff in March after 'Saaspocalypse' market shivers

Atlassian and Twilio surged after earnings, while Five9 had a modest increase. HubSpot closed 19% down on concerns about its outlook.