How to Use n8n with ChatGPT: A Beginner’s Guide to AI Workflows
Many beginners think n8n is just for software engineers. But its visual editor lets you connect forms, ChatGPT prompts, and Slack alerts without writing any JavaScript so you can build workflows faster.
If you want to compare platforms before getting started, check out our overview of ChatGPT automation tools for beginners.
Why Beginners Are Choosing n8n for AI Workflows
n8n is a flexible tool for building AI automations, and two features make it especially appealing for beginners who want simple, practical workflows:
Execution-based billing
A workflow with 3 nodes and one with 30 nodes each count as one execution per complete run, which can help keep costs tied to usage.
AI Agent and Memory nodes
You can connect ChatGPT with tools like calculators, company databases, and conversation memory on a visual canvas so that you can build more useful workflows without extra complexity.
n8n Cloud or Self-Hosted: Which Should Beginners Choose?
To build your first workflow, try the n8n Cloud free trial. You can set up a browser-based workspace without configuring a server so that you can start quickly.
After your workflows are running smoothly, you can either stick with n8n Cloud Starter (€20/month for 2,500 executions) or move your workflow files to a self-hosted VPS, which usually costs $5 to $10 per month. Remember, there may be extra costs like OpenAI API usage, more storage, or higher network traffic as your workflows grow. Self-hosting gives you more control, so review the latest plan details, hosting costs, and any possible extra expenses before deciding.
How to Build a Lead-Scoring AI Workflow in n8n
In this tutorial, you’ll build a workflow that collects a prospect’s inquiry, uses ChatGPT to score the lead, and alerts your sales team if the lead is high priority so that you can focus on the best opportunities.
1. Add an n8n Form Trigger
Start by creating a new workflow. Click Add first step and choose On form submission. Then add these fields:
Name — Text
Company Email — Email
Project Requirement — Textarea
n8n will generate a form URL for you to share with prospects.
2. Add the OpenAI Node
Click the plus icon next to the Form Trigger, search for OpenAI, and pick Message a Model. Enter your OpenAI API key under Credentials, choose a model (like gpt-4o-mini or gpt-5-mini), and turn on Output Content as JSON.
3. Configure the Prompt
Drag the Project Requirement field from the Input panel into the prompt box. Then use this prompt:
Lead-Scoring Prompt
Score this inquiry from 1 to 10 based on buying intent and clarity. Return JSON with two keys: score (number) and reason (one sentence under 20 words).
4. Test the First Two Nodes
Click Test workflow and fill out the preview form with a sample inquiry, like: “We need a 20-seat AI training cohort next month.” Check the parsed JSON output in the panel on the right. If the test doesn’t work, make sure your OpenAI API key is active, check that all form fields are mapped correctly to the prompt, and confirm you have internet access. Reviewing error messages in n8n can also help you spot missing or incorrect node settings so you can fix issues faster.
Add Conditional Routing with an IF Node
5. Insert an IF Node
Click the plus icon after the OpenAI node and select IF.
6. Set the Condition
Drag score into Value 1, select Number, then choose is greater than or equal to, and enter 7 in Value 2.
7 . Connect the True Branch
Connect a Slack or Gmail node to the true output. Set up the alert to include the prospect’s name, score, and summary, so your team can act quickly.
8. Connect the False Branch
Connect a Google Sheets node to the false output so you can log lower-priority inquiries for later review and keep track of them easily.
9. Activate the Workflow
Switch the workflow from Inactive to Active using the control in the top right corner.
Tips for Reliable n8n Workflows
Pin test data
Pin the Form Trigger output while you build so you can tweak your ChatGPT prompt without resubmitting the form every time and iterate faster.
Set up error alerts
Make a separate workflow with an Error Trigger and a Gmail node to get notified if an API call fails.
Want to go beyond lead scoring and try AI agents or business automation? Here are a few more beginner-friendly workflows you can build with n8n:
- Set up automated customer support responses using ChatGPT
- Summarise incoming emails or articles and send digests to your colleagues; route website contact form submissions to the right department
- Generate and post social media updates from new blog entries; Organise customer feedback from multiple channels into a central spreadsheet, Join the AcceleratorX Generative AI Business Track.

