n8n - AI Tool Features & Models | PandaiTech
n8n

n8n AI Tool Features & Models

Features

AI Agent

Description

The AI Agent feature in n8n allows you to build intelligent bots capable of thinking and making decisions using Large Language Models (LLM). It connects AI reasoning with practical tools like Notion, Gmail, or HTTP Request to execute complex tasks automatically without requiring rigid workflows.

Feature AI Agent dalam n8n membolehkan anda membina bot pintar yang boleh berfikir dan membuat keputusan sendiri menggunakan Large Language Models (LLM). Ia menghubungkan otak AI dengan tools praktikal seperti Notion, Gmail, atau HTTP Request untuk melaksanakan tugasan kompleks secara automatik tanpa perlu flow yang rigid.

Step by Step
1. Start the workflow with a trigger such as Chat Trigger or Telegram Trigger, then add the AI Agent node. 2. Connect your preferred Chat Model, such as OpenAI, Anthropic, or Google Gemini, and ensure the API Key is provided. 3. Add a Memory node (such as Window Buffer Memory) so the agent can remember the context of the ongoing conversation. 4. Add the tools required by the agent, for example, the Notion Tool to access databases or HTTP Request to check website status. 5. In the tool settings, change parameters to "Define below" or use the $fromAI expression so the agent can dynamically determine inputs like dates or status. 6. Write a clear System Message in the agent settings to define its role and how it should utilize the tools.
1. Mulakan workflow dengan trigger seperti Chat Trigger atau Telegram Trigger, kemudian masukkan node AI Agent. 2. Sambungkan Chat Model pilihan anda seperti OpenAI, Anthropic, atau Google Gemini dan pastikan API Key telah dimasukkan. 3. Tambah node Memory (seperti Window Buffer Memory) supaya agent boleh ingat konteks perbualan yang sedang berlaku. 4. Masukkan tools yang diperlukan oleh agent, contohnya Notion Tool untuk akses database atau HTTP Request untuk check status website. 5. Di dalam setting tools, ubah parameter kepada Define below atau expression $fromAI supaya agent boleh tentukan sendiri input seperti tarikh atau status secara dinamik. 6. Tulis System Message yang jelas dalam setting agent untuk beritahu peranannya dan cara ia patut menggunakan tools tersebut.
Tips & Tricks
• Use the $fromAI expression in tool parameters to allow the AI to determine what data to input based on the conversation context. • Provide a highly specific System Message; for example, tell the agent it is an IT Administrator whose sole task is to monitor websites. • You can combine research tools like Perplexity with action tools like Gmail to create an agent that conducts research and sends reports independently. • If using Telegram, ensure you map the Chat ID from the trigger to the message sending node so the bot replies to the correct user.
• Guna expression $fromAI dalam parameter tools untuk membenarkan AI menentukan sendiri data yang perlu dimasukkan berdasarkan konteks perbualan. • Berikan System Message yang sangat spesifik, contohnya beritahu agent bahawa dia adalah IT Administrator yang tugasnya hanya monitor website. • Anda boleh gabungkan tool pencarian info seperti Perplexity dengan tool tindakan seperti Gmail untuk buat agent yang boleh buat research dan hantar report sendiri. • Jika menggunakan Telegram, pastikan anda map Chat ID dari trigger ke node send message supaya bot membalas kepada pengguna yang betul.
Use Cases
• Personal Assistant | Manage tasks in Notion such as creating tasks, updating statuses, or finding overdue tasks. • IT Administrator | Monitor website uptime using the HTTP Request tool and report troubleshooting steps if the site is down. • Santa's Helper/Researcher | Search for gift ideas or products online using Perplexity and send the list via email. ENGLISH TRANSLATION:
• Personal Assistant | Urus tugasan dalam Notion seperti create task, update status, atau cari task yang tertunggak. • IT Administrator | Monitor uptime website menggunakan HTTP Request tool dan lapor troubleshooting jika site down. • Santa's Helper/Researcher | Cari idea hadiah atau produk di internet guna Perplexity dan hantar senarai tersebut ke email.

Workflow

Description

A workflow in n8n is the primary workspace where you connect various nodes to build automations. It allows you to combine applications like Telegram, Google Drive, and AI models into a single automated stream that moves from a trigger to the final result.

