🎬 Extract invoice data from Gmail with GPT-4o and send Slack notifications

⚑ 287 views · 🎬 Content Creation & Video

Description

Who is this for?

This workflow is ideal for freelancers, accountants, and finance teams who receive invoices in Gmail and want to automate their tracking process with AI.

If your inbox fills up with invoice-related messages and you want to automate how they’re handled, this AI-powered solution is for you.

What does it solve?

How it works

How to setup?

  1. Connect these accounts:

    • Gmail using OAuth2
    • Slack using OAuth2
    • OpenAI (API Key under credentials)
  2. Customize the Slack message (optional):

    • In the Slack node, you can modify the text to show more fields or personalize the formatting.
  3. Adjust the schedule:

    • By default, the workflow runs hourly. You can change the frequency in the Schedule Trigger node.
  4. Modify the AI logic (optional):

    • Update the AI Agent prompt to detect additional types like receipts or payment confirmations.

How to customize this workflow to your needs

πŸ”— Nodes Used

Slack, Gmail, Schedule Trigger, AI Agent, OpenAI Chat Model, Structured Output Parser

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup