There are many ways to trigger a triac. One method (which seems to get asked about often) is to use a digital circuit to control the triac. In that case, you can use an MOC3010, MOC3011, etc. This is an optically coupled triac trigger. There are other methods, perhaps you should clarify what it is you want to do.