Workflow dalam n8n adalah ruang kerja utama di mana anda menyambungkan pelbagai node untuk membina automasi. Ia membolehkan anda menggabungkan aplikasi seperti Telegram, Google Drive, dan model AI dalam satu aliran kerja yang bergerak dari trigger hingga ke hasil akhir secara automatik.

Step by Step
1. Start by creating a new workflow and give it a name for easy management, such as "Santa's helper AI agent." 2. Select a trigger node to start the automation, such as a Manual Trigger for testing or a Telegram trigger to respond to incoming messages. 3. Add an AI Agent node and connect your preferred model, such as Anthropic or OpenAI, and set up memory to enable two-way conversations. 4. If necessary, add tools like HTTP Request to the AI Agent to allow it to access external data or check website status. 5. Click the Execute button to test the workflow and visually monitor how data moves from one node to another.
1. Mulakan dengan mencipta workflow baru dan namakan ia supaya mudah diuruskan, contohnya Santa's helper AI agent. 2. Pilih trigger node untuk memulakan automasi, seperti Manual Trigger untuk ujian atau Telegram trigger untuk bertindak balas kepada mesej masuk. 3. Tambah node AI Agent dan sambungkan model pilihan anda seperti Anthropic atau OpenAI, serta tetapkan memory untuk membolehkan perbualan dua hala. 4. Jika perlu, tambah tools seperti HTTP Request dalam AI Agent untuk membolehkan ia akses data luar atau periksa status website. 5. Tekan butang Execute untuk uji workflow tersebut dan lihat bagaimana data bergerak dari satu node ke node lain secara visual.
Tips & Tricks
• Use a Code Node with simple JavaScript to generate a Session ID (UUID) so the AI can remember previous conversation context when continuing a chat. • For tasks requiring the processing of large files like YouTube video transcripts, use the Gemini model in your workflow as it features a large context window. • You can combine different AI models in a single workflow—for example, use Gemini to read data and Claude or Imagen to generate creative content.
• Gunakan Code Node dengan JavaScript ringkas untuk hasilkan Session ID (UUID) supaya AI boleh ingat konteks perbualan sebelumnya apabila menyambung chat. • Untuk tugasan yang memerlukan pemprosesan fail besar seperti transkrip video YouTube, gunakan model Gemini dalam workflow anda kerana ia mempunyai context window yang besar. • Anda boleh gabungkan model AI yang berbeza dalam satu workflow, contohnya guna Gemini untuk baca data dan Claude atau Imagen untuk hasilkan content kreatif.
Use Cases
• Content Creator | Automatically convert YouTube video URLs into fully formatted blog articles. • IT Administrator | Monitor server or website status and troubleshoot issues using an AI agent with terminal access. • Customer Service | Build a Telegram chatbot that remembers customer conversation history using Session ID management. • Blogger | Automatically generate featured images for blog articles by reading content directly from Google Docs.
• Content Creator | Tukar URL video YouTube kepada artikel blog yang lengkap diformat secara automatik. • IT Administrator | Monitor status server atau website dan troubleshoot masalah menggunakan AI agent yang mempunyai akses terminal. • Customer Service | Bina chatbot Telegram yang boleh ingat sejarah perbualan pelanggan menggunakan pengurusan Session ID. • Blogger | Hasilkan imej feature untuk artikel blog secara automatik dengan membaca kandungan terus dari Google Docs.

SSH Node

Description

The SSH Node allows n8n to connect directly to remote servers or VPS to automate terminal commands. This is highly useful for automating technical tasks or running AI agents like Claude Code in headless mode with full access to server files for better context.

SSH Node membolehkan n8n berhubung terus dengan server jauh atau VPS untuk jalankan command terminal secara automatik. Ini sangat berguna untuk automasi tugas teknikal atau menjalankan AI agent seperti Claude Code secara headless dengan akses penuh kepada file dalam server untuk dapat context yang lebih baik.

