How can you automatically input the same prompt to gpt-4?

I’ve found a good prompt that generates the desired outputs, is there a way to automate the process of inputing it to chatgpt and saving the outputs in a text file/spreadsheet?

Welcome to our dev community.

Sounds like you’re ready to dive into using the API which is the way to automate the process.