Skip to content

Getting Started

Before using the TTLock n8n node, complete the following prerequisites.

Prerequisites

  1. n8n workflow platform (version >= 1.0.0)
    • Self-hosted: Recommended to deploy for free on a server via Docker
    • Cloud: You can use the Cloud version from n8n.io (note: 14-day free trial, paid subscription required after)
  2. A TTLock App account

You need to provide your own Client ID and Client Secret from the TTLock Open Platform. See Authentication for registration steps.

Install the Node

  1. Open n8n, go to SettingsCommunity nodes
  2. Click Install a community node
  3. Enter package name n8n-nodes-ttlock, click Install
  4. Restart n8n for the node to take effect

Method 2: Command Line Installation

bash
npm install n8n-nodes-ttlock

Restart n8n after installation.

Quick Start

After installation, follow these steps to quickly try out the plugin.

1. How to Pass Parameters

You can use Webhook or Apifox to pass parameters into the workflow.

Search Node

2. Search and Add TTLock Node, Select Operation Type

Click + on the n8n canvas, search for TTLock, click TTLock to enter the plugin details, then choose the specific operation in Actions.

Select Action

3. Configure Credentials

In the Credential dropdown, select Create new credential, then fill in your TTLock App credentials:

FieldDescriptionExample
Client IDOpen platform Client IDyour_client_id
Client SecretOpen platform Client secretyour_client_secret
UsernameTTLock App usernameyour@email.com
PasswordTTLock App passwordyourpassword

Configure Credentials

4. Fill Parameters and Execute

You can choose two ways to pass parameters:

  • Fixed values — Fill parameters directly in the node:

Fixed Values

  • Expression — Dynamically get parameters from upstream nodes via n8n expressions, suitable for Webhook/API call scenarios:

Expression Values

Click Execute Node to run and see the results.

Next Steps