Step by Step
1. Open a new workflow in n8n, then search for and select the SSH node to begin. 2. Create new credentials by entering the Host (server IP address), Username, and Password or Private Key. 3. Click save and ensure the "Connection tested successfully" message appears to confirm a successful connection. 4. Test the connection by typing a simple command like hostname in the command box and clicking Execute Step. 5. To run an AI agent, use a command like claude -p followed by your prompt, or combine commands using cd and && to provide specific folder context.
1. Buka workflow baru dalam n8n, cari dan pilih node SSH untuk bermula. 2. Buat credential baru dengan memasukkan Host iaitu IP address server, Username dan Password atau Private Key. 3. Tekan save dan pastikan keluar mesej Connection tested successfully untuk sahkan sambungan berjaya. 4. Uji sambungan dengan menaip command mudah seperti hostname dalam kotak command dan tekan Execute Step. 5. Untuk run AI agent, gunakan command seperti claude -p diikuti soalan anda, atau gabungkan command guna cd dan && untuk beri context folder spesifik.
Tips & Tricks
• Use the -p flag when running tools like Claude Code so it operates in headless mode and prints the response immediately. • You can combine two commands using the && symbol; for example, cd into a specific folder before running another command to access local file context. • If the connection fails, ensure you are using the correct Public IP address if your server is on a cloud host or VPS.
• Gunakan flag -p apabila menjalankan tool seperti Claude Code supaya ia berjalan dalam headless mode dan terus cetak jawapan. • Anda boleh gabungkan dua command serentak menggunakan simbol &&, contohnya cd ke folder tertentu dulu baru jalankan command lain untuk dapatkan context file tempatan. • Jika sambungan gagal, pastikan anda menggunakan Public IP address yang betul jika server anda di hosting cloud atau VPS.
Use Cases
• Software Engineer | Automate deployment scripts or run AI code reviews on files stored on the server. • Content Creator | Analyze video scripts or documents stored on the server using an AI agent without needing to download the files. • System Administrator | Periodically run server status checks, such as verifying the hostname or disk usage.
• Software Engineer | Automasi deployment script atau jalankan AI code review pada file yang ada dalam server. • Content Creator | Analisa skrip video atau dokumen yang tersimpan dalam server menggunakan AI agent tanpa perlu download file tersebut. • System Administrator | Jalankan pemeriksaan status server seperti semak hostname atau disk usage secara berkala.

Tool Node

Description

The Tool Node enables AI Agents in n8n to interact with external applications like Notion, Gmail, or Google Calendar to perform actual tasks. It is highly effective because the AI can autonomously decide when to use a tool and what data to input dynamically based on your instructions.

Tool Node membolehkan AI Agent dalam n8n berinteraksi dengan aplikasi luar seperti Notion, Gmail, atau Google Calendar untuk melakukan tugasan sebenar. Ia sangat berguna kerana AI boleh menentukan sendiri bila perlu guna tool tersebut dan data apa yang perlu dimasukkan secara dinamik berdasarkan arahan yang anda berikan.

