What are Triggers?

Triggers initiate a workflow’s execution and help configure when it should be executed. They are the starting points of a workflow and define when and why it should begin. In Zuper Workflow Builder, triggers can be based on platform events, schedules, or external system calls (webhooks). Choosing the right trigger is essential for automating the correct business process at the right time.

Supported Triggers

1. Zuper Event-Based Triggers

Definition: These triggers initiate workflows in response to specific events within the Zuper platform (For instance, when a job is created or an invoice is updated).  Common Use Cases:
  • Automate notifications when a job is created or updated.
  • Send the quote PDF to the customer when a quote is accepted.
  • Update records or send alerts when an invoice status changes.
WFT0 Pn How to Configure:
  • In the Workflow Builder, select an event (For instance, “On Create Job”).
  • Set conditions (For instance, job type and priority).
  • Example: Trigger when a new “Service” job with “High” priority is created.
Best For: Automating internal processes based on Zuper platform activity.

2. Schedule-Based Triggers

Definition: These triggers start workflows at predefined times or intervals, without manual intervention. WS1 Pn Types:
  • Cron-Based (Repeats Every): Use cron expressions for precise scheduling (For instance, every Monday at 8 AM).
  • Recurrence: Daily, weekly, monthly, or yearly schedules.
  • Fixed Interval: Run at regular intervals (For instance, every 15 minutes, hourly, daily at 9 AM).
 What is Recurrence in Scheduled Triggers? Recurrence allows you to set up your workflow to run automatically at regular intervals, such as every day, week, or month, without manual intervention. This is useful for automating repetitive tasks like sending reports, reminders, or performing routine data updates.

 Types of Recurrence

1. Daily
  • The workflow runs every day at a specified time.
  • Example: Send a daily summary email at 8:00 AM.
2. Weekly The workflow runs at a specified time on selected days of the week (For instance, every Monday and Wednesday).
  • Recurrence: Every Week
  • Days selected: Monday (Mo) and Wednesday (We)
  • Time: 16:08 (4:08 PM)
Note: The weekly schedule allows you to choose multiple days of the week.
WT31 Pn 3. Monthly The workflow runs at a specified time on selected days of the month (For instance, the 4th, and the 27th).
  • Recurrence: Every Month
  • Days selected: 4 and 27
Note: The monthly schedule allows you to choose multiple dates of the month.
WT32 Pn

How to Set Recurrence

  • Choose “On Schedule” as your trigger.
  • Select “Repeats every” to set up a recurring schedule.
  • Pick the recurrence frequency (Every Day, Every Week, Every Month).
  • Specify the exact days and time you want the workflow to run.
  • Set the timezone to ensure the workflow runs at the correct local time.

Why Use Recurrence?

  • Automate repetitive tasks (For instance, reschedule open jobs for the next day at the end of every day).
  • Reduce manual effort and ensure consistency.
  • Customize schedules to fit your business needs (For instance, only on workdays, or specific days of the month).

Configuration Steps:

  • Add the “On Schedule” trigger in the workflow canvas.
  • Set the schedule (Interval, specific time, or cron expression).
  • Choose the timezone for accurate execution.
Example: Run a workflow daily at 8 AM Mountain Time to send a sales summary. Best For: Routine, periodic tasks like report generation, reminders, or data syncs.

 3. External Webhook Triggers

Definition: These triggers start workflows when an external system sends an HTTP request (webhook) to a specific Zuper endpoint.  How it Works:
  •  External apps (For instance, CRM, ERP) send data to a unique webhook URL.
  • The workflow is triggered in real-time upon receiving the request.
Configuration Steps:
  • Add the “On Webhook” trigger in the workflow.
  • Configure the webhook URL, HTTP method (GET/POST), and any required headers (e.g., Authorization).
  • Optionally, use headers like x-module and x-module-uid to associate the execution with a specific Zuper record (For instance, a job).
The “Advanced Settings” in the Zuper Workflow Builder for the “On Webhook” trigger allow you to customize the behavior of the webhook trigger to enhance functionality and control how the workflow responds to external HTTP requests. WTAD1 Pn Respond after completion/failure:
  1. Description: This setting determines whether the webhook endpoint sends a callback request to the external system after the workflow completes or fails. Options:
    • Enabled: The workflow will send a response (e.g., HTTP status code or payload) to the calling system once the workflow finishes executing or encounters a failure.
    • Disabled (default): No response is sent, and the external system may time out or assume the request was processed based on its logic.
    Use Case: This is useful for notifying external systems (e.g., a CRM) about the success or failure of the triggered action, ensuring real-time feedback.
  2. Method:
    • Description: Specifies the HTTP method used to send the response back to the external system.
    • Options:
      • GET: Returns a response with data retrieved from the workflow.
      • Other methods (e.g., POST) may be available depending on the platform, though only GET is shown in the image.
    • Use Case: Determines how the response is formatted or delivered, with GET typically used for simple status checks or data retrieval.
  3. Notify when Workflow finishes:
    • Description: This option allows you to configure a notification (for instance, an email or a log entry) when the workflow execution concludes.
    • Example URL: https://us-west-1-workflow.zuperpro.com/api/ (A sample URL) might be a placeholder or actual endpoint for sending notifications.
    • Use Case: Helps monitor workflow execution, especially for debugging or auditing purposes, by alerting a team or logging the event.
  4. Send Headers:
    • Description: Enables the inclusion of custom HTTP headers in the response sent back to the external system.
    • Fields:
      • Key:  Enter the header name.
      • Value: Enter the header value.
    • Use Case: This is useful for authentication (For instance, API keys), custom metadata, or ensuring the external system can validate the response (For instance, using a token like n73Bk).
WTAD2 Pn Practical Application
  • The concurrency limit (up to 10 simultaneous runs) mentioned earlier might also influence how these settings behave under heavy load, potentially queuing responses if the limit is reached.
Example: When a deal is closed, a CRM sends a POST request to Zuper, triggering a workflow to create a job in Zuper and log the execution under the relevant job record. Best For: Real-time integrations with external systems, syncing data, or automating cross-platform processes.
Trigger TypeBest ForExample Scenario
Zuper Event-BasedInternal automation on platform events.Notify the technician when a job is created.
Schedule-BasedRoutine, periodic, or time-based automation.Send daily reports at 8 AM.
External WebhookReal-time integration with external systems.Create a job in Zuper when a CRM deal is closed.