The messages are exactly the same, meaning that what executed twice wasn’t the AI Agent, but the WhatsApp node. n8n nodes on default execute once for each item. If your WhatsApp node is receiving two items, it’s normal for it to execute twice.
Go to node settings and toggle on Execute Once option for WhatsApp node.