Step by Step
1. Find the tool you want to use in n8n (e.g., Notion or Google Calendar) and connect it to your AI Agent node. 2. Rename the tool with a clear name, such as "get tasks" or "create task," so the AI understands its specific function. 3. Set the operation parameters to create, update, or get. For dynamic data fields, click the sparkles icon and select "let the model define this parameter." 4. If there are specific status options like "backlog" or "done," use expression mode to inform the AI which options are valid for use. 5. Run a workflow test to ensure the AI successfully calls the tool and automatically corrects any incorrect data formats.
1. Cari tool yang anda mahu gunakan dalam n8n (contohnya Notion atau Google Calendar) dan sambungkan ia kepada node AI Agent anda. 2. Namakan semula tool tersebut dengan nama yang jelas seperti get tasks atau create task supaya AI faham fungsi sebenarnya. 3. Tetapkan parameter operasi sama ada create, update atau get, dan bagi bahagian data yang dinamik, klik ikon sparkles untuk memilih let the model define this parameter. 4. Jika ada pilihan status yang spesifik seperti backlog atau done, gunakan mode expression untuk beritahu AI pilihan mana yang sah untuk digunakan. 5. Lakukan ujian workflow untuk pastikan AI berjaya memanggil tool tersebut dan membetulkan sebarang format data yang salah secara automatik.
Tips & Tricks
• Always give your tools descriptive names, as the AI uses these names to identify when it needs to trigger that specific tool. • Include the current date and time (timestamp) in the system prompt so the AI can process relative terms like "tomorrow" or "next week." • If you import a workflow and see square-shaped nodes instead of circular ones, they are standard nodes rather than Tool Nodes; you must modify the node's JSON code by adding the word "Tool" to the node type. • Use the "let the model define this parameter" option for fields like titles or descriptions to allow the AI to generate relevant text based on the conversation context.
• Sentiasa namakan tool anda dengan deskripsi kerja yang spesifik kerana AI menggunakan nama ini untuk faham bila perlu menggunakan tool tersebut. • Masukkan tarikh dan masa semasa (current timestamp) dalam system prompt supaya AI boleh faham maksud istilah relatif seperti esok atau minggu depan. • Jika anda import workflow dan nampak node berbentuk petak dan bukan bulat, itu bermaksud ia node biasa dan bukan Tool Node; anda perlu ubah kod JSON node tersebut dengan menambah perkataan Tool pada jenis nodenya. • Gunakan opsyen let the model define this parameter untuk field seperti tajuk atau deskripsi supaya AI boleh menjana teks yang sesuai berdasarkan konteks perbualan.
Use Cases
• Personal Assistant | Manage tasks in Notion by automatically reading, updating, or creating new entries. • Shopper/Researcher | Research product information using Perplexity and send recommendation lists directly to Gmail. • Content Creator | Convert voice notes into Google Calendar events or store content ideas in a database. ENGLISH TRANSLATION:
• Personal Assistant | Menguruskan tugasan dalam Notion dengan membaca, mengemaskini, atau mencipta task baru secara automatik. • Shopper/Researcher | Mencari maklumat produk menggunakan Perplexity dan menghantar senarai cadangan terus ke Gmail. • Content Creator | Menukar voice note kepada event dalam Google Calendar atau idea konten dalam pangkalan data.

Webhook

Description

This Webhook is the main entry point for your n8n workflow to function as a backend. It allows external applications, such as a frontend built with Google AI Studio, to send data or prompts directly into n8n. Without this node, AI agents in n8n cannot receive any input from your user interface.

Webhook ni adalah pintu masuk utama untuk workflow n8n korang berfungsi sebagai backend. Ia membolehkan aplikasi luar, macam frontend yang korang buat dengan Google AI Studio, untuk hantar data atau prompt terus ke dalam n8n. Tanpa node ini, AI agent dalam n8n takkan dapat terima apa-apa input dari user interface korang.

Step by Step
1. After importing the workflow JSON into n8n, locate the first node named Webhook and open its settings. 2. Ensure the HTTP Method is set to POST because your frontend will be sending input data, not just a standard request. 3. Click on the Webhook URLs section, select Test URL, and copy the link for the development phase. 4. Go to the frontend code generated by Google AI Studio, find the API_URL variable or fetch function, and paste the link there.
1. Selepas import workflow JSON ke dalam n8n, cari node pertama yang bernama Webhook dan buka setting dia. 2. Pastikan HTTP Method disetkan kepada POST kerana frontend korang akan menghantar data input, bukan sekadar request biasa. 3. Klik pada bahagian Webhook URLs, pilih Test URL, dan copy link tersebut untuk fasa development. 4. Pergi ke kod frontend yang dijana oleh Google AI Studio, cari bahagian variable API_URL atau fetch function, dan paste link tadi di situ.
Tips & Tricks
• Don't forget to click the Listen for Test Event button in n8n before testing the submit button on your frontend app. • Ensure you have a Respond to Webhook node at the end of the workflow so the frontend knows when the process is complete and avoids infinite loading. • Remember that the Test URL only works while the n8n editor is open; for a live app, you must use the Production URL and activate the workflow.
• Jangan lupa tekan butang Listen for Test Event di n8n sebelum korang test tekan butang submit di frontend app. • Pastikan korang ada node Respond to Webhook di penghujung workflow supaya frontend tahu bila proses dah siap dan tak loading berterusan. • Ingat bahawa Test URL hanya jalan bila korang buka n8n editor, untuk live app nanti kena guna Production URL dan activate workflow.
Use Cases
• AI Developer | Connect a sleek custom chat interface with complex AI agent logic in n8n. • Web Developer | Send data from a website contact form directly to an n8n workflow for database storage. • SaaS Builder | Create a micro-SaaS where users send input, n8n processes the data, and returns the output instantly to the app.
• AI Developer | Sambungkan interface chat custom yang lawa dengan logic AI agent yang kompleks di n8n. • Web Developer | Hantar data dari contact form di website terus ke workflow n8n untuk simpan dalam database. • SaaS Builder | Buat micro-saas di mana user hantar input, n8n proses data, dan pulangkan output serta-merta ke app.

