Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Content Writing & Generation

Content Writing & Generation

Summarize and Classify Reddit Posts with OpenAI

When you run it, the workflow pulls posts from Reddit, filters them, and uses OpenAI to summarize and classify each one into a digest.

What it does

## What we learned - 🪶 Writing prompts: small changes in the type of prompt result in very different results. e.g. for Summarising OpenAI would use multiple sentences even if we asked it to use only 1. We got better results by following OpenAI's documentation. - We could make OpenAI node easier to work with for new users by the node inputs being oriented not to sending parameters to api but by following their suggestions - e.g. have a field for expected output format rather than just for prompt. - ↕️ Changing the max_tokens parameter drastically changes results - sometimes making it smaller even improves results (e.g. when you want a yes/no response in the OpenAI Classify node). In their docs they recommend using max_tokens>256 but n8n by default uses max_tokens=16. We should probably update this.

The steps

  1. When clicking "Execute Workflow"
  2. Reddit
  3. Set
  4. IF
  5. IF1
  6. Merge
  7. Merge1
  8. SetFinal
  9. OpenAI Summary
  10. OpenAI Classify
  11. OpenAI Summary Backup

Similar automations