After I upgraded to n8n v2 ,AI agents doesn’t look the same and I cannot connect tools nor webhook to it. What you see in the screenshot that they are connected is because it was build in v1
What version was your ai agent based on? You can double click the node and check under settings. Ideally you should use the latest version of the nodes. Unfortunately the only way to upgrade the node version is by recreating the node.