Triggers
Nodes that initiate a workflow execution in Nodes2Cloud
Trigger Nodes
Triggers are the starting points for your workflow. Every workflow begins with a Trigger node that defines when and how your Cloudflare Worker execution is invoked.
When a trigger fires, Cloudflare runs your compiled Worker in your own Cloudflare account. Nodes2Cloud does not run your workflow; the compiled Worker does.
1. Webhook Trigger
What the node does
Generates an HTTPS endpoint on your Cloudflare Worker that listens for incoming HTTP requests (webhooks) from external services, payment gateways, GitHub, Stripe, or custom clients.
How to get credentials / Setup Requirements
No third-party credentials are required. When you deploy your workflow, Nodes2Cloud automatically assigns a production URL on your Cloudflare Worker domain. You can optionally configure a secret header or bearer token for incoming request verification.
What each option/field does
- HTTP Method: The HTTP method to accept (
POST,GET,PUT,DELETE,PATCH, orANY). - Path / Slug: The custom sub-path for the webhook endpoint (e.g.,
/webhooks/stripe). - Response Mode:
Immediately (200 OK): Responds with HTTP 200 immediately upon receiving the payload while the workflow continues processing asynchronously.When Last Node Finishes: Holds the HTTP connection open and returns a custom response generated by a downstream Respond to Webhook node.
- Secret Header: (Optional) Enforces a shared secret header (e.g.
X-Webhook-Secret) to reject unauthorized requests.
How to set it up
- Add the Webhook Trigger node as the first node in your workflow.
- Set the HTTP Method to
POSTand set your desired Path. - Deploy the workflow. Copy the generated webhook URL from the workflow settings or node inspector.
- Paste the webhook URL into your external provider (e.g., Stripe, Shopify, or GitHub webhook settings).
- The incoming HTTP body, query parameters, and headers are available in downstream nodes via
{{$json.body}},{{$json.query}}, and{{$json.headers}}.
Common Troubleshooting
- 404 Not Found: Ensure the URL matches the exact path configured in the node and that the workflow has been activated and deployed.
- 401 Unauthorized: If a Secret Header is configured, verify that the caller transmits the exact header name and secret value.
- Timeout on Synchronous Response: If Response Mode is set to
When Last Node Finishes, the workflow must complete and execute a Respond to Webhook node within Cloudflare Worker timeout limits (typically 30 seconds).
2. Cron Schedule Trigger
What the node does
Executes your workflow automatically on a recurring time-based schedule using standard 5-part cron syntax (e.g., every 15 minutes, daily at midnight, or every Monday morning).
How to get credentials / Setup Requirements
Uses Cloudflare Workers native Cron Triggers. No external credentials or third-party cron services are needed.
What each option/field does
- Schedule (Cron Expression): A standard cron pattern:
* * * * *(Every minute)*/15 * * * *(Every 15 minutes)0 0 * * *(Daily at midnight UTC)0 9 * * 1(Every Monday at 09:00 UTC)
- Timezone: The timezone for evaluating cron schedules (UTC by default).
How to set it up
- Add the Cron Schedule node as the starting node of your workflow.
- Enter your desired cron expression.
- Deploy the workflow. Nodes2Cloud configures the schedule directly in your Cloudflare Worker script schedules (
PUT /accounts/:id/workers/scripts/:name/schedules). - Downstream nodes receive the scheduled timestamp and cron metadata in
{{$json.scheduledTime}}.
Common Troubleshooting
- Cloudflare Schedule Minimum Interval: Cloudflare Workers Cron Triggers support schedules down to 1-minute intervals. Sub-minute scheduling is not supported natively by Cloudflare.
- Timezone Drift: Cloudflare triggers evaluate in UTC. Be sure to account for UTC offsets when targeting specific local business hours.
3. Error Trigger
What the node does
Acts as a global error-handling workflow. When any deployed workflow in your Nodes2Cloud workspace crashes due to an unhandled exception or API failure, the Error Trigger workflow automatically executes to send alerts (Slack, Discord, Email) or log incidents.
How to get credentials / Setup Requirements
Internal Nodes2Cloud event bus; no credentials required.
What each option/field does
- Workflows to Monitor: Choose whether to listen for errors from
All Workflowsor select specific mission-critical workflows from a dropdown. - Include Stack Trace: Toggle whether full execution stack traces and error details are passed to the payload.
How to set it up
- Create a dedicated error-handling workflow starting with the Error Trigger node.
- Connect alert nodes downstream (such as Slack: Post Message, Discord: Send Message, or Email: Send).
- Reference error details in downstream templates:
{{$json.workflow.name}}: The name of the failed workflow{{$json.error.message}}: The error message{{$json.executionId}}: The execution run ID
- Activate the error workflow. Any uncaught error in monitored workflows will now dispatch to this handler.
Common Troubleshooting
- Recursive Error Loops: Ensure your Error Trigger workflow does not call external APIs that fail with unhandled errors, as this could trigger an infinite alert loop. Always handle errors inside notification nodes gracefully.
4. Queue Trigger
What the node does
Triggers your workflow whenever a message or batch of messages is published to a Cloudflare Queue. This provides guaranteed, asynchronous, at-least-once message processing and load smoothing.
How to get credentials / Setup Requirements
Requires a Cloudflare Queue in your connected Cloudflare account. The compiled Worker reaches the Queue through a Worker binding in your account, not over the public internet.
What each option/field does
- Queue Name: The name of the Cloudflare Queue to subscribe to.
- Batch Size: Maximum number of messages delivered in a single batch (1 to 100, default 10).
- Max Wait Time (Seconds): Maximum time Cloudflare will buffer messages before delivering a batch (default 5s).
How to set it up
- In your Cloudflare Dashboard, create a Queue under Workers & Pages → Queues.
- In Nodes2Cloud, add the Queue Trigger node and select or enter your Queue Name.
- Connect your downstream processing nodes. The payload
{{$json.messages}}contains an array of message items with their message IDs and bodies. - Deploy the workflow. Nodes2Cloud registers the Worker as an idempotent consumer on the specified Queue.
Common Troubleshooting
- Consumer Registration Delay: When deploying a queue consumer for the very first time, Cloudflare may take 30–60 seconds to route messages to the newly attached Worker script.
- Message Retries: If your workflow throws an unhandled exception while processing a message batch, Cloudflare Queues automatically retries message delivery according to the queue's retry policy.
5. Form Trigger
What the node does
Serves a hosted, responsive web form with custom input fields directly from your Cloudflare Worker. When an end-user submits the form in their browser, the workflow starts and receives all submitted form values.
How to get credentials / Setup Requirements
No credentials needed. The hosted HTML form is served on the Worker's capability URL.
What each option/field does
- Form Title: The heading displayed at the top of the hosted web form.
- Description: Subtext or instructions shown below the title.
- Fields: Visual form builder list where you define form inputs:
Name: Variable key passed downstream (e.g.customer_email).Label: User-facing label (e.g.Your Email Address).Type: Field type (text,number,email,date,checkbox,select,textarea).Required: Checkbox to enforce browser validation before submission.Placeholder: Helper text inside the input.Options: Comma-separated options forselectdropdowns (e.g.Free, Pro, Enterprise).Default Value: Pre-filled value.
- Submit Button Text: Custom text for the submission button (e.g.
Send Request). - Success Message: Confirmation message rendered in the browser upon submission.
- Redirect URL: (Optional) URL to redirect the user to after successful submission.
How to set it up
- Add the Form Trigger node to your workflow.
- Click Add Field to configure your required inputs (e.g., Name, Email, Inquiry message).
- Deploy the workflow and copy the hosted form URL.
- Open the form in any web browser or share it with users.
- On submit, downstream nodes access form entries directly via
{{$json.fieldName}}.
Common Troubleshooting
- Missing Output in Browser Testing: When testing the Form Trigger in the editor canvas, test runs simulate a mock submission. To test the live form, open the production deployment URL in an external browser tab.
6. Chat Trigger & Chat Reply
What the node does
- Chat Trigger: Serves a clean, hosted interactive chat page. Every message sent by an end-user starts the workflow.
- Chat Reply: Sends the workflow's AI or bot response back to the active chat session in the user's browser window.
Together, these two nodes allow you to build AI customer assistants, support bots, and interactive agents with zero frontend code.
How to get credentials / Setup Requirements
Hosted directly on Cloudflare Workers; no external credentials required.
What each option/field does
Chat Trigger:
- Chat Title: Title shown in the chat window header.
- Welcome Message: Initial message displayed before the user types anything.
- Input Placeholder: Placeholder text in the message input box.
- Authentication:
None (default)orBasic auth(enforces username and password to send messages). - CORS Allowed Origins: List of origins allowed to embed or call the chat endpoint from an external website.
Chat Reply:
- Message: The text or markdown response to send back to the user (e.g.
{{$json.output}}from an AI Agent or LLM node).
How to set it up
- Add the Chat Trigger as the start node.
- Connect your AI or logic nodes (e.g., OpenAI: Chat Completion or AI Agent).
- Connect the Chat Reply node as the final node in the branch.
- Set the Message field in Chat Reply to
{{$json.output}}. - Deploy the workflow and open the hosted chat link.
Common Troubleshooting
- Raw JSON Output in Chat: Ensure the Chat Reply node extracts the text string (e.g.
{{$json.output}}or{{$json.message}}) rather than returning the entire raw context object.
7. Email Trigger
What the node does
Starts your workflow whenever an email is received at a designated email address on your domain via Cloudflare Email Routing. The workflow receives the sender, recipient, subject, headers, plain text body, HTML body, and file attachments.
How to get credentials / Setup Requirements
- Your domain must be an active zone on your Cloudflare account with Email Routing enabled.
- (Optional) If your primary Cloudflare OAuth connection does not have Zone Email Routing edit permissions, you can create a custom Cloudflare API Token with
Zone > Email Routing Rules (Edit)andZone > Zone (Read)permissions and provide it in the node.
What each option/field does
- Inbound Address: The full email address to listen on (e.g.
[email protected]). - Email Routing API Token: (Optional) API token with Email Routing permissions if not using workspace OAuth defaults.
- Sender Filter: (Optional) Whitelist specific senders or
@domain.comdomains. Emails from unlisted senders are dropped immediately. - Subject Contains: (Optional) Filter emails by subject keyword (case-insensitive).
- Message Action: Action to perform on Cloudflare's email system (
None / Accept,Forward, orReject).
How to set it up
- Enable Email Routing on your domain in Cloudflare dashboard (Websites → yourdomain.com → Email Routing).
- Add the Email Trigger node and enter your
[email protected]address. - Deploy the workflow. Nodes2Cloud creates the Cloudflare Email Routing catch rule automatically to route matching emails to your Worker.
- Downstream nodes receive:
{{$json.from}}: Sender email address{{$json.subject}}: Email subject line{{$json.text}}: Plaintext body{{$json.html}}: HTML body{{$json.attachments}}: Array of file references{{$json.messageId}},{{$json.inReplyTo}},{{$json.references}}: Threading headers. PassmessageIdas In-Reply-To andreferencesas References on Gmail: Send Email so your answer threads in the sender's mail client.{{$json.raw}}: The whole message as an.emlfile
The subject is decoded (accents and emoji included), and the text and HTML bodies are pulled out of multipart messages with their encoding and character set handled. A body the message doesn't have comes through as an empty string.
Detecting replies to outreach: send with Reply-To set to this trigger's address, then mark the sender as replied in this workflow (for example with D1 Query). Set Message Action to Forward so the reply still lands in your inbox.
Common Troubleshooting
- Deploy Error: Email Routing Not Configured: If deployment fails with an authentication or zone error, ensure Email Routing DNS MX records are verified in your Cloudflare dashboard and that your API token has
Zone: Email Routing Rules: Editpermissions.
8. Google Sheets: Row Added/Updated Trigger
What the node does
Polls a Google Sheet on a recurring schedule and initiates workflow execution whenever new rows are appended or existing rows are modified.
How to get credentials
Uses your connected Google Workspace credential (OAuth or Google Cloud Service Account with Google Sheets API enabled). See Google Workspace Integration.
What each option/field does
- Credential: Your connected Google Workspace credential.
- Spreadsheet ID: The unique identifier from your Google Sheet URL.
- Sheet Name: The name of the specific worksheet tab (e.g.,
Sheet1). - Trigger Event:
Row Added(checks for new row indexes) orRow Updated(checks for changes in row contents). - Poll Interval: Frequency to check the sheet (e.g., every 5 minutes).
How to set it up
- Add the Google Sheets: Row Added/Updated trigger node.
- Select your Google credential and specify the Spreadsheet ID and Sheet Name.
- Downstream nodes receive each new or changed row mapped as a key-value JSON object based on your column headers.
Common Troubleshooting
- 403 Forbidden / Not Shared: If using a Service Account, ensure the Google Sheet is shared with the service account's email address (
[email protected]) as Viewer/Editor.
9. Google Docs: Document Updated Trigger
What the node does
Monitors a Google Doc on a schedule and triggers your workflow whenever content is added or modified in the document.
How to get credentials
Requires Google Workspace credentials with Google Docs API enabled.
What each option/field does
- Credential: Your connected Google Workspace credential.
- Document ID: The unique document ID from the Google Docs URL.
- Poll Interval: Polling frequency (e.g., every 15 minutes).
How to set it up
- Provide your Google credential and Document ID.
- Connect downstream actions (such as generating summaries, archiving updates, or notifying teams).
10. Manual Trigger
What the node does
Starts your workflow on-demand via a button click inside the Nodes2Cloud visual editor. It is primarily used for testing, prototyping, and debugging workflows with simulated data.
What each option/field does
- Mock Data (JSON): Optional JSON payload that will be passed into downstream nodes as the initial
payload.
How to set it up
- Add the Manual Trigger node at the beginning of your flow.
- Supply any test JSON payload in Mock Data.
- Click Test Workflow in the canvas header to execute and inspect results at each node.
