AI is great for routine, old-school tasks that require a lot of boilerplate but little crystallized knowledge like using Node.js and Express.js to set up a RESTful API powered by a relational SQL database.
AI is not great for complex tasks requiring a lot of crystallized knowledge, like accessibility, web performance, best practices, refactoring, or UI/UX.
For some tasks, AI can be good if you invest plenty of time in prompt engineering, include tons of relevant information, and use the latest and greatest chatbot (e.g. ChatGPT-4), like writing tickets or getting unstuck from a technical problem.
Mostly, AI isn't useful until you're such a subject matter expert that you don't need AI, at which point you can determine if the AI is right or full of poo.