input: def create_state_chatbot() -> None:
      """
      Creates a simple chatbot using Python and state diagrams. The bot interacts with the user through a series of predefined states, each with a specific message and possible replies. The conversation continues until a terminal state is reached, at which point the chatbot will print the entire conversation and exit.
      
      Example:
      >>> create_state_chatbot()
      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.
      =========================
      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',
                  'Personal advice': 'personal_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': {}
          },
          'personal_advice': {
              'message': 'Personal advice can be very subjective. It is important to reflect on your own values and goals, and seek advice from people you trust.',
              'replies': {}
          }
      }
  
      current_state = 'start'
      conversation = []
  
      while current_state in states:
          state_info = states[current_state]
          print(state_info['message'])
          conversation.append(state_info['message'])
          
          if not state_info['replies']:
              break
          
          user_input = input('>> ')
          conversation.append(user_input)
          
          if user_input in state_info['replies']:
              current_state = state_info['replies'][user_input]
          else:
              print("Sorry, I didn't understand that.")
              break
  
      print('=========================')
      print('Conversation:')
      for line in conversation:
          print(line)