First, you can build a device configuration of a bulk metal electrode and a molecule. In this device configuration, the buffer layers (i.e., the surface layers) should be contain thicker atomic layers of the electrode.
Second, according to the desired shape you may selectively delete some of the atoms in buffer layers next to the molecule.
By this way, you can construct a specific shape of gold in contact with the molecule conductor.