In the workshop, an example used is tidying up a room. The imperative approach involves giving exact instructions on what to do step-by-step. The declarative approach involves showing a picture of a tidy room and asking to match the room to that state without specific instructions.