Ai agent node issue (version 2.2 vs version 3.1 mismatch)

Hey so I was triggering a workflow via webhook today, I see an error message stating my n8n AI Agent node is a version 2.2 and needs to be version 3 and above, I had recently updated my n8n instance so this error does not happen and also was using AI Agent node version 3.1, when I run the automation by opening the dashboard it runs, via webhook it weirdly gives an error message with the version mismatch

You need to delete the node and readd it from the node menu. It’s annoying, but it’s the only way you can update a node is by deleting it and updating it after you update the instance.