You cannot use chatgpt or any of the openAI APIs for your conversational bot. Here is a thread explaning. If you want to use AI to prompt a user to enter their name, and they enter a sentence, you can use NLP to try and extract their name.