In the ai you can see that this npc has a certain ai. In example the doorkepers ai. If you look through the ai you can check out that in the AI there's written that this question should be awnsered by opening/closing a certain door. This door is a variable set in the npcdata; at the AI party you probably see "FnHi=doorkeeper_colleseum001.htm;fnDoorName=colle seum_door" in example.

It might sound a bit complicated, but just look it through. AI isn't really that hard if you try writing some.