Providing a prompt or theme, users can use ChatGPT to write poetry, and ChatGPT will generate a poem based on the input. Users can also specify the type of poem they want, such as a sonnet, haiku, or free verse.