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

System Message in the n8n AI Agent — Giving Your Agent a Role and Rules

  • Home
  • Blog
  • System Message in the n8n AI Agent — Giving Your Agent a Role and Rules
System Message in the n8n AI Agent — Giving Your Agent a Role and Rules

By Piotr Sikora

  • n8n

  • 18 March 2026

  • 1 min read

Table of Contents

  • What you will learn
  • Good practices from the episode
  • Watch the episode

An AI Agent without a well-defined system message answers however it likes — formal one time, casual the next, sometimes off-topic. In this episode I show how to give the agent a fixed role and rules.

What you will learn

  • How a system message differs from the user prompt and why the split matters.
  • How to define the agent's role, tone and constraints in the AI Agent node.
  • How to make every query follow the same rules.
  • Common mistakes when writing system messages and how to avoid them.

Good practices from the episode

In short: role, scope, response format and prohibitions — those four elements in a system message solve most problems with unpredictable agent replies. The rest you refine iteratively based on tests.

Watch the episode

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

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

    #youtube

    #n8n best practices

    #n8n ai agent node

    #system message

    #prompt engineering

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
“If you get on the wrong train, get off at the nearest station”
Japanese proverb
View more quotes

Similar Articles

Discover more related content

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
Automate Your Gmail with n8n — AI-Generated Reply Drafts with an LLM

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

An n8n workflow that automatically fetches new Gmail messages, analyzes them with an AI Agent and creates ready-to-review reply drafts in your inbox.

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

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

An n8n workflow that turns an e-material from Poland's Integrated Education Platform (ZPE) into a complete teaching package: lesson plan, worksheet, quiz and practical exercises.

12 June 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