Groupon announced layoffs last week as part of its AI restructuring plan, affecting up to 400 employees.