Templates / Ingredient price trend analysis & buying recommendations with PostgreSQL, API & Slack

Ingredient price trend analysis & buying recommendations with PostgreSQL, API & Slack

Needs changes

by Oneclick AI Squad ✓ · 534 views · created 2025-07-14 · Market Research, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Cron. 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs on a schedule (legacy Cron node). Along the way it connects Postgres. It also calls api.example-food-prices.com and hooks.slack.com over HTTP.

How it runs

Trigger: On a schedule (legacy Cron node).

  1. Fetch API Prices (HTTP Request): calls api.example-food-prices.com
  2. Setup Database (Postgres): run a query
  3. Store Price Data (Postgres): uses Postgres
  4. Calculate Trends (Postgres): run a query
  5. Generate Recommendations (Code): runs custom JavaScript code
  6. Store Recommendations (Postgres): uses Postgres
  7. Get Dashboard Data (Postgres): run a query
  8. Generate Dashboard HTML (Code): runs custom JavaScript code
  9. Send Email: sends an email over SMTP
  10. Send Slack Alert (HTTP Request): calls hooks.slack.com

Services it uses

Postgres

HTTP calls to: api.example-food-prices.com, hooks.slack.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Cron in Daily Price Check: replace with Schedule Trigger.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Cron
Daily Price Check
Schedule Trigger

Nodes used (5)

From the author

This automated n8n workflow monitors ingredient price changes from external APIs or manual sources, analyzes historical trends, and provides smart buying recommendations. The system tracks price fluctuations in a PostgreSQL database, generates actionable…

Excerpt from Oneclick AI Squad's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.