27 Secret n8n Features You Didn’t Know About
By Jono Catliff
Key Concepts
- Fixed vs. Expressions
- Multiple Triggers and Paths
- Pinning and Editing Data
- Data Type Conversion (Strings, Arrays, Objects, Numbers)
- Webhooks (GET vs. POST)
- HTTP Requests and cURL Import
- Credential Management
- Keyboard Shortcuts
- Trigger Selection
- AI Agent Tools and Subworkflows
- Date Injection for AI Agents
- Resource Linking
- Execution History and Data Pinning
- Version History
- Error Handling (Catch-all, Success/Error Paths, Continue on Error)
- Rate Limiting and Loops
- Merging Data
- Functions (JavaScript)
- Attribution Removal
- Data Formatting with AI (JSON Output)
Fixed vs. Expressions
The video begins by explaining the fundamental difference between "fixed" and "expressions" within the N platform.
- Fixed: Refers to static text input, where the entered text is treated literally.
- Expressions: Allows the use of JavaScript code, enabling dynamic calculations, variable manipulation, and low-code functionality. For example,
2 * 2can be entered to output4, or variables can be dragged into formulas.
Multiple Triggers and Paths
N supports multiple triggers to initiate a workflow and multiple paths to create branching logic.
- Multiple Triggers: Different landing page forms can trigger the same workflow when submitted.
- Multiple Paths: A single workflow can have multiple execution paths based on conditions or filters. This is achieved by dragging the node connection dot to create new paths.
Pinning and Editing Data
Pinning data allows users to reuse sample data for testing purposes, avoiding repetitive manual input.
- Pin Data: Saves the data from a specific node's output, allowing it to be used as input for subsequent workflow executions.
- Edit Data: The pinned data can be modified using a pencil icon, enabling testing of different scenarios and filter conditions without re-running the entire workflow from the trigger. For example, changing a client's budget from $1,000 to $500 to test different filter paths.
Data Type Conversion
N allows conversion between different data types, such as strings, arrays, objects, and numbers.
- Strings: Plain text format.
- Arrays: Ordered lists of data, similar to a grocery list (e.g., apples, bananas, mangoes).
- Objects: Data structures containing key-value pairs.
- Numbers: Numerical values.
The ability to convert between these types is crucial for data manipulation and integration.
Webhooks
Webhooks enable sending data from external applications to N, even if a direct integration doesn't exist.
- Webhooks: Wait for incoming data from an external source.
- HTTP Methods: It's crucial to match the HTTP method (e.g., GET, POST) used by the external application. Most data submissions use the POST method.
HTTP Requests and cURL Import
HTTP Request nodes allow sending data to external applications via API calls.
- HTTP Request: Enables communication with thousands of applications not directly integrated with N.
- cURL Import: Simplifies the configuration of HTTP requests by importing cURL commands, automatically setting up the necessary headers, methods, and body parameters.
Credential Management
N allows storing and reusing credentials for various services, such as API keys.
- Predefined Credential Type: Allows you to select from a list of common services and enter your credentials.
- Generic Credential Type: Allows you to define your own credential type for services that are not in the list.
Keyboard Shortcuts
Keyboard shortcuts improve workflow efficiency.
- Arrow Keys: Navigate between nodes.
- Enter/Escape: Open/close node settings.
- Command/Ctrl + Z: Undo.
- Shift + Command/Ctrl + Z: Redo.
- Command/Ctrl + D: Duplicate node.
- D: Deactivate/reactivate node.
- Tab: Open/close node selection menu.
- Shift: Add sticky notes.
- Shift + Drag: Select and move multiple nodes.
- Command/Ctrl + C/V: Copy and paste nodes between workflows.
Trigger Selection
Allows users to specify which trigger should initiate a workflow execution when multiple triggers are present.
- Trigger Selection: An arrow next to the "Execute Workflow" button allows selecting the specific trigger to fire.
AI Agent Tools and Subworkflows
N allows attaching AI Agents as tools to a main AI Agent.
- AI Agent Tools: Sub AI Agents can be attached to a main AI Agent within the same workflow.
- Subworkflows: Can be used to modularize complex workflows. Data can be passed between the main workflow and subworkflows by defining JSON data structures.
Date Injection for AI Agents
AI Agents often lack awareness of the current date.
- Date Injection: The expression
{{$now}}injects the current date and time into the AI Agent's prompt, ensuring it has accurate temporal context.
Resource Linking
N provides quick access to linked resources, such as Google Sheets or subworkflows.
- Resource Linking: Clicking the icon next to a resource reference (e.g., Google Sheet node) opens the linked resource directly.
Execution History and Data Pinning
Execution history allows debugging and re-pinning data from previous workflow runs.
- Execution History: The "Executions" tab provides a record of past workflow runs, including errors.
- Copy to Editor: Copies the data from a specific execution to the editor, unpinning the existing data and repinning it with the data from the selected execution.
Version History
N maintains a version history of workflows, allowing users to revert to previous states.
- Version History: The clock icon provides access to past versions of the workflow.
Error Handling
Robust error handling is crucial for reliable workflows.
- Catch-all Error Workflow: A designated workflow that receives error information from other workflows. Configured in the workflow settings.
- Success/Error Paths: Individual nodes can have separate paths for successful and error outcomes.
- Continue on Error: Allows a workflow to continue execution even if an error occurs in a specific node. The "Always Output Data" setting ensures that data is still passed to subsequent nodes.
Rate Limiting
Rate limiting prevents exceeding API usage limits.
- Rate Limiting: APIs often impose limits on the number of requests allowed within a specific time interval.
- Loops and Wait Timers: Loops with wait timers can be used to process data in batches, avoiding rate limits. For example, adding rows to a Google Sheet one at a time with a 1-second delay.
Merging Data
Multiple data paths can be merged into a single path.
- Merging Data: Data from different paths (e.g., audio and text messages) can be merged into a single node by referencing the same key (e.g., "text").
Functions
JavaScript functions enable advanced data manipulation.
- Functions: JavaScript code can be used to transform data, such as converting text to lowercase, title case, or sentence case, performing mathematical calculations, or replacing text.
Attribution Removal
N automatically adds an attribution to messages sent by workflows.
- Attribution Removal: The "Append Attribution" option in the node settings can be unchecked to remove the "This message was automatically sent by N" attribution.
Data Formatting with AI
AI can be used to format data into structured formats like JSON.
- JSON Output: AI agents can be instructed to output data in JSON format by defining the output structure in the assistant message and enabling the "Output Content as JSON Data" option.
Conclusion
The video provides a comprehensive guide to essential N tips and tricks, covering everything from basic concepts like fixed vs. expressions to advanced techniques like error handling, rate limiting, and data formatting with AI. By implementing these strategies, users can significantly improve their efficiency and build more robust and reliable automation workflows. The speaker emphasizes the importance of mastering data type conversion and leveraging AI for data formatting, highlighting these as key skills for becoming proficient in N.
Chat with this Video
AI-PoweredHi! I can answer questions about this video "27 Secret n8n Features You Didn’t Know About". What would you like to know?