See llms.txt for all machine-readable content.

Back to Templates

Catch supplier and subscription price rises from email with OpenAI, Slack and a data table

Quick overview

Price-rise emails are easy to miss, so this n8n workflow reads vendor mail in Gmail and logs each price change it finds. Every email becomes a row in an n8n data table, big rises can post to Slack, and a weekly digest can arrive by email.

How it works

  1. A Gmail trigger checks every 15 minutes for unread mail that matches a search you write, and a weekly schedule starts the digest on Monday at 08:00.
  2. One OpenAI call returns whether the email is a price change, the vendor, both prices, the currency, the billing period and the effective date.
  3. Code then checks the answer, and an email that fails a check or announces several changes is marked needs_review with a reason. A change already logged with the same vendor, prices and date is marked as a repeat and raises no alert.
  4. Each email gets one row in a data table, and a rise above your threshold, or an email that needs a look, posts to Slack when the Slack switch is on.
  5. The weekly digest lists rises by yearly cost, price cuts, the net yearly effect per currency, emails that need a look and alerts Slack did not confirm.

Setup

  1. Import the workflow and run the Set Up Tables branch once to create the price_changes data table.
  2. Connect Gmail, OpenAI and Slack credentials, replace the placeholder Gmail search with one that matches your vendor mail, and set the alert threshold, Slack channel and digest address in Your Settings.
  3. Both send switches are off by default, so nothing is posted or emailed until you turn them on. The trigger reads unread mail only, so mail already marked as read is never processed.
  4. Send yourself a made-up unread price email and read the new row in the table before you publish.

Requirements

  • An n8n instance on a version with data tables, a Gmail credential, an OpenAI API key (billed by OpenAI) and, only for alerts, a Slack credential and a channel the app has joined. Each email with text sent to the AI step is one OpenAI model call billed to your OpenAI account, and the cost per email was not measured.

Customization

  • Your Settings holds the alert threshold (10 percent by default), the Slack switch and channel, the digest switch and address, and the number of days the digest covers. The model is set on the Price Reader Model node (gpt-5-mini as set in the file, which you can change), and the instructions it follows are in the Read The Price Details node.

Additional info

It never writes to a vendor. The weekly digest runs in your n8n instance's timezone, a negative alert threshold falls back to 10, and duplicate emails are not removed beyond the repeat check. One plan per email: an email that announces several changes goes to needs_review. The AI step is checked by code but is no guarantee, and a price in another currency is never converted. English is the main language. The workflow was tested on made-up emails with real OpenAI calls, and real Slack posts and digest emails were not sent in testing, so run your own test first. The licence covers personal and commercial use on your own instances and for your own clients. Reselling or redistributing the files themselves is not part of the licence.

Need this fitted to your own tools or process? Tell us the job and we will send a fixed-price quote within one working day. fractionalhq.uk/custom-builds