Simple and Quick Guide to Deploying Workflows with n8n

Deploying workflows with n8n is straightforward, but beginners might still find themselves struggling and wasting time. This article provides a detailed guide with illustrative examples to help you master this platform effectively.

December 26, 2024
Hướng dẫn triển khai workflow với n8n đơn giản, nhanh chóng

#1. What is a workflow?

Simply put, a workflow is a series of pre-configured actions that are connected together to automate a process.

In n8n, each action in a workflow is called a node. This is similar to modules in Make.com, just with a different name.

A workflow can be simple with a few nodes or complex with many nodes, depending on how you design it. Of course, you can also save time by using the templates that n8n has already built.

But in this article, I will guide you through the steps of creating a simple workflow manually, so you can master n8n better.

#2. How to create a workflow with n8n

Trien Khai Workflow N8n 1

#Step 1: Plan your idea

To save time, you need to think and plan before starting to create a workflow in n8n.

In this article, I will implement a simple workflow in n8n, which is to create an automated process to send an email notification when an event occurs, specifically when a Google Sheet is updated.

To implement this idea, you will need 2 nodes:

  • Google Sheets node
  • Gmail node

#Step 2: Create a trigger

The trigger is the button that starts your entire workflow.

Btn 2 1

Log into your n8n account → click the Create Workflow button (the orange button at the top right) or the Start from scratch button (in the middle of the screen).

Trien Khai Workflow N8n 2

Add a trigger by selecting + Add first step.

Trien Khai Workflow N8n 3

A dialog box will appear.

Trien Khai Workflow N8n 4

Search for and select Google Sheets.

Trien Khai Workflow N8n 5

Then, choose On row added.

Trien Khai Workflow N8n 6

A dialog box will appear. If you haven't connected n8n to Google Sheets yet, you will need to connect your account. If you have already connected it, just select your account from the Select Credential list and continue.

Trien Khai Workflow N8n 7

#Step 3: Create and connect the module

At this point, you will see the Google Sheets trigger has been created → continue by clicking the + button next to the Google Sheets trigger to add another module and connect it to the trigger.

Trien Khai Workflow N8n 8

In this case, I will search for Gmail and select Send a message. Similarly, a dialog box will appear asking you to connect Gmail with n8n. If it's already connected, just choose your account from the Select Credential list and continue.

Trien Khai Workflow N8n 9

Now, the Gmail module has been created and connected to the Google Sheets trigger.

Every time a new row is added to Google Sheets, n8n’s workflow will automatically check and update, then send an email notification. If desired, you can also set up additional email content.

Trien Khai Workflow N8n 10

#Step 4: Run and test the workflow

Once you have completed the above steps, all you need to do is run and test the workflow. For professionals or those familiar with n8n, this is still an important process that shouldn’t be skipped.

To manually run the workflow, simply click the Test Workflow button at the bottom of the screen. Immediately, n8n will notify you whether there are any errors in the workflow.

If there are no errors, you can start using the workflow in real life. On the other hand, if there are errors, you need to figure out where the problem lies and fix it properly.

The example in this article is simple, but you can customize additional nodes and actions to expand the capabilities of the workflow according to your work requirements!

Btn 2 1

#3. Conclusion

Basically, creating a workflow in n8n is quite similar to many other platforms like Make.com or Zapier. However, the steps might differ slightly, which can make it a bit confusing for new users. I hope that through this article, you now have a good understanding of how to create a workflow with this popular automation platform!

[EmbedSoftware ids="35"]

Read more posts?

See all →