Can a WebSaaS.ai SaaS connect to an n8n workflow?

Please login or register to join the conversation
$user->name Client 7

on August 30th, 2025

Absolutely!

n8n is designed as a workflow automation tool, and while it normally runs as a server with a UI, you can run workflows from the command line with arguments — it takes a few steps. Let me break it down:

🔹 Running n8n Workflows as the AI service connected to WebSaaS.ai


 

1. Using n8n execute

n8n has a built-in command:

n8n execute --id <WORKFLOW_ID> --rawExec <JSON_INPUT>
  • --id <WORKFLOW_ID> → runs a saved workflow from your n8n instance (DB must contain it).
  • --rawExec → lets you pass JSON input directly (like arguments). Example:
n8n execute --id 5 --rawExec '{"text":"Hello World","count":3}'

 Inside your workflow, the first node (e.g. Function or HTTP Request) will see this JSON as its input.

2. Run with a Workflow File

You can also run workflows stored as JSON files:

n8n execute --file my-workflow.json --rawExec '{"foo":"bar"}'

 This is great for shipping workflows with code or version control.

3. Where It Can Run

  • Locally: install n8n with npm or Docker and run workflows on your dev machine.
  • On a server/VPS: (e.g. DigitalOcean, AWS, Hetzner) where n8n runs as a CLI tool.
  • Inside Docker: using docker run n8nio/n8n execute ....
  • CI/CD or cron jobs: run workflows on schedule via cron or CI pipelines (GitHub Actions, GitLab CI, etc.).

4. Converting Workflow into CLI "Script-Like" Behavior

  • Create a workflow with input nodes (like Function node expecting variables).
  • Save/export it as JSON.
  • Call it via n8n execute --file ... --rawExec ....
  • This effectively lets you use n8n workflows as command-line scripts with parameters.

🔹 When to Do This

  • You want to reuse n8n workflows outside of the UI (e.g. with WebSaaS.ai).
  • You want a CLI-friendly microservice (e.g., a data pipeline, API call, or AI model invocation) so it can be connected to a SaaS site and get subscribers
  • You want to integrate n8n into other automation scripts or CI/CD pipelines.

So yes — n8n workflows can be run like command-line tools with arguments, either from a workflow in the DB or from a JSON file.


 They can run anywhere Node.js or Docker runs (your laptop, server, cloud function, container).


 

And as such they can be connected to WebSaaS.ai as the service provided by the no code SaaS to your subscribers.

Category

🙏 Q&A


Participants