Activepieces Workflow Automation: Advanced Workflows, App Integrations, and Use Cases (Part 2)

Discover how to design advanced multi-step workflows, configure webhooks, and write custom JavaScript code pieces in Activepieces.

Advanced Automation with Activepieces

With your self-hosted Activepieces instance running, you can automate complex workflows without code, or extend integrations using custom JavaScript execution.

Creating Multi-Step Workflows

  1. Click New Flow in the Activepieces dashboard.
  2. Set a trigger (e.g., Webhook or RSS Feed update).
  3. Use a Branch piece to split paths based on conditional logic (e.g., check if an email contains the word "invoice").
  4. Add subsequent action steps (e.g., Send Discord message, write to Database).

Writing Custom JavaScript Pieces

When a pre-built app is missing an action, use the Code piece: 1. Add the Code piece to your workflow. 2. Select JavaScript/TypeScript. 3. The piece receives inputs from previous steps. Write clean ES6 code: javascript export const code = async (inputs) => { const response = await fetch(`https://api.example.com/data/${inputs.id}`); const json = await response.json(); return { status: "success", count: json.items.length }; };

Operational Monitoring

  • Monitor run logs under the Runs tab.
  • Set up notification webhooks on the Activepieces server configuration to alert you if a flow fails.