Hi,
The trick is to built this in your logic, if you try to separate your tutorial from your game logic it will be very difficult, possible but requiring too much brainstorming for an average project.
It also depends what is the interaction between the expect action with AND without the tutorial on, that is, if you say "Click on this buton", you have to implement on the button a event being sent to the tutorial system to know this button was click. That's the most straight forward approach. With more complex UI, especially when one action can be achieved in several ways, this starts to become a bit more complex. In essence, you have to abstract each tutorial step you want to "show", so that the tutorial can know when this step is initiated and when this step is performed. Then it's all good.
bye,
Jean