Using chatGPT for this will be difficult because the official API isn't available yet. I'd recommend trying to integrate with one of the models that have an API already. Probably text-davinci-003 for this use case.