You can monitor chat for specific words and when they are 'said' either send messages, place a node, play a sound, etc.
minetest.register_on_chat_message(function(name,message)
if string.match(message, 'foobar') then
minetest.chat_send_all('<server> foo + bar')
end
)