n8nForumDailyDigest

Daily cron val that:

  1. Fetches recent topics and posts from the n8n forum "Questions" category.
  2. Summarizes the discussions (last 24 hours) using OpenAI.
  3. Emails the digest to you.

Secrets / env vars

Set these in Val Town Secrets if needed:

Optional:

  • OPENAI_MODEL: OpenAI model name (default: gpt-4o-mini).
  • OPENAI_API_KEY: If you are using a custom OpenAI integration. By default, it uses Val Town's standard OpenAI helper.

How it works

  • The val fetches the top topics in the "Questions" category via the Discourse JSON API.
  • It filters for topics that had activity (new posts) in the last 24 hours.
  • For each active topic, it fetches the first post (to get the context of the question) and any posts made in the last 24 hours.
  • It passes this content to OpenAI for summarization, following the same format as discordDailyDigest.
  • Finally, it sends an HTML email with the summary.

Notes

  • This val uses the public Discourse API and does not require forum credentials.
  • It targets category 12 ("Questions").
  • On Val Town Free, the v/std/email helper only emails the account owner.