n n8n

How to create your first workflow on n8n

beginner 8 min read Updated 2026-03-13
Quick Answer

Create your first n8n workflow by signing up for n8n Cloud, adding a trigger node (Manual or Schedule), connecting action nodes (Set, Email, AI), configuring credentials, and testing via manual execution. The entire process takes 10-30 minutes and requires no coding.

Prerequisites

  • n8n account (cloud or self-hosted via Docker)
  • API credentials for external services (e.g., OpenAI, Gmail)
  • Modern web browser
  • Basic understanding of your workflow goal

Step-by-Step Instructions

1

Install and Start n8n

If self-hosting, install n8n via npm or Docker. Run npm install -g n8n globally, then start the service with n8n start. This launches n8n on the default port 5678 at http://localhost:5678. For Docker users, run docker run -it --rm --name n8n -p 5678:5678 n8nio/n8n. The default database is SQLite (stored in ~/.n8n/database.sqlite) with no authentication enabled initially. Open your browser to http://localhost:5678 and complete the setup wizard by creating an owner account if prompted.

Cloud users can skip this step and sign up directly at n8n.io/cloud for instant workspace access.
2

Access the Workflow Creation Screen

From the Overview page (your default landing page after login), locate the + (create) button in the upper-right corner. Click it and select Workflow from the dropdown menu. Alternatively, use the left side menu by selecting the + button in the upper-left corner, then choose Workflow. If using projects (available in cloud or enterprise editions), select Personal space or a specific project; community self-hosted instances default to personal space.

Use the keyboard shortcut N to quickly open the node selector when on the canvas.
3

Name Your Workflow

In the new empty canvas, click the workflow name field at the top-left (which defaults to "My workflow" or untitled). Enter a descriptive name such as "First Test Workflow" and press Enter. The workflow saves automatically to your Workflows list under personal space, so you can return to it anytime.

Use clear, descriptive names to easily identify workflows later, especially as your library grows.
4

Add Your First Trigger Node

On the empty canvas, select the prominent Add first step... button in the center. This opens the node selector. Search for "Manual" to find the simplest trigger for testing. Select the Manual Trigger node to add it to the canvas. The node appears immediately; click it to open its settings panel. Manual Trigger requires no configuration—it exists purely for testing workflows by allowing you to execute them on demand.

Manual Trigger is ideal for first workflows because it has no dependencies or external requirements.
5

Add an Action Node for Data Transformation

With the Manual Trigger node selected, click the + icon on its right edge to connect a new node. Search for "Edit Fields" (or "Set" in older versions) and select it. The Edit Fields node allows you to transform or create data. Double-click the node to open its configuration panel. Select Keep Only Set mode, then click Add Field. Set the field name to testMessage and the value to "Hello from my first n8n workflow!" (as static text). Close the panel by selecting Back to canvas or clicking outside.

Edit Fields is versatile for beginners—use it to create test data, rename fields, or prepare outputs for downstream nodes.
6

Connect Additional Action Nodes (Optional)

To extend your workflow, click the + icon on the Edit Fields node's right edge and add more action nodes. Common examples include Email (to send results), OpenAI (for AI processing), or HTTP Request (to call external APIs). Each node connects sequentially, forming a data pipeline. Configure each node by double-clicking it and filling in required fields. For external services like OpenAI or Gmail, you'll need to add credentials first (see Prerequisites).

Start simple with 2-3 nodes; add complexity once you understand the basic flow.
7

Configure Credentials for External Services

If your workflow includes nodes that interact with external services (OpenAI, Gmail, Slack, etc.), you must add credentials. In the node's configuration panel, look for a Credentials or Authentication field. Click Create New or Add Credentials. Enter your API key or authentication details (e.g., OpenAI API key from your account dashboard). Save the credentials with a descriptive name. n8n encrypts and stores these securely, so you only enter them once per service.

Generate API keys from the service's official dashboard (e.g., platform.openai.com for OpenAI) and keep them private.
8

Save and Activate Your Workflow

Click the Save button (usually top-right or in the menu) to persist your workflow. After saving, toggle the Active switch (top-right of the canvas) to enable the workflow. For Manual Trigger workflows, activation is optional since you'll execute them on demand. For scheduled or event-triggered workflows, activation is required to run automatically. A green indicator confirms the workflow is active.

Always save before testing to avoid losing your configuration.
9

Test the Workflow Manually

Click the Execute Workflow button (top-right, typically a play icon) to run your workflow once. The system executes from the trigger node through all connected action nodes. Watch for green checkmarks on nodes, indicating successful execution. Click any node to view its input and output data in the execution panel. This panel shows exactly what data flowed through each step, making it easy to debug issues. If a node shows a red error icon, click it to see the specific error message.

The execution view is your primary debugging tool—inspect data at each step to understand where issues occur.
10

Review Results and Iterate

After execution, examine the output of your final node. If the results match your expectations, your workflow is complete. If not, adjust node configurations, add missing credentials, or restructure the node connections. Common adjustments include changing field names, updating API parameters, or adding conditional logic with If nodes. Save changes and re-execute to test. Repeat this cycle until your workflow produces the desired output.

Keep iterations small—change one thing at a time and test to isolate issues quickly.

Common Issues & Troubleshooting

Workflow does not start or nothing happens on test

Ensure the <code>Active</code> switch is toggled on (top-right). Verify that a trigger node (Manual, Schedule, or Webhook) is the first node and is properly connected to subsequent nodes. Check the execution view for error messages on any node.

Nodes are not connecting or data is not flowing between them

Confirm each node has a <code>+</code> icon on its right edge and that you've clicked it to add the next node. Verify connections by clicking nodes—the execution view shows input/output data. Reconnect nodes by dragging from the output dot of one node to the input area of the next.

External service nodes fail with authentication errors

Double-check that credentials are added correctly in the node's configuration panel. Verify the API key or token is valid and has not expired. Regenerate credentials from the service's dashboard if needed. Test the credential by running a simple test request (some nodes have a <code>Test</code> button).

Workflow runs but produces unexpected output or empty results

Click each node in the execution view to inspect input and output data. Verify field names match between nodes (e.g., if one node outputs <code>message</code>, the next should reference <code>message</code>, not <code>msg</code>). Check that static values are properly quoted (e.g., <code>"text"</code> not <code>text</code>). Use the Edit Fields node to debug and transform data between steps.

Cannot find a specific node or integration

Search the node selector using keywords (e.g., "email" for email nodes, "http" for HTTP requests). If a node is unavailable, it may require a paid plan or additional setup. Check the n8n documentation or community forums for the specific integration. Some nodes require credentials to be added before they appear in the selector.