System Prompt

Description

This System Prompt acts as the brain or conscience for your AI Agent in n8n. It is a set of instructions that tells the AI who it is, its personality, and how to complete tasks step-by-step. Without a specific prompt, the AI will only act as a general assistant without understanding the actual context of the work you want it to perform.

System Prompt ini berfungsi sebagai otak atau hati nurani untuk AI Agent korang dalam n8n. Ia adalah set arahan yang memberitahu AI siapa dirinya, apa personalitinya, dan bagaimana ia patut selesaikan tugasan langkah demi langkah. Tanpa prompt yang spesifik, AI hanya akan jadi pembantu umum yang tak tahu konteks sebenar kerja yang korang nak dia buat.

Step by Step
1. Open the AI Agent node in n8n and locate the System Message section or the "Define below" option to enter your instructions. 2. Instead of writing a technical prompt immediately, first write out what you want the agent to do from start to finish in simple language. 3. Copy those simple sentences and paste them into ChatGPT or Claude, then ask the AI to generate a complete and professional System Prompt for n8n. 4. Copy the long, detailed prompt generated by ChatGPT and paste it back into the System Message field in n8n. 5. Click save to store your agent settings before you begin testing the workflow.
1. Buka node AI Agent dalam n8n dan cari bahagian System Message atau pilihan Define below untuk masukkan arahan. 2. Jangan tulis prompt teknikal terus, sebaliknya tulis dulu dalam bahasa mudah apa yang korang nak agent tu buat dari awal sampai habis. 3. Copy ayat mudah tadi dan paste ke dalam ChatGPT atau Claude, kemudian minta AI tersebut tuliskan System Prompt yang lengkap dan profesional untuk n8n. 4. Copy hasil prompt yang panjang dan detail dari ChatGPT tadi, kemudian paste semula ke dalam ruangan System Message di n8n. 5. Tekan save untuk simpan setting agent korang sebelum mula test workflow tersebut.
Tips & Tricks
• Use external tools like Claude or ChatGPT to generate prompts; they are better at organizing workflow structures and error handling than writing them manually. • Include dynamic information such as the current date in the prompt so the agent knows when to set deadlines for tasks today or tomorrow. • Clearly specify your desired output format in the prompt, such as asking the agent to write email drafts directly in HTML format.
• Guna tools luar macam Claude atau ChatGPT untuk jana prompt, ia lebih pandai susun struktur workflow dan error handling berbanding kita tulis sendiri. • Masukkan maklumat dinamik seperti tarikh semasa dalam prompt supaya agent tahu bila perlu set deadline untuk tugasan esok atau hari ini. • Jelaskan format output yang korang nak secara spesifik dalam prompt, contohnya minta agent tulis draf emel terus dalam format HTML.
Use Cases
• Personal Assistant | Managing Notion databases to find overdue tasks, update statuses, and create new tasks every morning. • E-commerce Bot | Providing product or gift recommendations to customers based on their interests and requesting feedback. • Client Service | Answering client inquiries or automatically preparing draft email replies with a professional tone.
• Personal Assistant | Menguruskan database Notion untuk cari task tertunggak, update status, dan buat task baru setiap pagi. • E-commerce Bot | Memberi cadangan produk atau hadiah kepada pelanggan berdasarkan minat mereka dan minta maklum balas. • Client Service | Menjawab pertanyaan klien atau menyediakan draf emel balas secara automatik dengan nada yang profesional.

Memory

Description

The Memory feature allows an AI agent to remember previous conversation context, making interactions feel more natural and continuous. Without this feature, the AI will forget what was discussed in previous messages; for example, if you ask about Albert Einstein and then follow up by asking for his age, the AI will not know who you are referring to without Memory.

