Examples of ChatGPT integration

Hi,

I’d like to use ChatGPT to come up with new, funny, unique things to say when certain events happen - team scores a goal, kids get home, bedtime, etc. Getting those events to fire is no problem, but I’m having a really hard time figuring out how to get HA to use the ChatGPT API to come up with the text I want to send to TTS over my Sonos devices. I already have other TTS messages playing over Sonos, so that’s covered also. It’s just the ChatGPT piece I need help with. I already have a paid account for ChatGPT.

Can someone show me some examples to help get me started?