PurposeArtificial intelligence (AI) usage improves e-commerce logistics efficiency. However, many actors can play significant roles, such as supply chain consistency (SCC), last-mile logistics (LML) performance and collaboration and coordination among logistics firms. This study aims to assess how SCC and LML performance mediate and collaboration and coordination moderate the relationship between AI usage and logistics efficiency.Design/methodology/approachA structured questionnaire was used to collect the data. A total of 245 valid responses were received from Indian e-commerce businesses. The data were then analysed using AMOS v25 and structural equational modelling using SPSS for regression, PROCESS macro for mediation and moderated mediation analysis.FindingsThe findings show that AI usage independently impacts logistics efficiency, with SCC and last-mile delivery performance as mediating variables. Collaboration and coordination among logistic firms are also critical moderators in enhancing AI’s efficacy in logistic operations. The study findings suggest the integration of AI into logistic operations and provide implications to managers on the urgency of fostering a collaborative and synchronised environment to utilise the full potential of AI in e-commerce businesses.Originality/valueThis study not only contributes to the field of logistics theory by presenting empirical data on the various ramifications of AI but also offers practical guidance for logistics firms, particularly those operating in developing economies, on how to strategically employ AI to enhance operational efficiency and attain a competitive advantage in the era of e-commerce logistics in the digital age.