Even though Bosnia and Herzegovina was still part of the Ottoman Empire, at least formally, the Austrian-Hungarian authorities had factual control over the country. Austria-Hungary waited for a chance to incorporate Bosnia and Herzegovina formally as well. Any action concerning Bosnia and Herzegovina depended on international opinion, which Austrian-Hungarian authorities were aware of. They used the Young Turk Revolution in the Ottoman Empire to finally annex Bosnia and Herzegovina. The Young Turk movement had gained support in mass protests throughout the Ottoman Empire during 1908, with their intention to restore the suspended Ottoman constitution. The Austrian-Hungarian authorities were afraid that the revolution could spread to Bosnia and Herzegovina, as it had support from the Bosnian Muslims and the Serbs, who supported the autonomy of Bosnia and Herzegovina within the Ottoman Empire. On 7 September 1908, the SNO and the MNO demanded that Bosnia and Herzegovina accept the constitution as part of the Ottoman Empire.

Can we conclude that was bosnia part of the austro hungarian empire?
no