Reddit AI digest n8n Workflow Template

n8n workflow template · 11 nodes · Reddit

Reddit AI digest is a free n8n workflow template that starts when you run it manually in the n8n editor and works with Reddit and OpenAI. It has 11 nodes, 3 of them AI nodes (OpenAI). The notes inside the workflow say: “︎ 1) Get posts from reddit that might be about n8n”

At a glance

Trigger
Manual Trigger (When clicking "Execute Workflow")
Nodes
11
Apps
Reddit and OpenAI
AI nodes
3
Credentials
None
Category
Content, SEO and social media

Apps and integrations

  • Reddit
  • OpenAI

Node types used

  • Manual Trigger
  • Reddit
  • Edit Fields (Set)
  • If
  • Merge
  • OpenAI

How it works

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

What this workflow does

︎ 1) Get posts from reddit that might be about n8n

  • Filter for the most relevant posts (posted in last 7 days and more than 5 upvotes and is original content)

︎ 2) Check if the post is actually about n8n

︎ 3) if it is, categorise with OpenAi.

Next steps

  • Improve OpenAI Summary node prompt to return cleaner summaries.
  • Extend to more platforms/sources - e.g. it would be really cool to monitor larger slack communities in this way.
  • Do some classification on type of user to highlight users likely to be in our ICP.
  • Separate a list of data sources (reddit, twitter, slack, discord etc.), extract messages from there and have them go to a sub workflow for classification and summarisation.

Drawbacks

Workflow only considers first 500 characters of each reddit post. So if n8n is mentioned after this amount, it won't register as being a post about n8n.io.

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.

Nodes in this workflow

The 11 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:

  1. When clicking "Execute Workflow" (Manual Trigger)
  2. Reddit (Reddit)
  3. Set (Edit Fields (Set))
  4. IF (If)
  5. IF1 (If)
  6. Merge (Merge)
  7. Merge1 (Merge)
  8. SetFinal (Edit Fields (Set))
  9. OpenAI Summary (OpenAI)A one sentence summary of what the post is about.
  10. OpenAI Classify (OpenAI)Is the post about n8n?
  11. OpenAI Summary Backup (OpenAI)A one sentence summary of what the post is about.

Credentials you need

The workflow JSON lists no credentials. Nodes that call external services may still need credentials after you import it.

How to import into n8n

  1. Download the JSON file with the button above.
  2. In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
  3. Open each node that shows a warning and select or create its credential.
  4. Read the notes on the canvas, test the workflow with sample data, then activate it.

Do you need somewhere to run it? Read our guide to self-hosted n8n.

Need this customised?

We can adapt this workflow to your apps, data and process, then deploy and support it.

Contact Us