Feature Memory membolehkan AI agent mengingat konteks perbualan terdahulu supaya interaksi menjadi lebih natural dan bersambung. Tanpa feature ini, AI akan lupa apa yang baru dibincangkan dalam mesej sebelumnya, contohnya jika anda tanya pasal Albert Einstein dan kemudian tanya berapa umurnya, AI takkan tahu siapa dia jika tiada Memory.

Step by Step
1. Click the plus sign on the AI Agent node to connect a Memory component. 2. Search for and select Window Buffer Memory to connect it to the AI Agent's memory slot. 3. Set the Context Window Length value to determine how many messages (inputs and outputs) the AI should remember. 4. Keep the Session ID setting as the default or modify it if necessary to distinguish between different conversation sessions.
1. Klik pada tanda tambah pada node AI Agent untuk menyambungkan komponen Memory. 2. Cari dan pilih Window Buffer Memory untuk disambungkan kepada slot memori AI Agent tersebut. 3. Tetapkan nilai Context Window Length untuk menentukan berapa banyak mesej (input dan output) yang perlu diingat oleh AI. 4. Biarkan tetapan Session ID secara default atau ubah jika perlu untuk membezakan antara sesi perbualan yang berlainan.
Tips & Tricks
• Increase the Context Window Length to a higher number, such as 20 or 25, when building a customer service chatbot so it can retain long conversation histories. • For simple tasks or basic assistants, a default value of 5 is sufficient to save on tokens and costs. • Remember that the Session ID is key to isolating conversation topics; each new chat should have a unique ID to prevent memories from getting mixed up.
• Tukar Context Window Length kepada nombor yang lebih besar seperti 20 atau 25 jika anda membina chatbot untuk customer service supaya ia ingat sejarah perbualan yang panjang. • Untuk tugasan mudah atau assistant ringkas, nilai default 5 sudah memadai untuk menjimatkan token dan kos. • Pastikan anda faham bahawa Session ID adalah kunci untuk mengasingkan topik perbualan, jadi setiap chat baru akan ada ID unik supaya memori tidak bercampur aduk.
Use Cases
• Customer Service Support | Remembers issues reported by customers at the start of the conversation so they don't have to repeat the same details. • Personal Assistant | Answers follow-up questions regarding schedules or client information based on the immediate discussion. • Research Assistant | Answers questions about historical facts or specific data (like the Albert Einstein example) without needing to repeat the subject's name.
• Customer Service Support | Mengingat isu yang dilaporkan pelanggan di awal perbualan supaya pelanggan tidak perlu mengulang cerita yang sama. • Personal Assistant | Menjawab soalan susulan tentang jadual atau maklumat klien berdasarkan apa yang baru sahaja dibincangkan. • Research Assistant | Menjawab soalan berkaitan fakta sejarah atau data spesifik (seperti contoh Albert Einstein) tanpa perlu menyebut nama subjek berulang kali.

Self-hosting

Description

Self-hosting allows you to install and run n8n on your own server, such as a Hostinger VPS, without the need for potentially expensive n8n cloud subscriptions. This method gives you full control over your workflows and data privacy at a much lower cost compared to standard managed services.

Self-hosting membolehkan anda install dan jalankan n8n pada server sendiri seperti VPS Hostinger tanpa perlu bayar langganan cloud n8n yang mungkin lebih mahal. Kaedah ini memberikan anda kawalan penuh ke atas workflow dan data privasi anda dengan kos yang jauh lebih jimat berbanding managed service biasa.

