Member-only story
Journey to Explore Generative AI
Enhance Your App with Conversational Input Using ChatGPT API
Shift from Traditional User Input to an Engaging Chat-Based Input
Published in
5 min read 4 days ago
Assuming we have an app where the user provides a city name, the app will display the city’s name, country, longitude, latitude, and current temperature, as shown below.
Provide A City: Melbourne
city='Melbourne'
country='Australia'
longitude=144.9631 latitude=-37.8136
temperature=33.8

The input is relatively boring, as specific needed. What if user forget the name of the city, but remember something vague as below.
Provide A City: The forbidden city
city='Beijing'
country='China'
longitude=116.3974 latitude=39.9042
temperature=12.6

Or even no reference to the country or city such as below.
Provide A City: The headquarter of Nvdia
city='Santa Clara'
country='United States'…