Skip to content
TradeeHub

Automations: Build rules and marketing workflows

14 min read

Automations: Build rules and marketing workflows

TradeeHub has four automation tools for different jobs:

  • Automation rules opens the Automations page, which reacts to a business event and runs one action.
  • Task automation creates internal team tasks from task templates.
  • Review requests configures post-job review outreach and shows request history.
  • Marketing workflows builds planned customer-message sequences for one selected company; it remains hidden until its final release verification passes.

They are separate tools. A task rule does not send a customer message, and a marketing workflow is not stored as a general automation rule.

Before you start

  • Automation rules and Marketing workflows require the active company's Automations setting. Task automation and Review requests use their own permission gates instead.
  • You need View notification rules to open Automation rules. Create, update, and delete access control the matching actions separately.
  • Review settings require Manage reputation; request history requires View reputation; manual review sending requires Respond to reputation in the active company.
  • Marketing workflows require an active company. If you are viewing your enterprise, select a company from the company switcher first.
  • SMS is unavailable until registration, consent, provider setup, and live channel readiness all pass. A texting number on its own is not enough.

What a general automation rule contains

Every rule has these parts:

  1. When — the business event that starts the rule.
  2. Only if — up to six optional conditions, joined by all or any.
  3. Do — one permitted action.
  4. Timing — immediately, after a delay, or before a real date carried by the trigger.
  5. Send window — the allowed days and times for a message.
  6. Advanced — stop events and optional debug evidence.

New rules are always saved as inactive drafts first. After the first save, the go-live summary shows what will happen and lets you activate the rule explicitly or leave it as a draft.

Available triggers

The builder offers 14 triggers across eight areas:

AreaTriggers
QuotesQuote sent, quote approved, quote lost
JobsJob completed, job status changed
ScheduleAppointment dispatched, appointment rescheduled
InvoicesInvoice sent, invoice overdue
PaymentsPayment recorded, payment failed
LeadsLead created
CallsMissed call
Service plansRenewal due

The quote follow-up stop-event list also recognizes the separate staff approval path. You do not need to create a second trigger just to stop a pending follow-up after staff approve the quote.

Available actions

Choose one of nine actions:

ActionWhat it doesImportant requirements
Send a messageSends an email or an available SMS to the trigger's verified recipientChannel readiness, recipient, and consent checks apply
Notify staffSends an internal notification to selected users, a role, a permission group, the assigned technician, or the record ownerThe target must exist and be visible to you
Create a taskSends a task request to WorkManagementService using a selected active task ruleSelect a company; Task admin and Task create access required
Call a webhookSends the allow-listed event payload to an HTTPS callbackSafe URL and rule update access required
Add to a marketing workflowAdds the contact from the triggering record to a launched workflowSelect a company; Campaign view and launch access required
Apply a work tagApplies the selected tag to the triggering job or quoteSelect a company; tag view plus record update access required
Remove a work tagRemoves the selected tag from the triggering job or quoteSelect a company; tag view plus record update access required
Add a customer noteAdds the saved note to the trigger's verified customer/contactRecord create access required
Create an invoiceRequests an invoice after a completed jobJob completed trigger and Job update access required

Actions stay disabled when the selected trigger cannot supply the required record, when you lack the required access, or when an active company is required. The reason appears in the action picker.

Create a rule

  1. Open Settings > Automation rules.
  2. Select New rule.
  3. Pick a recipe or continue with a blank builder.
  4. Choose a trigger and add any conditions.
  5. Choose one available action and complete its required fields.
  6. Set timing, the send window, and any stop events.
  7. Select Save.
  8. Review the go-live summary. Activate the rule or close the summary to keep the draft inactive.

An unknown trigger, incomplete action, unavailable channel, unsafe webhook, or missing required field is rejected instead of being saved as if it will work.

Start from a recipe

Recipes fill in a trigger, action, and timing you can review and adjust before saving. A recipe never bypasses permission or save checks. Recipe examples include:

  • Booking confirmation — emails the customer to confirm their appointment as soon as it's booked.
  • Appointment reminder — day before — texts the customer a reminder 24 hours before their appointment, and stops automatically if the appointment is rescheduled.
  • Job follow-up — checks in with the customer 2 days after the job is done to make sure everything's working.

Use timing and send windows

  • Immediately runs as soon as the rule matches.
  • After waits for the selected minutes, hours, or days.
  • Before appears only when the trigger contains a real future anchor, such as an appointment start or renewal date.

Custom send windows use the selected company's timezone and account for daylight-saving changes. The current production contract does not promise recipient-local quiet hours.

