Fill additional slots if a location is found

Hello everyone, my chatbot is able to extract countries and german cities, that are found in a lookup table file. The intents are working fine and the slots “country” and “city” are filled right. As next I want an intent, that require a country, but also can recieve an city and automatically recieve the associate country. I tried it with synonyms:

synonym:Deutschland

  • Berlin

synonym:USA

  • New York

That doesn’t work because the city slot then gets filled with “Deutschland” or “USA”.

  1. Is there a way to get the countries to the cities?
  2. Is there a component/pipeline that offers entity extractions for countries and large cities all over the world in german language?