The emergence of the internet as a global phenomenon is swiftly reshaping consumers' shopping habits and the process of purchasing goods and services. Consumers now have access to a wide array of products and services, especially with the aid of e-commerce. Additionally, companies can analyse consumer behaviour and gain a deeper understanding of their habits with the assistance of e-commerce or social media. The objective of this research is to ascertain the factors that impact consumers' intention to buy agricultural products. In April 2022, we performed an online consumer survey among 200 internet shoppers in Jakarta, Indonesia. The data was then analyzed using the WarpPLS software and Structural Equation Modeling (SEM). Our research showed that among the respondents, women, with an average age of 20–25 accounted for nearly 60% of respondents who purchased agricultural produce online in Jakarta. Moreover, SEM-PLS method revealed that the following factors had highly significant effects on consumers' purchasing intention to buy agricultural products in Indonesia: consumer behavior, subjective norms, demographic variables, time savings, and convenience. In light of these findings, it offers valuable technical and practical implications for agribusiness management and policymakers.