Returning data AND instructions back from an API to a Custom GPT

I have experimented in a small way with having my APIs return requested data AND instructions back to my Custom GPT on how to process and/or display that data. And it works very well. But I’ve wondered whether the entire GPT could be run this way.

You’d have just very simple hard-coded instructions in the GPT, asking it to call an endpoint. The endpoint would return data and instructions. The GPT would follow those instructions and so on.

Has anyone done that? Sitting down to try myself right now.

1 Like

yup, already have one one on that and it is public :smiley: i imagine there will be many gpts on this!

1 Like

I created API endpoints that return a JSON structure and within that I included a “notesForAssistant” field with instructions.
I’ve seen this being done in some of the early Plugins.

1 Like