SMS actions always require a valid delivery window. TradeeHub adds required opt-out content when an SMS is rendered for sending; it is not editable in the saved message body.

Stop pending work when the situation changes

Stop events prevent stale follow-ups. For example, a quote follow-up can be scheduled for two days later and canceled automatically if the customer approves the quote, staff approve it, or the quote is marked lost first.

A matching stop event cancels pending work for the same source record. It does not cancel unrelated customers' work.

Use a webhook signing secret safely

Webhook actions display a tenant-derived signing secret as hidden by default. An authorized user must choose Reveal secret before it is fetched. The revealed value can be copied, then hidden again; hiding clears the revealed result.

Treat the secret like a password. Do not paste it into chat, logs, issue descriptions, or frontend storage. Use it only on your receiving server to verify incoming automation webhook signatures.

Understand Run history

Open the hub's History tab or a rule's own history drawer. Each row shows the rule, outcome, masked recipient when applicable, time, and a plain-language reason. Raw email addresses and phone numbers are not displayed. When an error code or diagnostic message is available, expand Technical details on that row.

There are 12 execution statuses:

StatusMeaning
StartedThe execution was claimed and is in progress
MatchedThe trigger and conditions matched
ScheduledThe action is queued for a later time or retry
SentAn outbound provider or synchronous action accepted the work
DispatchedAn asynchronous request was durably handed to its owning service; downstream completion is not yet claimed
Matched skippedThe rule matched but required data or a stop rule prevented dispatch
Not matchedA debug-enabled rule's conditions did not match
CappedA frequency or duplicate-delivery safeguard suppressed the message
CanceledPending work was canceled by a stop event or runtime guard
Transient failureA retryable provider or transport problem occurred
Permanent failureA non-retryable configuration, data, permission, or provider problem occurred
DeferredA compatibility path acknowledged the action without executing it

Dispatched does not mean the downstream task, tag update, or invoice has finished. Check the owning record or service for final completion.

Debug a rule that did not fire

Debug mode has two parts:

  1. Turn on Debug mode in the rule's Advanced section before the event occurs. This records condition failures for that rule.
  2. Turn on the History page's debug filter to display those Not matched rows.

Turning on the History filter cannot recreate older rows from when rule debug mode was off. Debug-only unmatched rows are kept for 30 days.

SMS readiness and missed-call textback

SMS is fail-closed. If registration, consent, provider configuration, the destination, or channel readiness is incomplete, the action remains unavailable or records an honest terminal result. TradeeHub does not simulate a successful send.

The missed-call trigger and recipe follow the same rule. Enabling missed-call handling on a number does not by itself make automated textback ready; the complete SMS readiness track must pass.

Task automation

Open Settings > Task automation to manage internal task-template rules. This page is protected by Task admin access and supports create, edit, active/draft toggle, delete, execution history, and summary counts.

Each rule has one action:

  • Create a task from template (default) — creates a task from the rule's selected task template.
  • Create an invoice — requests an invoice for the completed job, using the job's current billable, uninvoiced expenses. Only available when the trigger is Job completed. A rule using this action does not use a task template.

You can also limit a rule to one Job type. Leave it set to Any job type to run for every job, or pick a specific type so the rule only fires for jobs of that type. The job-type filter is only offered on job-related triggers.

Rules with the Manual trigger also show Run now. Each explicit run gets a fresh idempotency key, and its result is recorded as Started, Succeeded, Skipped, or Failed. Non-manual rules do not show Run now. Because Create an invoice requires the Job completed trigger, an invoice-creating rule never shows Run now — it only fires from the real event.

Run history records the outcome of every run. When a rule created an invoice, its history row includes a View invoice link to the invoice that was created. Running or firing the same request twice never creates a duplicate task or invoice.

Review requests

Select a company and open Settings > Review requests. Manage reputation loads and saves the settings. View reputation loads request history. The route opens with either permission, and the unavailable subsection remains blocked.

You can configure:

  • The public review destination.
  • Email or SMS as the default channel.
  • Email subject/body and SMS body.
  • How many follow-ups to send and how many days to wait between them.
  • The company timezone and SMS send window.
  • The required compliance acknowledgement for automated outreach.

The request list shows aggregate outcomes for Pending, Sent, Partially sent, Suppressed, Clicked, Opted out, and Failed. Email and SMS evidence is persisted separately behind the API, but the current page receives the aggregate status. Expired is defined for defensive handling but is not currently written by a production transition. Automatic completed-job processing first reuses an existing non-expired request; database enforcement for the newest aggregate statuses remains under verification.

