Templates / Beginner's Guide to Workflow Automation with OpenAI, LangChain & API Integrations

Beginner's Guide to Workflow Automation with OpenAI, LangChain & API Integrations

Needs changes

by Meelioo ✓ · 1,152 views · created 2025-10-06 · Engineering, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 21 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects OpenAI Chat Model. It also calls jsonplaceholder.typicode.com and api.openai.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).

  1. Set Initial Data (Edit Fields (Set)): sets or maps fields
  2. Send Webhook Response (Respond to Webhook): sends the response back to the webhook caller
  3. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (Tool: Calculator, Tool: Current Time); memory: Window Buffer Memory
  4. Code: runs custom JavaScript code
  5. If: checks a condition and branches into true / false
  6. True Branch Data (Edit Fields (Set)): sets or maps fields
  7. False Branch Data (Edit Fields (Set)): sets or maps fields
  8. Merge: merges the data from its input branches
  9. Final Summary (Edit Fields (Set)): sets 1 field: workflow_summary
  10. HTTP Request: calls jsonplaceholder.typicode.com

…plus 3 more steps. See the full node list below.

Services it uses

OpenAI Chat Model

HTTP calls to: jsonplaceholder.typicode.com, api.openai.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent - n8n Assistant (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent - n8n Assistant (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (15)

From the author

How it works This beginner-friendly workflow demonstrates the core building blocks of n8n. It guides you through: - Triggers – Start workflows manually, on a schedule, via webhooks, or through chat. - Data processing – Use Set and Code nodes to create,…

Excerpt from Meelioo's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.