Adam,
Not so fast! If you look at the datasheet you see that you need a few more parts to make it work. First a series resistor for the input (or you blow the led inside). And also a snubber circuit to help the triac get the correct gate current and such you can see an example of this on page 4.