When artificial intelligence tools can draft essays and solve problems in seconds, it can be hard to resist the temptation to take shortcuts.