If you are looking for maybe a dungeon encounter or 2, then i suggest using the pathfinder RPG bestiary encounter tables, probably low level dungeon, here.
Right in front of the "treasure room" or bandit stash you could have:
- a puzzle
- a boss fight
- or a combination of both.