Generic command interpretation algorithms for conversational agents