I am using a triac bta41-600b with MOC3083, doesn't work
The trigger current required to cause the output of the MOC3083 to work is 5mA according to the data sheet. You are using two AA batteries giving a voltage of 3V (I assume). The forward volt drop of the LED is 1.5 volts therefore, with a 470 ohm resistor, the current you are injecting into the LED is 3.2 mA and lower than the 5mA recommended. I'm not saying this is the cause but a possible cause.