This paper employs artificial intelligence methods in order to create a function for compressive strength of the boroaluminosilicate geopolymers based on mixture proportion variables. Boroaluminosilicate geopolymers (BASGs), a group of boron-based alkali-activated materials, not only minimise the carbon footprint in the construction industry but also decrease the consumption of energy and natural resources. Australian fly ash and iron making slag are activated in sodium and boron-based alkaline medium in order to produce the geopolymer binders. The current study employs artificial neural network in order to classify the collected data into train, test, and validation followed by genetic programming for developing a function to approximate the compressive strength of BASGs. The independent variables comprise the percentage of fly ash and slag as well as ratios of boron, silicon, and sodium ions in the alkaline solution. The performance of each method is assessed by the acquired regression and the error parameters. The obtained results show that the percent of silicon and boron ions, with positive direct correlation and the largest power in the function respectively, have the most significant effects on the compressive strength of BASG. The assessment factors, including R-squared 0.95 and root-mean-square error 0.07 in the testing data, indicate that the model explains all the variability of the response data around its mean. It implies a high level of accuracy and reliability for the model.