The poems are crafted by ChatGPT, while the artwork is generated by DALL-E. The chosen topic, either provided or selected by ChatGPT, guides the poem's creation. This topic is then incorporated into the art prompt to ensure coherence between the two elements.