French President Emmanuel Macron said Tuesday there was a "need for rules" to govern artificial intelligence, in an apparent rebuff to US Vice President JD Vance who had criticised excessive regulation.