input: 
  from dialogflow_v2 import SessionsClient, types
  
  def virtual_assistant(project_id: str, session_id: str) -> None:
      """Create a virtual assistant using Python and Dialogflow to answer a basic set of questions.
      The assistant will continuously prompt the user for input, send the input to Dialogflow,
      and print the response from Dialogflow.
      
      >>> virtual_assistant('project-id', 'session-id')
      User: What is the weather today?
      Assistant: Today's weather is sunny with a high of 75 degrees Fahrenheit.
      User: Thank you.
      Assistant: You're welcome!
      """
      session_client = SessionsClient()
      session = session_client.session_path(project_id, session_id)
      
      while True:
          text = input('User: ')
          text_input = types.TextInput(text=text, language_code='en-US')
          query_input = types.QueryInput(text=text_input)
          response = session_client.detect_intent(session=session, query_input=query_input)
          
          print('Assistant:', response.query_result.fulfillment_text)
  
output:     if text.lower() in ['exit', 'quit', 'bye']:
          print('Assistant: Goodbye!')
          break