It baffles me that the interface into the ChatGPT API is a blob of unstructured text. This seems to be the core reason for this attack vector.
Why is there no structured API into ChatGPT? I developed some tools with the Amazon Alexa voice API about a decade ago and remember that was the default operating mode. There were different classes for weather, tasks, Q&A, etc. Never heard of a "prompt injection" attack against the Alexa API...