# Best chatgpt/GPT4 command to extract only messages in a topic?

**URL:** https://meta.discourse.org/t/best-chatgpt-gpt4-command-to-extract-only-messages-in-a-topic/277875
**Category:** Support
**Created:** [September 5, 2023, 4:18pm UTC](https://meta.discourse.org/t/best-chatgpt-gpt4-command-to-extract-only-messages-in-a-topic/277875 "2023-09-05T16:18:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![InquilineKea](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/inquilinekea/32/287660_2.png) [@InquilineKea](https://meta.discourse.org/u/InquilineKea)
#### Post date: [September 5, 2023, 4:18pm UTC](https://meta.discourse.org/t/best-chatgpt-gpt4-command-to-extract-only-messages-in-a-topic/277875/1 "2023-09-05T16:18:01Z")

</div>

What is the best chatgpt/GPT4 command to use to extract _only_ all messages in a topic while removing out all the header/separator information?

Eg at `https://www.rapamycin.news/t/what-are-your-favorite-low-er-calorie-low-calorie-per-volume-ratio-or-appetite-suppressing-foods/3625`

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [September 5, 2023, 6:42pm UTC](https://meta.discourse.org/t/best-chatgpt-gpt4-command-to-extract-only-messages-in-a-topic/277875/3 "2023-09-05T18:42:42Z")

</div>

Aside from using the API to interact with ChatGPT and the content of your topics and replies, you can also feed it the raw markdown, which is easier to copy and paste at least. 🙂

In Discourse, use the `raw` route with the topic ID, like so: [https://www.rapamycin.news/raw/3625/](https://www.rapamycin.news/raw/3625/)

That greatly reduced the amount of meta data and rendering information included in the content. 👍
