How to identify the workflow execution is automatical or mannual using global variable

Describe the problem/error/question

how to identify the workflow execution is automatical or manual using global variable

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Gouravdev,

Have you already tried {{ $execution.mode }} this will return production if the workflow was triggered by a webhook or schedule and test if for manual executions.

You can find this and a few other handy options here: n8n metadata | n8n Docs

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.