Grading on projects is the answer here. Not only are you designing pedagogy that allows students to see cs as a tool for their own goals, you are also directly placing them at the top of Bloom's taxonomy: origional synthesis. Which, incedentally, is the skill that chatGPT isn't able to replicate.