Daily cron val that:
- Fetches recent topics and posts from the n8n forum "Questions" category.
- Summarizes the discussions (last 24 hours) using OpenAI.
- Emails the digest to you.
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.
- 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.
- 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.