I have a mechanical chime, however I searched youtube and found a video on how to do this with a Ring doorbell and an electronic chime. You should be able to do the same. Note that he has a 24v transformer, so he got a 24v AC relay. You can see his schematic around 12 minutes into the video.