input: def create_chatbot_with_state_diagrams():
      """
      Create a simple chatbot using a state diagram where each state is defined by a dictionary.
      The chatbot will start at a specific state and navigate through different states based on user input.
      Once the chatbot reaches an terminal state (a state with no replies), the conversation ends.
  
      Example:
      >>> create_chatbot_with_state_diagrams()
      Hello! How can I help you?
      >> I need some advice
      Sure, what kind of advice do you need?
      >> Career advice
      It is always a good idea to research the field you are interested in and creating a plan to learn the skills that are required. Make sure to contact professionals in the field to understand their experience.
      Goodbye!
      =========================
      Conversation:
      Hello! How can I help you?
      I need some advice
      Sure, what kind of advice do you need?
      Career advice
      It is always a good idea to research the field you are interested in and creating a plan to learn the skills that are required. Make sure to contact professionals in the field to understand their experience.
      """
output:     states = {
          "start": {
              "message": "Hello! How can I help you?",
              "replies": {
                  "I need some advice": "advice"
              }
          },
          "advice": {
              "message": "Sure, what kind of advice do you need?",
              "replies": {
                  "Career advice": "career_advice"
              }
          },
          "career_advice": {
              "message": "It is always a good idea to research the field you are interested in and creating a plan to learn the skills that are required. Make sure to contact professionals in the field to understand their experience.",
              "replies": {}
          }
      }
  
      current_state = "start"
  
      while states[current_state].get("replies"):
          print(states[current_state]["message"])
          user_input = input(">> ")
          current_state = states[current_state]["replies"].get(user_input, current_state)
  
      print(states[current_state]["message"])
      print("Goodbye!")