NPC Dialogues
A NPC Dialogue is build up of triggers and responses. The response can be a combination of chat message and a response script build of Response Operations. Dialogues can either be build from KAs or from Quests.
References
Debugging in game
You can see which KA the NPCs has using /info on him.