---
title: Deploy n8n with AI on Blossom
url: "/deploy/n8n/"
canonical_url: https://blossom88.com/deploy/n8n/
markdown_url: https://blossom88.com/deploy/n8n.md
summary: Deploy n8n with AI on Blossom. Self-host workflow automation with a private
  editor, managed data, authenticated webhooks, and scalable workers.
categories:
- deployment
- automation
---

# Deploy n8n with AI on Blossom

[n8n](https://n8n.io/) connects apps and APIs through a visual workflow editor.
Automate tasks triggered by webhooks, schedules or events.

## Ask Your Agent

> **Ask your AI agent:** Deploy n8n on Blossom with a private editor and workers I can scale.
>
> Follow this guide: https://blossom88.com/deploy/n8n/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## Your Automation Setup

| Part | Purpose |
|---|---|
| Main Service | Editor, webhooks and triggers |
| Queue workers | Workflow execution |
| Managed PostgreSQL and Redis | Saved workflows, encrypted credentials and queues |

Keep one main process for this queue-mode setup and scale workers separately.
The editor stays private; production webhooks use their own authentication.
Keep the same encryption key across main, workers and app updates.

![A published n8n workflow connecting a Webhook node to Respond to Webhook.](/deploy/assets/images/n8n/workflow.webp)

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Your agent selects compatible releases and saves the chosen versions in
your deployment configuration. Main and workers use the same n8n image.

Create your n8n owner account when the editor first opens. Your agent saves
one `N8N_ENCRYPTION_KEY` and keeps it across main, workers, and app updates
so they can continue reading saved credentials.

**Scale workers for more execution capacity.** Keep one main process for
this queue-mode pattern. Have your agent check n8n's current
[multi-main requirements](https://docs.n8n.io/hosting/scaling/queue-mode/#multi-main-setup)
when planning redundancy for the editor and triggers.

Your agent prepares the files using current CLI help and n8n's
[queue-mode requirements](https://docs.n8n.io/hosting/scaling/queue-mode/).
Use the returned resource IDs in place of these examples.

### Create the App and Managed Data

    blossom profile:show
    blossom app:create --data '{"app":{"name":"n8n"}}'

The agent writes environment.yml with your App ID and chosen official image:

```yaml
environment:
  app_id: app-100
  name: production
  source_type: prebuilt_image
  prebuilt_image: <official image pinned by your agent>
  access_mode: members
  access_public_paths:
    - /webhook/*
```

It selects compatible PostgreSQL and Redis releases, resource sizes,
storage, and backups in database_instance.yml and cache_instance.yml.

    blossom environment:create --data environment.yml
    blossom database_instance:create --data database_instance.yml --follow
    blossom database:list --database_instance database_instance-100
    blossom cache_instance:create --data cache_instance.yml --follow
    blossom environment_link:create --data '{"environment_link":{"environment_id":"environment-100","target_type":"Database","target_id":"database-100","var_name":"DATABASE_URL"}}'
    blossom environment_link:create --data '{"environment_link":{"environment_id":"environment-100","target_type":"CacheInstance","target_id":"cache_instance-100","var_name":"REDIS_URL"}}'

### Configure Main and Workers

The agent maps `DATABASE_URL` and `REDIS_URL` to the selected n8n release's
settings, enables queue mode, and chooses shared storage for workflow files.
It keeps the encryption key and connection settings in a private
.env.production file, outside your application repository.

    blossom env_var:push --environment environment-100 --file .env.production

The main Service runs `n8n start`; the worker Service runs `n8n worker`.
The agent chooses worker concurrency, resources, and health checks for your
workflows, and keeps workers private.

    blossom service:create --data web.yml
    blossom service:create --data worker.yml
    blossom environment:deploy --id environment-100 --follow
    blossom environment:show --id environment-100

The agent uses the returned HTTPS URL, or your custom domain, for n8n's
editor and production webhook URLs. It saves those settings and redeploys:

    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow

</details>

## Run Your First Workflow

Connect a Webhook node with Header Auth to Respond to Webhook. Publish it and
try its Production URL with and without credentials. Keep the editor and
administrative APIs behind Blossom Account access.

<details class="optional-reading" markdown="1">
<summary>Webhook access and inspection commands</summary>

Use a **Webhook** node with **Header Auth**, followed by **Respond to Webhook**.
For a simple example, return the incoming request ID. Publish the workflow
and test its **Production URL** with and without authentication.
`/webhook/*` bypasses Blossom's member sign-in; n8n checks the webhook's own
authentication. Keep the editor and `/rest/*` behind Account-member access.

    blossom service:list --environment environment-100
    blossom logs --environment environment-100 --lines 30

</details>

<details class="optional-reading" markdown="1">
<summary>Adding workers</summary>

Workers scale independently of the editor. Your agent chooses a replica
count and concurrency that fit the workload.

For example, to run two worker Containers:

    blossom service:scale --id service-WORKER --desired-size 2 --follow

</details>

## What You Get

- A private n8n editor and authenticated production webhooks
- Workflows and encrypted credentials in managed PostgreSQL
- Redis-backed queue workers you can scale separately
- Saved data and a stable encryption key across app updates