Step by Step
1. Log in to your Hostinger account, navigate to the Virtual Private Server menu, and select a plan that meets your requirements. 2. Click the button to add a new VPS and choose the server location where you want your data to be stored. 3. Enter the required credentials or login information for the server setup so the system can complete the installation process. 4. Once completed, you can log in to your n8n dashboard using those credentials and start building workflows on your own private server.
1. Log masuk ke akaun Hostinger anda, cari menu Virtual Private Server dan pilih plan yang sesuai dengan keperluan anda. 2. Tekan butang untuk tambah VPS baru dan pilih lokasi server di mana anda mahu data anda disimpan. 3. Masukkan credentials atau maklumat login yang diperlukan untuk setup server tersebut supaya sistem boleh melengkapkan proses installation. 4. Setelah siap, anda boleh terus log masuk ke dashboard n8n anda menggunakan credentials tadi dan mula bina workflow pada private server anda sendiri.
Tips & Tricks
• Self-hosting on a VPS is a smart choice for saving on operating costs, as it is significantly cheaper than enterprise cloud plans. • Choose a server location closest to you or your users to ensure optimal connection speeds. • Ensure you store your server credentials securely, as you are fully responsible for the server's security.
• Self-hosting pada VPS adalah pilihan yang bijak jika anda mahu jimatkan kos operasi kerana harganya jauh lebih murah berbanding plan cloud enterprise. • Pilih lokasi server yang paling dekat dengan anda atau pengguna sistem untuk memastikan kelajuan connection yang optimum. • Pastikan anda simpan credentials server di tempat selamat kerana anda bertanggungjawab penuh ke atas security server tersebut.
Use Cases
• AI Automation Agency | Run heavy AI agents without worrying about high execution cost limits on standard cloud platforms. • Data Analyst | Perform large-scale web scraping, such as Google Maps data, without third-party server usage restrictions. • Small Business Owner | Automate tedious daily tasks with a very low IT budget while maintaining high performance.
• AI Automation Agency | Menjalankan AI agents yang berat tanpa risau tentang limit execution cost yang tinggi pada platform cloud biasa. • Data Analyst | Melakukan web scraping skala besar seperti data Google Maps tanpa gangguan had penggunaan server pihak ketiga. • Small Business Owner | Mengautomasikan tugas harian yang membosankan dengan bajet IT yang sangat rendah tetapi berkuasa tinggi.

Triggers

Description

A trigger is the starting point for every workflow in n8n, determining when your AI agent begins its task. It can be set to run automatically on a schedule, started manually, or react to incoming messages from other applications like Slack or Telegram.

Trigger adalah titik permulaan bagi setiap workflow dalam n8n yang menentukan bila AI agent anda akan mula bekerja. Ia boleh ditetapkan untuk berjalan secara automatik mengikut jadual masa, dimulakan secara manual, atau bertindak balas apabila menerima mesej dari aplikasi lain seperti Slack atau Telegram.

Step by Step
1. Click the plus sign on the n8n canvas and select the trigger type you want to use as the first step of your workflow. 2. If using a Schedule trigger, set the frequency—such as specific days, minutes, or hours—for example, every day at 8:00 AM. 3. If using an app trigger like Slack, select the correct channel and the event type that n8n should listen for. 4. Click the execute step button and perform the actual action, such as sending a message in Slack, to ensure the trigger successfully captures the data.
1. Klik tanda tambah pada canvas n8n dan pilih jenis trigger yang anda mahu gunakan sebagai langkah pertama workflow. 2. Jika menggunakan Schedule trigger, tetapkan kekerapan masa seperti hari, minit, atau jam spesifik contohnya setiap hari pada pukul 8:00 pagi. 3. Jika menggunakan app trigger seperti Slack, pilih channel yang betul dan jenis event yang ingin didengar oleh n8n. 4. Tekan butang execute step dan lakukan aksi sebenar seperti menghantar mesej di Slack untuk memastikan trigger berjaya menangkap data tersebut.
Tips & Tricks
• Use a Schedule trigger if you want your AI agent to proactively send you messages every morning without being prompted. • When testing triggers for messaging apps, ensure you send a message immediately after clicking execute so n8n can detect the new data. • Position the trigger node at the beginning of your workflow to ensure the data flow to the AI agent is correct.
• Gunakan Schedule trigger jika anda mahu AI agent menghantar mesej secara proaktif kepada anda setiap pagi tanpa perlu ditanya dahulu. • Apabila test trigger untuk aplikasi mesej, pastikan anda menghantar mesej sejurus selepas tekan execute supaya n8n dapat detect data baru. • Anda boleh ubah kedudukan trigger node ke bahagian depan workflow untuk pastikan aliran data ke AI agent adalah betul.
Use Cases
• Personal Assistant | Automatically sends a daily task list from Notion every morning at 8:00 AM. • Content Creator | Instantly converts content idea voice notes from Slack into a database while you are on the go. • Customer Service | Automatically responds to customer inquiries using a Chat trigger that functions like ChatGPT.
• Personal Assistant | Menghantar senarai tugasan harian dari Notion setiap pagi pada pukul 8:00 pagi secara automatik. • Content Creator | Menukar voice note idea content dari Slack terus ke dalam database secara serta-merta semasa anda on the go. • Customer Service | Menjawab pertanyaan pelanggan secara automatik menggunakan Chat trigger yang bertindak seperti ChatGPT.

