I never actually used it, but as far as I understand it can only be used from the event callback for EVENT_QUEST_OFFERED, like this:
Code:
EVENT_MANAGER:RegisterForUpdate("AddOnName", EVENT_QUEST_OFFERED, function(event, ...)
local dialogue, response = GetOfferedQuestInfo()
d("Dialogue: "..dialogue)
d("Response: "..response)
end
My suggestion is get the
UI source code and search for the function name to see how it's used.