---
title: Deploy Activepieces with AI on Blossom
url: "/deploy/activepieces/"
canonical_url: https://blossom88.com/deploy/activepieces/
markdown_url: https://blossom88.com/deploy/activepieces.md
summary: Deploy Activepieces with AI on Blossom. Build webhook workflows with a private
  editor, separate workers, managed PostgreSQL and Redis, and shared object storage.
stack:
- TypeScript
- React
- Fastify
- PostgreSQL
- Redis
---

# Deploy Activepieces with AI on Blossom

[Activepieces](https://www.activepieces.com/) connects apps and APIs through
visual workflows. Start with a webhook or schedule, then add actions and code
to automate work.

## Ask Your Agent

> **Ask your AI agent:** Deploy Activepieces on Blossom and help me build a webhook workflow.
>
> Follow this guide: https://blossom88.com/deploy/activepieces/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Your Automation Workspace

| Part | Purpose |
|---|---|
| Editor and API | Build flows and receive webhooks |
| Worker | Executes queued actions |
| Managed PostgreSQL and Redis | Store workflows and coordinate jobs |
| Your S3 or R2 bucket | Shares files, execution logs and piece bundles |

Have a private bucket and bucket-restricted credentials ready. Keep the editor
behind Blossom Account access; expose only the webhook paths your flows need.
Protect each webhook with Activepieces authentication.

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

Your agent checks the current [production requirements](https://www.activepieces.com/docs/install/configure-operate/production-setup),
chooses compatible maintained releases and resources, and pins the image's
multi-architecture index. Create separate app and worker Services from the
same image, with managed PostgreSQL and Redis:

    blossom profile:show
    blossom app:create --data '{"app":{"name":"activepieces"}}'
    blossom environment:create --data environment.yml
    blossom database_instance:create --data postgres.yml
    blossom cache_instance:create --data redis.yml

Wait for each returned Activity to succeed before connecting the data. Link
the logical PostgreSQL Database as `AP_POSTGRES_URL` and the Cache instance as
`AP_REDIS_URL`:

    blossom activity:wait --id activity-100 --timeout 20m
    blossom environment_link:create --data postgres-link.yml
    blossom environment_link:create --data redis-link.yml

Set `AP_DB_TYPE=POSTGRES`, `AP_REDIS_TYPE=STANDALONE` and the edition and
environment settings for your release. Generate and preserve
`AP_ENCRYPTION_KEY` and `AP_JWT_SECRET` in a private .env.production file.
Keep the same encryption key when replacing Containers or updating images.

The web Service runs `AP_CONTAINER_TYPE=APP` using the image's entrypoint.
Set its public `AP_FRONTEND_URL` to the HTTPS endpoint. A startup wrapper can
derive it from `https://${BLOSSOM_SERVICE_HOST}` on the first deployment.
Use a Node-based command probe against `/api/v1/health` on the app's HTTP
port, and allow time for initialization.

The worker runs `AP_CONTAINER_TYPE=WORKER`, with an upstream-supported
`AP_WORKER_TOKEN` and its `AP_FRONTEND_URL` pointing to the web Service's
private address. Follow the current [separate-worker setup](https://www.activepieces.com/docs/install/configure-operate/separate-workers).
Use code-only sandboxing when suitable for your users and choose concurrency
from the worker's available memory. Workers need outbound access to fetch
pieces and call the integrations you configure. Keep data and storage
administration credentials out of the worker process.

Use [S3 storage](https://www.activepieces.com/docs/install/configure-operate/setup-s3)
for shared files and bundles. Set `AP_FILE_STORAGE_LOCATION=S3`, the bucket,
region and endpoint settings, and enable signed URLs. Keep the bucket private;
allow browser CORS only for the app's origin. With temporary credentials,
use the supported SDK credential chain and supply the session token too.
Credentials for a retained deployment need renewal or an appropriate lifetime.

    blossom env_var:push --environment environment-100 --file .env.production
    blossom service:create --data web.yml
    blossom service:create --data worker.yml
    blossom environment:update --id environment-100 --data '{"environment":{"access_mode":"members","access_public_paths":["/api/v1/webhooks/*"]}}'
    blossom environment:deploy --id environment-100 --follow
    blossom environment:show --id environment-100

Create the first Activepieces administrator through Blossom Account access.
Only the webhook exception bypasses that gate; enable native webhook
authentication before publishing a flow. Neither Service needs a Persistent
Volume with this setup.

</details>

## Build Your First Flow

Connect **Catch Webhook → Code → Return Response**. Send a sample lead, route
it by team size, and return the result. Use the data picker to map each step's
output, then publish and inspect its run history.

![An Activepieces webhook workflow routes a sample website lead and returns its result.](/deploy/assets/images/activepieces/lead-router.webp)

<details class="optional-reading" markdown="1">
<summary>Updates and scaling</summary>

Keep the database, bucket and encryption settings stable across updates.
Container-local caches are disposable; shared files belong in object storage.

    blossom environment:deploy --id environment-100 --follow
    blossom container:list --environment environment-100

The deployment check covered authenticated webhooks, two routing outcomes,
saved flow and run-history reads, and new executions after replacing both
the app and worker Containers. Worker capacity can grow independently using
Activepieces' supported configuration. This check used one worker; it did
not establish performance at scale or high availability.

Connected apps may need their own credentials, OAuth callbacks or paid
accounts. Configure those for the integrations you actually use.

</details>

## What You Get

- A private visual workflow editor with separate execution workers
- Managed PostgreSQL and Redis for workflows and queues
- Shared files and execution logs in your own S3 or R2 bucket
