input: def create_chatbot(initial_state: dict) -> None:
      """Create a simple chatbot using state diagrams where conversations start from an initial state.
      The chatbot will keep track of the current state and print messages based on user input.
      The conversation ends when a terminal state is reached.
      >>> create_chatbot({
          'name': 'state0',
          'message': 'Hello! How can I help you?',
          'replies': {'I need some advice': 'state1', 'Can you answer my questions?': 'state2'}
      })
      (Outputs interaction between the user and the chatbot according to the states provided)
      """
output:     current_state = initial_state
      while True:
          print(current_state['message'])
          if 'replies' not in current_state:
              break
          user_input = input("User: ")
          if user_input in current_state['replies']:
              next_state_name = current_state['replies'][user_input]
              current_state = next((state for state in states if state['name'] == next_state_name), None)
              if current_state is None:
                  print("Invalid state transition. Exiting.")
                  break
          else:
              print("Invalid input. Please try again.")