Class: MessageParser

MessageParser(actionProvider)

MessageParser class for processing user input and determining the appropriate response. This class analyzes the user's message and triggers corresponding actions in the chatbot.

Constructor

new MessageParser(actionProvider)

Constructor for the MessageParser class.
Parameters:
Name Type Description
actionProvider object The action provider that contains the methods for handling different types of user input.
Author:
  • Patralika Ghosh
Source:

Methods

parse(message)

Parses the user's message and triggers corresponding actions. The method converts the message to lowercase and checks for key phrases to determine the response.
Parameters:
Name Type Description
message string The user's message to the chatbot.
Author:
  • Patralika Ghosh
Source: