Skip to content

Instantly share code, notes, and snippets.

@jimfaster
Created July 2, 2025 01:33
Show Gist options
  • Select an option

  • Save jimfaster/0e5565d2098fbec186211cc4cb3e20cd to your computer and use it in GitHub Desktop.

Select an option

Save jimfaster/0e5565d2098fbec186211cc4cb3e20cd to your computer and use it in GitHub Desktop.
Mind map for YouTube video: How to Trigger n8n AI Agents from ChatGPT (no code)

How to Trigger n8n AI Agents from ChatGPT (no code)

TL;DR

The video demonstrates how to connect ChatGPT with n8n (a no-code automation tool) to trigger AI agents or workflows without writing any code. The presenter shows two examples: first, an AI assistant that sends an email to a contact (Dexter Morgan) upon request, and second, a practical workflow where ChatGPT analyzes an invoice PDF, extracts key data (like date, invoice number, and total), and sends it to n8n for processing into a Google Sheet. The process involves creating a custom GPT with an OpenAPI schema to communicate with n8n's webhook, configuring the webhook to listen for POST requests, and mapping the extracted data to a database. The video also highlights the flexibility of using ChatGPT's vision capabilities for tasks like OCR, eliminating the need for additional tools in n8n. The presenter concludes by promoting their paid community for deeper n8n learning, offering courses and partnerships with AI tool discounts.

Detailed Summary

  • Introduction:

    • Demonstrates triggering n8n workflows from ChatGPT using no-code methods.
    • Shows two examples: an email-sending AI agent and an invoice-processing workflow.
  • Email Sending Demo:

    • ChatGPT sends a request to an n8n assistant, which searches a contact database and drafts an email.
    • The email is sent via n8n's email agent, and the response is relayed back to ChatGPT.
  • Invoice Processing Workflow:

    • A custom GPT is configured with an OpenAPI schema to send invoice data to an n8n webhook.
    • ChatGPT uses its vision to extract fields (date, invoice number, total, etc.) from a PDF invoice.
    • n8n receives the data and maps it to a Google Sheet, with the workflow verified by matching extracted data to the original invoice.
  • Technical Setup:

    • Use of "Actions GPT" to generate the OpenAPI schema for the custom GPT.
    • Configuring the n8n webhook to listen for POST requests and respond immediately or via a "respond to webhook" node.
    • Switching between test and production webhook URLs by removing the "/test" suffix in the schema.
  • Advanced Example:

    • Demonstrates a delayed response using the "respond to webhook" node, where ChatGPT waits for n8n to fetch contact details from an Airtable base.
  • Community Promotion:

    • Mentions a paid community for n8n learners, offering courses ("Agent Zero" and "10 Hours to 10 Seconds") and partnerships with AI tool discounts.
    • Encourages viewers to like the video if they found it helpful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment