Piotr Sikora - Logo - Automatyzacja procesów | AI | JavaScript | Front End | Team Leader
  • Home
  • Services
    • Process Automation
    • AI for Lawyers
  • Blog
  • Quotes
  • Contact
PL/EN

Parameterizing an AI Agent in n8n with Google Sheets

  • Home
  • Blog
  • Parameterizing an AI Agent in n8n with Google Sheets
Parameterizing an AI Agent in n8n with Google Sheets

By Piotr Sikora

  • n8n

  • 26 March 2026

  • 1 min read

Table of Contents

  • How the workflow works
  • Why parameterize prompts externally
  • Watch the episode

Instead of hardcoding prompts inside a workflow, you can load them dynamically from an external source that is easy to edit and audit. In this episode I use Google Sheets as a prompt configuration store for an n8n AI Agent.

How the workflow works

  1. A Chat node takes the user's input.
  2. A Google Sheets node (Get Rows) fetches the system prompt from a spreadsheet.
  3. The AI Agent node combines the fetched system message with the user prompt and calls OpenAI.

Why parameterize prompts externally

  • Google Sheets keeps an automatic change history — you can audit how the prompt evolved.
  • Clients or teammates can edit prompts without access to the n8n workflow.
  • Configuration is centralized, which prevents copy-paste drift across workflows.

In the video I demo two examples: a history assistant answering questions about a given date, and an item-valuation agent returning min/mid/max prices as JSON — switching between them only by editing one spreadsheet cell.

Watch the episode

The video is available on YouTube: youtube.com/watch?v=4utnYrpX4xw.

All episodes are collected on the Automation Academy page (in Polish). Subscribe to my YouTube channel so you do not miss new material.

The video is in Polish; this post summarizes what it covers.

Tags:

    #n8n

    #google sheets

    #ai agents

    #openai

    #workflow automation

Comments

Categories

after-hours(1)AI(7)ai-en(1)angular(4)automatic-tests(1)Automation(2)cryptography(1)css(8)CyberSecurity(2)Development(7)DevOps(1)events(3)javascript(11)n8n(31)ollama(1)security(2)seo(1)

Recent Posts

OCR in n8n for Multiple Receipts and Invoices at Once — Saving to Google Sheets

n8n

OCR in n8n for Multiple Receipts and Invoices at Once — Saving to Google Sheets

Checking Variable Values in n8n: IF vs SWITCH

n8n

Checking Variable Values in n8n: IF vs SWITCH

Automate Your Gmail with n8n — AI-Generated Reply Drafts with an LLM

n8n

Automate Your Gmail with n8n — AI-Generated Reply Drafts with an LLM

n8n: ZPE Lesson Generator — from URL to a Complete Lesson in 90 Seconds

n8n

n8n: ZPE Lesson Generator — from URL to a Complete Lesson in 90 Seconds

How to Automate LinkedIn Profile Search with n8n

n8n

How to Automate LinkedIn Profile Search with n8n

About Me

Piotr Sikora - Process Automation | AI | n8n | Python | JavaScript

Piotr Sikora

Process Automation Specialist

I implement automation that saves time and money, streamlines operations, and increases the predictability of results. Specializing in process automation, AI implementation, and workflow optimization using n8n, Python, and JavaScript.

n8n Workflows

n8n workflow automation templates

Explore my workflow templates on n8n. Ready-to-use automations for blog management, data collection, and AI-powered content processing.

3Workflow Templates
View Templates

• Auto-Categorize Blog Posts with AI

• Collect LinkedIn Profiles

• Export WordPress Posts for SEO

Tags

activepiecesafter-hoursahrefsaiai agentsai automationAI cost reductionai in educationai securityangularanonymizationantigravityapiAqua Securityarcade-gamesarchitectureautomationbackendbest-practicesbielik
“Your time is limited, so don't waste it living someone else's life.”
Steve Jobs
View more quotes

Similar Articles

Discover more related content

Understanding the Simple Memory Node in n8n AI Agents

Understanding the Simple Memory Node in n8n AI Agents

Understand how the Simple Memory node works in n8n AI agents, how window size controls context, and why your chatbot suddenly forgets what you told it.

18 January 2026
OCR in n8n for Multiple Receipts and Invoices at Once — Saving to Google Sheets

OCR in n8n for Multiple Receipts and Invoices at Once — Saving to Google Sheets

Extending an n8n OCR workflow to process many receipts or invoices in one run: adjusting the AI agent prompt, handling an array of objects and saving multiple rows to Google Sheets automatically.

23 July 2026
How to Use the Merge Node in n8n Effectively — a Practical Guide

How to Use the Merge Node in n8n Effectively — a Practical Guide

How the n8n Merge Node works: combining branches and objects with Append, Combine and Choose Branch modes, and dealing with data clashes.

23 May 2026
Piotr Sikora | ai | n8n | javascript | python

Let's get to know each other!

Get in touch with me
Piotr Sikora | Process Automation  | AI Implementation 🤖 | Technology Consulting
Quick links
  • Home
  • Blog
  • Contact
Contact
  • piotr.sikora.ck@gmail.com
  • +48 505 684 661

© Piotr Sikora 2026 | All Rights Reserved