Credentials

Description

Credentials in n8n provide a secure way to store login information such as passwords, API keys, or OAuth tokens. This feature allows your workflows to connect to external applications like Google Drive, Slack, or private servers without having to enter sensitive details every time a workflow is executed.

Credentials dalam n8n adalah tempat selamat untuk menyimpan maklumat log masuk seperti password, API key, atau OAuth token. Feature ini membolehkan workflow anda berhubung dengan aplikasi luar seperti Google Drive, Slack, atau server peribadi tanpa perlu memasukkan butiran rahsia setiap kali workflow dijalankan.

Step by Step
1. Open the node that requires access, locate the Credential section, click the dropdown, and select Create New Credential. 2. Enter the required details, such as Host and Password for SSH, or Client ID and Client Secret for OAuth. 3. If using OAuth (like Google), copy the Redirect URL from n8n into the app settings in the Google Cloud Console, then paste the Client ID and Secret back into n8n. 4. Click Save or the Sign in button, and ensure you see a "Connection tested successfully" message or a confirmation that the account has been connected. 5. Rename the credential so it is easily identifiable in the future.
1. Buka node yang memerlukan akses, cari bahagian Credential, klik dropdown dan pilih Create New Credential. 2. Masukkan butiran yang diperlukan seperti Host dan Password untuk SSH, atau Client ID dan Client Secret untuk OAuth. 3. Jika menggunakan OAuth seperti Google, salin Redirect URL dari n8n ke dalam tetapan aplikasi di Google Cloud Console, kemudian tampal Client ID dan Secret kembali ke n8n. 4. Klik Save atau butang Sign in, dan pastikan anda melihat mesej Connection tested successfully atau akaun berjaya dihubungkan. 5. Namakan semula credential tersebut supaya mudah dikenali pada masa hadapan.
Tips & Tricks
• Always rename your credentials with specific names like "Google Drive YAN" or "AI Terminal" to avoid confusion, especially when working in a team. • For personal Google OAuth use, set the app to External and add your email as a Test User to bypass complex Google verification processes. • If you use AI to generate or update workflow code, double-check your credential mapping as it may be lost or altered after an update. • Ensure you use a Public IP when connecting to a cloud VPS, or a Local IP if the server is on the same local network.
• Sentiasa namakan semula credential anda dengan nama yang spesifik seperti Google Drive YAN atau AI Terminal supaya tidak keliru, terutamanya jika bekerja dalam pasukan. • Untuk Google OAuth kegunaan peribadi, tetapkan aplikasi sebagai External dan tambah email anda sebagai Test User supaya anda tidak perlu melalui proses verifikasi Google yang rumit. • Jika anda menggunakan AI untuk menjana atau mengemaskini kod workflow, semak semula mapping credential anda kerana ia mungkin hilang atau berubah selepas update. • Pastikan anda menggunakan Public IP jika menyambung ke VPS cloud, atau Local IP jika server berada dalam rangkaian tempatan yang sama.
Use Cases
• System Admin | Manage remote servers and execute terminal commands automatically using SSH credentials. • Content Creator | Link Google Calendar and Google Drive to automate scheduling and content file management. • AI Developer | Connect OpenAI or Anthropic with Slack to build AI agents capable of reading and replying to messages.
• System Admin | Mengawal server jauh dan menjalankan command terminal secara automatik menggunakan SSH credential. • Content Creator | Menghubungkan Google Calendar dan Google Drive untuk automasi jadual dan fail content. • AI Developer | Menyambungkan OpenAI atau Anthropic dengan Slack untuk membina AI agent yang boleh membaca dan membalas mesej.

Models

Compare With