> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.templated.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Getting Started with n8n

# Getting Started with n8n

Use Templated with n8n to automate image generation in your self-hosted workflows.

## Step 1: Install the Templated Node

The Templated node is available on npm:
```bash
npm install n8n-nodes-templated
```

Or find it in the [n8n integrations directory](https://n8n.io/integrations/templated/).

## Step 2: Add Credentials

1. In n8n, go to **Settings** → **Credentials**
2. Click **Add Credential**
3. Search for **Templated API**
4. Enter your **API Key**
5. Save

## Step 3: Use the Templated Node

1. Add a new node to your workflow
2. Search for **Templated**
3. Select an operation:
* **Create Render**
* **Get Templates**
* **Get Template Layers**

## Create Render Configuration

1. Select your **credential**
2. Enter or select **Template ID**
3. Choose **Format** (jpg, png, pdf, mp4)
4. Add **Layer Modifications**:
```json
   {
     "title": { "text": "Hello World" },
     "image-1": { "image_url": "https://example.com/photo.jpg" }
   }
```

## Example Workflow

**Webhook → Templated → HTTP Request (upload)**

1. **Webhook** — Receive data from your app
2. **Templated** — Generate render with received data
3. **HTTP Request** — POST image to your server

## Using Expressions

Map data from previous nodes:
```
{{ $json.customerName }}
```

## Tips

* n8n is self-hosted, so it's great for high-volume automation
* Use the **Split In Batches** node for large datasets
* Check the [n8n community](https://community.n8n.io/) for workflow examples

Documentation: [https://www.npmjs.com/package/n8n-nodes-templated](https://www.npmjs.com/package/n8n-nodes-templated)