Prompting a chatbot to periodically create images himself

I created a chatbot in GPT Editor. I want the chatbot to initiate DALL-E image creation by itself after every 5 to 10 regular chat text messages during the conversation. The images should express or stylize the text and ideas that the chatbot aimed to express with text. I’ve tried various prompts but with no success