input: from typing import Dict, List
  
  def create_chatbot_with_state_diagrams(initial_state: Dict) -> List[str]:
      """ Create a simple chatbot using Python and state diagrams as described in the instruction.
      The chatbot will take the initial state and follow the user inputs to navigate through the states.
      It will keep a record of the conversation and end when a terminal state is reached.
      >>> create_chatbot_with_state_diagrams({
          'name': 'state0',
          'message': 'Hello! How can I help you?',
          'replies': {'I need some advice': 'state1', 'Can you answer my questions?': 'state2'}
      })
      ['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!']
      """
output:     conversation = []
      current_state = initial_state
      
      while True:
          conversation.append(current_state['message'])
          
          if 'replies' not in current_state:
              break
          
          user_input = input(">> ")
          conversation.append(f">> {user_input}")
          
          if user_input in current_state['replies']:
              next_state_name = current_state['replies'][user_input]
              current_state = get_state_by_name(next_state_name)
          else:
              conversation.append("Invalid input. Please try again.")
      
      conversation.append("Goodbye!")
      return conversation