An environmentally friendly method which is based on preparation and use of a new composite consisting of poly 3-aminophenol and graphene oxide for solid-phase microextraction of triazole fungicides from natural water and juices is introduced. The composite was synthesized by in-situ polymerization of 3-aminophenol and graphene oxide in weak alkaline media. By using the obtained results from the characterization, a suitable mechanism for polymerization and a proper structure for the polymer were proposed. Under optimal conditions, there are linear relationships between concentration of triazoles and their HPLC peak areas in the range of 0.5–100 µg L−1. The recovery percentages, pre-concentration factors and LOQ for all triazoles were 95.2–98.0%, about 200 and 0.2–0.4 µg L−1, respectively. The offered method was applied for extraction and determination of triazoles from natural water, some juices and it represents a promising alternative method for analysis of triazoles.