A Cu4L4 square-like molecular container which can be a reusable visual sensor for Ag(+) is reported. The present results can be a useful stepwise approach for the construction of the heterometallic supramolecular complexes with potential applications.