By self-assembly of (E)-2-(3-(4-(1H-imidazol-1-yl)styryl)-5,5-dimethylcyclohex-2-enylidene)malononitrile (L(1)) and (E)-2-(3-(4-(1H-1,2,4-triazol-1-yl)styryl)-5,5-dimethylcyclohex-2-enylidene)malononitrile (L(2)) with silver(I) salts, eight new complexes, namely AgL(1)2ClO4 (1), AgL(1)2NO3 (2), [AgL(1)2NO3]·C6H6 (3), [AgL(1)2OOCCF3]·C6H6 (4), [AgL(1)2PF6]·C6H6 (5), AgL(2)2NO3 (6), [AgL(2)OOCCF3]2 (7) and AgL(2)2PF6 (8), are presented along with an analysis of their structural features. The structures are built up through the combination of coordination bonds, Ag···π, Ag···F (or O), hydrogen bonding, and π···π stacking interactions to generate new supramolecular architectures. We observed the formation of two-dimensional coordination polymers for complex 7. Solvent benzene molecules and anions are dispersed in the supramolecular structure and play a vital role in building the supramolecular structures of the complexes. The nonlinear optical (NLO) properties of the complexes were investigated using the Z-scan technique and complexes 1, 2, 3, 4 and 7 show obviously nonlinear absorption compared with ligands (L(1) and L(2)).