Sofia Vergara is poised to fill one of the 2 seats that are open on “America’s Got Talent” … TMZ has learned.

Sources with direct knowledge tell TMZ … Sofia met with ‘AGT’ honchos Wednesday for 2 hours. She was 20 minutes late for the meeting, but that didn’t dissuade the decision-makers.

Our sources say Sofia had a big audience over at NBC, from Entertainment Prez Paul Telegdy on down. There were also members of Fremantle present, which produces ‘AGT.’

As you know … Gabrielle Union and Julianne Hough were not invited back for the next installment of ‘AGT.’

Our sources say although ‘AGT’ was top of mind, the honchos wanted to meet with Sofia on a variety of possible projects, including dramas and a possible Spanish language project — NBC owns Telemundo.

“Modern Family” is in its last season, and we’re told NBC wants to get into business with Sofia … our sources say she’s a “global star” who is an extremely versatile entertainer.

As we reported, Union has gone public, claiming ‘AGT’ has a toxic culture and she was fired after complaining. ‘AGT’ folks say they routinely rotate judges so nothing was out of the ordinary.

The next ‘AGT’ airs next month.