Skip to main content

✈️ CO2 emissions of business travels with Carbon Interface API and GPT-4o

Workflow preview

Workflow preview
100%
✈️ CO2 emissions of business travels with Carbon Interface API and GPT-4o preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Tags : Sustainability, Business Travel, Carbon Emissions, Flight Tracking, Carbon Interface API Context Hi! I’m Samir, a Supply Chain Engineer and Data Scientist based in P...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.splitout, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Samir Saci.

Original n8n.io source

1.1 Workflow description

Title
✈️ CO2 emissions of business travels with Carbon Interface API and GPT-4o
Workflow name
✈️ CO2 emissions of business travels with Carbon Interface API and GPT-4o

Tags: Sustainability, Business Travel, Carbon Emissions, Flight Tracking, Carbon Interface API

Context

Hi! I’m Samir, a Supply Chain Engineer and Data Scientist based in Paris, and founder of LogiGreen Consulting.

I help companies monitor and reduce their environmental footprint by combining AI automation, carbon estimation APIs, and workflow automation.

This workflow is part of our sustainability reporting initiative, allowing businesses to track the CO₂ emissions of employee flights.

> Automate carbon tracking for your business travel with AI-powered workflows in n8n!

📬 For business inquiries, feel free to connect with me on LinkedIn

Who is this template for?

This workflow is designed for travel managers, sustainability teams, or finance teams who need to measure and report on emissions from business travel.

Let’s imagine your company receives a flight confirmation email:

The AI Agent reads the email and extracts structured data, such as flight dates, airport codes, and number of passengers.

Then, the Carbon Interface API is called to estimate CO₂ emissions, which are stored in a Google Sheet for sustainability reporting.

How does it work?

This workflow automates the end-to-end process of tracking flight emissions from email to CO₂ estimation:

  • 📨 Gmail Trigger captures booking confirmations
  • 🧠 AI Agent extracts structured data (airports, dates, flight numbers)
  • ✈️ Each flight leg is processed individually
  • 🌍 Carbon Interface API returns distance and carbon emissions
  • 📄 A second Google Sheet node appends the emission data for reporting

Steps:

  1. 💌 Trigger on new flight confirmation email
  2. 🧠 Extract structured trip data using AI Agent (flights, airports, dates)
  3. 📑 Store flight metadata in Google Sheets
  4. 🧭 For each leg, call the Carbon Interface API
  5. 📥 Append distance, CO₂ in kg, and timestamp to the flight row

What do I need to get started?

You’ll need:

  • A Gmail account receiving SAP Concur or travel confirmation emails
  • A Google Sheet to record trip metadata and CO₂ emissions
  • A free Carbon Interface API key
  • Access to OpenAI for parsing the email via AI Agent
  • A few sample flight confirmation emails to test

📺 Learn More with n8n Tutorials

Get hands-on experience with automation through my comprehensive n8n tutorial playlist, featuring 18+ complete, step-by-step videos and ready-to-use templates.

Next Steps

🗒️ Use the sticky notes in the n8n canvas to:

  • Add your Gmail and Carbon Interface credentials
  • Send a sample booking email to your inbox
  • Verify that emissions and distances are correctly added to your sheet

This template was built using n8n v1.93.0
Submitted: June 7, 2025

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Gmail Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 2 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 3 - AI Agent Parser

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 4 - OpenAI Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 5 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 6 - Record Flights Information

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 7 - Loop Over Flights

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 8 - Collect CO2 Emissions

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Load Results

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow ✈️ CO2 emissions of business travels with Carbon Interface API and GPT-4o
Complexity intermediate
Nodes 12
Categories Document Extraction, AI Summarization
Author Samir Saci
Published 07 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4756/4756.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does ✈️ CO2 emissions of business travels with Carbon Interface API and GPT-4o do?

Tags : Sustainability, Business Travel, Carbon Emissions, Flight Tracking, Carbon Interface API Context Hi! I’m Samir, a Supply Chain Engineer and Data Scientist based in P...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.