# Session control in n8n: pause and resume workflows on external events
This template enables stateful management of long-running workflows in n8n by allowing execution to be paused and resumed based on external events. It´s designed for processes that depend on user actions or responses from external systems.
## Who it´s for
- n8n developers building long-lived processes requiring pause/resume functionality.
- Automation engineers who need to trigger workflow continuation from external sources.
- Teams developing chatbots with persistent conversation state.
## What the automation does
- Receives session data via executeWorkflowTrigger, including session_id and resume_url.
- Determines whether the session is new or should resume a previously paused execution.
- Stores session state using workflow static data.
- Resumes paused executions by sending an HTTP request to the stored resume URL.
- Routes logic internally between new sessions and resumptions using conditional flows.
## What´s included
- Ready-to-use n8n workflow implementing the ´Teleport´ pattern.
- Trigger logic for execute_workflow_trigger and manual start.
- Integrations using native n8n features: HTTP API, JavaScript Code Node, Static Data Storage.
- Basic textual guide for import and adaptation.
## Requirements for setup
- Active n8n instance with workflow editing permissions.
- Access to external systems that will send resume triggers (e.g. bots, forms, CRMs).
- Understanding of n8n’s static data and resume URL mechanics.
## Benefits and outcomes
- Enables long-term workflows with built-in waiting periods.
- Preserves full execution context across pauses.
- Reduces complexity of state management without external databases.
- Simplifies integration with onboarding flows, moderation tasks, and chatbots.
- Improves reliability of automations through explicit state control.
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet