This reminds me of this classic paper [1] "Maze Solving by Chemotactic Droplets". Oil droplets sense a chemical gradient as variation of interfacial tension, using what is commonly known as the "Tears of wine", or Marangoni effect, to propel themselves to the exit.