Marketing workflows

Marketing Workflows is not currently relaunched. Its navigation item and direct route stay blocked until the complete audience-to-dispatch browser lifecycle, responsive checks, and final release gates pass. Do not expect Marketing > Workflows to appear yet.

After relaunch, select one company to:

  1. Choose a saved, manual, entity-derived, or abandoned-quote audience.
  2. Review the eligibility estimate, suppression summary, and empty/stale-audience warnings.
  3. Add ordered Email or SMS steps with templates, previews, merge fields, optional coupons, delays, company-local delivery windows, caps, bounded retries, and optional branches.
  4. Configure exits such as Job booked, Quote approved, Invoice paid, Marketing opt-out, Review left, Audience exit, or maximum touches.
  5. Run the dry-run and a provider-backed test send, then launch explicitly.
  6. Monitor each enrollment's current step, next-send time, completion/exit reason, health, step analytics, stable A/B allocation, and conversion/revenue attribution.
  • New steps are authored as either Email or SMS. The legacy combined campaign type is accepted only when reading compatible stored records and is never a step channel or new authoring option.
  • SMS steps remain unavailable until the company's external SMS readiness is complete.
  • Pausing a running workflow requires campaign update access.
  • Launching a draft or resuming a paused workflow requires campaign launch access.
  • Canceling a running or paused workflow requires campaign update access.
  • A/B behavior applies only while a same-channel experiment is actually running.
  • Quiet hours use the selected company's timezone, not a recipient-local timezone.

Enterprise-wide authoring is deliberately blocked because sender identity, consent settings, timezone, and spend controls belong to one company. Select a company in the company switcher to continue.

Atom and automation drafts

Atom can help draft a general automation rule in plain language. Atom saves drafts and cannot silently turn a rule live. A person must review the saved rule and confirm activation.

Troubleshooting

I cannot see Automation rules

Confirm Automations is enabled and you have View notification rules in the current company or enterprise context. Create-only access does not grant page visibility.

An action is disabled

Read the reason shown beside it. Common causes are a missing record permission, an incompatible trigger, or a company-owned action selected while you are in enterprise view.

My rule did not run

  1. Confirm the rule is active, not an inactive draft.
  2. Open Run history and read the latest outcome and friendly reason.
  3. If you need condition-failure evidence for future events, enable debug mode on the rule.
  4. For outbound messages, check channel readiness and the customer's recipient/consent data.
  5. For delayed work, check whether a stop event canceled it before dispatch.

History says Dispatched but I do not see the result

Dispatched confirms the request reached the owning service's durable transport. It does not confirm the downstream record mutation. Open the task, job, quote, or invoice area to check the final result.

SMS is unavailable

SMS needs more than a configured number. Registration, consent, provider setup, and live readiness must all pass. Use email while the external SMS track is incomplete.

My invoice-creating task automation rule shows Skipped

This means the job had no approved scope to invoice yet when the job was marked completed. Approve the job's scope, then complete the job again or trigger the same event so the rule can re-evaluate. Create an invoice rules never create a wrong or partial invoice — a missing prerequisite always shows as Skipped or Failed, not a silent success.

I cannot see Review requests

Select a company. Confirm Manage reputation for the settings section or View reputation for request history. General notification-rule permissions do not grant either capability.

I cannot see Marketing Workflows

The surface is intentionally hidden until its release-verification gate passes. After relaunch, select a company and confirm you have View campaigns; enterprise-wide workflow authoring remains blocked.

Permissions required

PermissionWhat it controls
View notification rulesOpen the Automation rules hub and history
Create notification ruleCreate or duplicate a rule
Update notification ruleEdit, activate, or deactivate a rule; reveal its webhook secret
Delete notification ruleDelete a rule
Task adminOpen and manage Task automation, including its action and job-type settings; run active Manual rules
View reputationOpen and inspect Review request history
Manage reputationOpen and change Review request settings
Respond to reputationSend a manual Review request
View campaignsOpen Marketing Workflows after relaunch
Create campaignCreate a workflow draft
Update campaignEdit, pause, or cancel a workflow
Launch campaignLaunch a draft or resume a paused workflow
View marketing templatesLoad templates in the workflow builder
View audiencesLoad audiences in the workflow builder
View marketing analyticsOpen workflow results, conversion, and revenue analytics

Company context uses company permissions. Enterprise-scoped general automation rules use enterprise permissions. Company-owned task rules, review requests, workflows, and work tags require you to select a company. Workflow builder URLs also require campaign, template, audience, and marketing-analytics read access.