# How to generate visuals with n8n

> Render images, PDFs, and videos from your Orshot templates in an n8n workflow — import a ready-made workflow or build it yourself

- **URL**: https://orshot.com/help/generate-images-with-n8n

---

n8n is a workflow-automation tool you can self-host or run in the cloud. A workflow can render an **image, PDF, or video** from your Orshot template — and Orshot gives you a ready-made workflow you can paste straight onto the n8n canvas. Here's the template we'll automate:

![The Orshot template we'll render from n8n](https://orshot.com/help/automations/n8n-output.webp)

## 1. Know your template's parameters

Open your template in **Orshot Studio** and press **⌘]** (Toggle Parameter View). Every editable element is labelled with its **parameter** name — `headline`, `restaurant_name`, `hero_image`, and so on. These are the values you'll set from n8n. Any element can be made dynamic — see [Make your template dynamic](https://orshot.com/help/make-your-template-dynamic).

![The template in Orshot Studio with parameter labels turned on](https://orshot.com/help/automations/n8n-studio-params.webp)

## 2. Grab the ready-made workflow

On the template's card, click **Connect**, then open the **n8n** tab. You'll find your **Template ID**, **API key**, and a **Copy n8n workflow** button plus a **Download n8n .json** file. The same panel also lists the manual steps if you'd rather build it yourself. New to API keys? See [Find your API key and template ID](https://orshot.com/help/find-your-api-key-and-template-id).

![The Quick Connect sheet on the n8n tab, with Copy/Download workflow and manual steps](https://orshot.com/help/automations/n8n-connect.webp)

## 3. Import it into n8n

Create a new workflow in n8n. Click **Copy n8n workflow** in Orshot, then **paste it onto the n8n canvas** (`⌘V` / `Ctrl+V`). (Or use **Download n8n .json** and import the file from the workflow menu.)

## 4. Your workflow is ready

The workflow loads with a **Manual Trigger** wired to an **Orshot · Render** step that already targets Orshot's render endpoint with your template and its modifications.

![The imported n8n workflow: a manual trigger connected to the Orshot render node](https://orshot.com/help/automations/n8n-scenario.webp)

## 5. Check the render step

Open the **Orshot · Render** node to review it — and to tweak anything:

- **Method / URL** — `POST` to Orshot's render endpoint.
- **Headers** — your API key as `Authorization: Bearer …`, and `Content-Type: application/json`.
- **Body** — the render request itself: the `templateId` and a `modifications` object (see below).

![The Orshot render node's parameters in n8n](https://orshot.com/help/automations/n8n-config.webp)

### Set your modifications

Open the node and scroll to **Send Body → Body Content Type: JSON**. The **JSON** field is where you set your modifications: it holds the `templateId` and a `modifications` object with **one key per template parameter** (the names from step 1).

![The n8n node's JSON body, showing the modifications object](https://orshot.com/help/automations/n8n-modifications.webp)

Edit any value, add the parameters you want to change, and set the output with `"responseType"` and `"format"`:```json
{
  "templateId": 11147,
  "modifications": {
    "headline": "Savor the Moment",
    "restaurant_name": "THE GOLDEN TABLE",
    "hero_image": "https://images.unsplash.com/photo-1414235077428"
  },
  "responseType": "url",
  "format": "png"
}
```To make a value dynamic, switch that field from **Fixed** to **Expression** (top-right of the JSON box) and reference data from your trigger or an earlier node, e.g. `}`.

## 6. Run it

Click **Execute workflow**. n8n calls Orshot, which renders your template with its modifications and returns the result. With the body's format set to `gif`/`mp4`, an **animated** template returns video:

![The same template rendered as a short animation](https://orshot.com/help/automations/n8n-animated.webp)

## 7. Use it downstream

Add more nodes after Orshot and pass the rendered image along — save it, upload it, post it, or email it — then activate the workflow to run it on a schedule or trigger.

## Related