The digitalisation of European industry with artificial intelligence (AI) tools is paving the way for Industry 4.0. In turn, AI is permeating the entire Industry 4.0 ecosystem, on the production floor and beyond. In the case of mass customisation, the ability to manufacture customised products at mass production efficiency and speed hinges on the modularisation capabilities and flexibility of the production process. The EU-funded MAS4AI will develop a system that allows the deployment and synchronisation of different AI agents in manufacturing for autonomous modular production and human assistance. By incorporating AI technologies, the project will optimise manufacturing costs and adapt routes, tools and parameters.