Virtual agents use natural language processing (NLP) technology to receive and interpret user inputs and create answers based on predetermined rules or machine learning models. They can also be linked to other systems or databases to supply data or conduct activities.