AI Can Enhance Every Stage of Teamwork—Under Two Conditions