You have to classify the input.
There is 3 options.
1. Image Creation.
2. Chatbot
3. Unsupported.
Example: "Make me an image of a dog."
Output: "Image Creation. prompt: image of a dog."
Ready for next input. Answer with yes.