How to Build & Trigger Automations
Walk through the automation builder: set triggers, add actions, control which automation runs first when several listen to the same event, and let the platform handle your repetitive tasks.
Automations are the backbone of a well-run CRM. Instead of remembering to send follow-ups, create tasks, or update records manually, you define the rules once and TrustPager handles the rest every time, without fail.
The Automation Builder
Each automation has two parts: a trigger (what starts it) and one or more actions (what happens). The visual builder shows the flow clearly: trigger at the top, actions in sequence below.
Available Triggers
TrustPager supports a wide range of trigger types:
- Stage Change - fires when an opportunity moves between pipeline stages. Note: stage-change automations work differently - they bind to a single pipeline stage and are managed from the pipeline page at https://app.trustpager.com/operations/pipelines. They do not support multiple triggers.
- Form Submission - fires when a contact submits a form
- Form Opened - fires the first time a recipient opens a form you sent them (before they submit). Use this to follow up while your form is top of mind.
- New Contact Created - fires when a contact is added to the CRM
- Tag Added - fires when a tag is added to an opportunity. See the Tag Added Trigger section below.
- Custom Field Changed - fires when one dropdown or checkbox custom field on an opportunity changes to the value you pick. See the Custom Field Changed Trigger section below.
- Scheduled - fires on a time-based schedule (daily, weekly, etc.)
- Webhook Received - fires when an external system sends data
- Manual - fires when you click a button
- Task Completed - fires when a person ticks a task off. See the Task Completed Trigger section below.
- Signature Opened - fires the first time a recipient opens a document you sent for signing (before they sign). Available under the Signatures trigger card.
- Work Order Portal Opened - fires the first time a recipient unlocks the work order portal you sent them.
- Call Missed - fires when an inbound call to one of your TrustPager numbers goes unanswered. Available under the SMS card. See the Call Missed Trigger section below.
- Invoice Paid - fires once when an invoice becomes fully paid, however the payment is recorded. Available under the Invoices trigger card. See the Invoice Paid Trigger section below.
- Scheduler - fires when a booking is made, rescheduled, or cancelled on your TrustPager scheduling page. See the Booking Event Triggers section below for the full breakdown.
Tag Added Trigger
Tag Added runs an automation when a tag is added to an opportunity. It does not matter where the tag came from: the opportunity page, the board, the API, an import or another automation all count.
Set it up
- Open your automation at https://app.trustpager.com/auto/automations and click its CRM trigger. The Configure CRM Trigger window opens.
- Choose Tag Added. It sits after Opportunity Lost and before Contact Created.
- In the Tag (optional) box, type the tag. Your existing opportunity tags are offered as suggestions, and capitals do not matter. Leave it empty to run on any tag.
- If you want, narrow it to one pipeline and stage using the optional scope below.
The summary line tells you what you set: "Will trigger when the tag X is added to an opportunity" or "when any tag is added".
Good to know
- It runs once for each tag added, within about a minute. It is not instant.
- Tags already on an opportunity when it is created do not count. Use Opportunity Created for that.
- Removing a tag and adding it again runs the automation again.
Recipe: a tag that works as a button
Create a tag such as "Resend welcome email". Build an automation triggered by Tag Added with that tag. Make the first step remove the tag, then add the step that does the work (send the email). Anyone can now add the tag to an opportunity any time they want the email sent again, and the tag clears itself ready for next time.
Opportunity Updated is retired
The old Opportunity Updated trigger no longer runs and cannot be added to new automations. An automation that still uses it shows it as "Opportunity Updated (Retired)". It ran on every small edit to an opportunity, so automations woke up far more often than anyone intended. Use the moment that matters instead: a stage change, Opportunity Won or Lost, Tag Added, Custom Field Changed, or a manual Quick Action button on the opportunity. To run when a job status changes, use Custom Field Changed with a Status dropdown.
For the API and AI assistant tools (add_automation_trigger, update_automation_trigger, create_automation), the tag goes in the trigger config and the source is left empty. See the field names at https://docs.trustpager.com/reference#automations.
Custom Field Changed Trigger
Custom Field Changed runs an automation when one opportunity custom field changes to one value you choose. It is the precise way to "run when a job status changes": pick the Status field and the value Scheduled, and the automation runs only at that moment.
Set it up
- Open an automation at https://app.trustpager.com/auto/automations and go to its Trigger.
- Choose Custom Field Changed.
- Pick the Field. Only dropdown and checkbox custom fields are offered.
- Pick the value. For a dropdown it is Changes to and one of the dropdown options. For a checkbox it is When it is and Ticked or Unticked.
- Save. The Save button stays disabled until both the field and the value are picked.
The summary then reads like "Will trigger when Status changes to Scheduled on an opportunity". Like other opportunity triggers, you can limit it to a pipeline or stage.
If your workspace has no dropdown or checkbox custom fields yet, the screen links to https://app.trustpager.com/settings/crm so you can add one.
Why only dropdowns and checkboxes
Text, number, date and table fields are not offered. Those change on almost every edit, so an automation watching them would wake up far more often than anyone intends. A dropdown or checkbox changes to a known value, so the automation runs at the moment that matters.
When it fires
- It fires only when the field has just become that value, so it was something else before.
- A value already there when the opportunity is created does not count.
- Saving the opportunity again without changing that field does not fire.
- It works however the field is changed: the opportunity page, the board, the API or AI assistant tools, an import, or another automation.
- If the value moves away and back, it fires again. For example Scheduled, then On Hold, then Scheduled runs the automation twice.
- To protect you from loops, at most 10 field-change runs happen per opportunity per hour.
What you can use in conditions and actions
field_label: the name of the field that changedfield_value: the new valueprevious_field_value: what it was before- The opportunity name, value, currency, status, type, lead source, tags, pipeline, stage and contact
Recipe: send a confirmation when a job is scheduled
Add a dropdown custom field called Status with an option Scheduled. Build an automation with the Custom Field Changed trigger, field Status, Changes to Scheduled. Add a step that emails the contact their booking confirmation. It runs each time a job is set to Scheduled, and not on any other edit.
For the API and AI assistant tools, the field and value go in the trigger config and the source is left empty. The API checks that the field exists, is a dropdown or checkbox, and that the value is a real option (not case sensitive, saved with the exact spelling of the option). An automation of this type cannot be created with no trigger. See the field names at https://docs.trustpager.com/reference#automations.
Invoice Paid Trigger
Invoice Paid runs an automation once, at the moment an invoice becomes fully paid. Use it to move the opportunity to a Paid column, thank the customer, or start an after-the-job sequence.
Set it up
- Open an automation at https://app.trustpager.com/auto/automations and go to Trigger Source.
- Click Add a Trigger. In the grid, choose the Invoices card. It sits next to Store and Stock.
- Choose Invoice Paid. It is the card's only event, and there is no "pick one invoice" choice: it always means any invoice.
- Add your steps and save.
When it runs
- It runs when the invoice is fully paid, however the payment is recorded: the customer pays by card on the invoice's pay page (in full, or with the last instalment), your team marks it paid for a bank transfer or cash, it is recorded through the API, or it is paid in Xero and synced back.
- It usually runs within a minute.
- It runs once for each invoice.
- Invoices imported as already paid do not count.
- If the invoice belongs to an opportunity, the automation runs on that opportunity, so steps like moving the card or emailing the contact work straight away.
What you can use in conditions and actions
Merge fields for your emails, messages and notes:
{{trigger.invoice_number}}: the invoice number{{trigger.total}}: the invoice total{{trigger.amount_paid}}: the amount paid{{trigger.paid_on}}: the date it was paid{{trigger.reference}}: the invoice reference
Conditions you can check: Invoice Total, Invoice Number, Reference, Paid in Instalments and Paid in Xero.
Recipe: thank the customer and move the card
Build an automation with the Invoice Paid trigger. Add a step that moves the opportunity to your Paid column, then a step that emails the contact: "Thanks, we have received your payment of {{trigger.amount_paid}} for invoice {{trigger.invoice_number}}." To treat big jobs differently, add a condition on Invoice Total first.
For the API and AI assistant tools, see the field names at https://docs.trustpager.com/reference#automations.
Call Missed Trigger
The Call Missed trigger fires when an inbound call to a TrustPager number that forwards to a mobile (or rings the app) goes unanswered. Use it to text the caller back straight away, so a missed call becomes a conversation instead of a lost lead.
Set it up
- Open https://app.trustpager.com/auto/automations and create or edit an automation.
- Click Add Trigger, choose the SMS card, then Call Missed. Pick a specific number, or leave it on any number.
- Add a Send SMS action to the contact. The caller's number is used even if they are not in your CRM yet.
Through the API or MCP, use trigger type call_missed with source type phone, and optionally the phone number id as the source. For the exact field names see https://docs.trustpager.com/reference#automations.
What you can use in actions
The caller's number, the number they called, the phone number record, the call reference, the dial result (no answer, busy, failed or cancelled) and what the no-answer setting did with the call. When the caller matches a contact, the contact and opportunity details are available too.
Get the most out of it
- Stop mobile voicemail hiding the miss. A forwarded mobile's own voicemail usually picks up, so TrustPager sees the call as answered. At https://app.trustpager.com/settings/phone, turn on Ask the person answering to press 1 for the number. Also set the no-answer option to Voicemail, so a caller who is screened out can still leave a message.
- Add a condition on the no-answer action. The trigger also fires when the no-answer fallback (an AI agent, voicemail or a second forward) takes the call. Add a condition on the no-answer action so you do not text someone an agent is already talking to.
- Withheld numbers never fire it. If the caller hides their number, there is nobody to text back.
- Not for voice agent numbers. Numbers answered by a voice agent do not use this trigger.
Task Completed Trigger
The Task Completed trigger fires when a person ticks a task off. Use it to react to finished work, for example moving a card to Done once its last task is complete.
To set it up, create an automation at https://app.trustpager.com/auto/automations and choose the Task card ("Ticked off by a person").
When it fires
- It fires when a person marks a task completed from the task list, the task board, an opportunity's task card, or through the API or MCP.
- It arrives about a minute after the tick, not instantly.
- Tasks completed by an automation (the Close Tasks action) do not fire it. That means a "card moved to Done closes its tasks" automation can never loop with a Task Completed automation.
Conditions you can use
- Open Tasks Remaining on Opportunity (a number). Equals 0 means the last open task on the card was just ticked.
- Board (Pipeline ID)
- Column (Stage ID)
- Task Category
- Task Title
- Task Priority
Variables available in actions
Task: {{task_id}}, {{task_title}}, {{task_description}}, {{task_body}}, {{task_category}}, {{task_priority}}, {{task_due_date}}, {{assigned_to}}, {{completed_by}}, {{completed_at}}, {{open_tasks_remaining}}.
Opportunity and contact: {{deal_id}}, {{deal_name}}, {{pipeline_id}}, {{stage_id}}, {{pipeline_ids}}, {{contact_id}}, {{customer_id}}.
Recipe: move a card to Done when its task is ticked
Say you run a To Do board where each card carries one task. Create an automation with:
- Trigger: Task Completed
- Condition: Open Tasks Remaining on Opportunity equals 0
- Condition: Board equals your To Do board
- Action: Move Opportunity to your Done column
Watch the run count
Once a workspace has an enabled Task Completed automation, every task a person completes counts as one automation run, including tasks on other boards. Always add the Board condition so the automation only acts on the board you mean.
Open Tracking
TrustPager can tell you the moment a recipient opens something you sent them: a document, a form, or a work order portal. Three triggers cover these events:
- Signature Opened - fires when a recipient first views a document sent for signing
- Form Opened - fires when a recipient first opens a form you sent them
- Work Order Portal Opened - fires when a recipient first unlocks a work order portal
Each trigger fires once per recipient: opening the same item again does not re-fire the automation.
Building an open-tracking automation
Open https://app.trustpager.com/auto/automations, create or edit an automation, and select the relevant trigger card: Signatures for document opens, Forms for form opens, or Work Order Portal for portal opens. Choose the Opened event within that card, then attach any action you like.
Common patterns:
- Create a call task - assign yourself a task to call the recipient while the document or form is still open in their browser
- Send an internal notification - ping a team member via email or Slack the moment someone opens
- Suppress a follow-up reminder - use a branch condition so a Day-3 nudge only fires if the recipient has not yet opened
Variables available in actions
When an open-tracking trigger fires, the following variables are available in any action:
{{recipient_name}}- the name of the person who opened{{document_title}}or{{template_name}}- the name of the document or form that was opened{{opened_at}}- the date and time the recipient first opened
Activity timeline
Every open is also recorded as an activity on the linked opportunity's timeline: you can see who opened what and when, even if you have not set up an automation for it.
Booking Event Triggers
The Scheduler trigger card (labelled "Booking events" in the trigger grid at https://app.trustpager.com/auto/automations) fires automations off activity on your TrustPager scheduling page. It covers three events:
- Booking Created - a new booking has been made, whether through your public booking link, the staff Add Booking button, or your AI dialler
- Booking Rescheduled - an existing booking has been moved to a new time
- Booking Cancelled - a booking has been cancelled
Scoping by event type
After selecting the Scheduler card and choosing an event, you can scope the trigger to fire for Any event type (the default) or restrict it to a single specific event type. This is useful when you run multiple event types and want different automations for each one.
Fields available in actions
When a booking trigger fires, your actions have access to the booking details via the variable picker inside the action editor. The fields available depend on the event:
All three events: Name, Email, Phone, Event Type, Duration
Booking Created: Start Time, End Time, Meeting Link (for video bookings)
Booking Rescheduled: Old Start Time, New Start Time
Booking Cancelled: Cancellation Reason
Key use cases
- Stop the drip the moment they book. If a contact is in a nurture sequence with scheduled "book a call" emails, a Booking Created trigger can remove them from that Auto Sequence immediately so they do not keep getting chase emails after they have already booked.
- Notify staff of new bookings. Send an internal email or Slack message to the assigned rep the instant a booking comes in, with the client name, contact details, and meeting time populated via the variable picker.
- Move the opportunity and update the stage. On Booking Created, move the linked opportunity to a "Meeting Booked" stage and update a custom field with the meeting date.
- Follow up on reschedules. On Booking Rescheduled, send the client a confirmation with the new start time and alert the rep.
- Re-engage after a cancellation. On Booking Cancelled, trigger a re-engagement sequence: a task to call the contact, or an email offering alternative times.
Scheduler vs Cal.com: The Scheduler card handles bookings made through TrustPager built-in scheduling. If your workspace is connected to a Cal.com account, you will also see a separate Cal.com trigger card that handles bookings coming from Cal.com only. If you are using TrustPager native scheduling, use the Scheduler card.
Lead Magnet Answered Trigger
Starts when a reader answers on a Lead Magnet page: picking an option in a Pick one block (event "picked", including a pick made by tapping a picture card in an email blast), or pressing a Next step button (event "continued"). Ticks in a Tick all that apply block are saved but do not start it. Picking the same option again does not start it. Pick a Lead Magnet on the trigger to follow just that one.
In your actions you can use the reader's first name and email, the Lead Magnet's name, the event, answer (the name of what they picked), button (the Next step button they pressed) and answers_text (every answer so far, one per line, including ticks). Good uses: tell the team which design someone picked, text them about it, or move their opportunity on. Details of building the page are in https://trustpager.com/help-center/lead-magnets-private-pages.
Adding Multiple Triggers
A single automation can listen for more than one trigger at the same time. When any one of them matches, the automation fires: this is an OR relationship, not AND. You do not need separate automations for each entry point.
To add a trigger, open your automation in the builder at https://app.trustpager.com/auto/automations and click Add Trigger below the existing trigger card. You can mix trigger types freely: for example, a form submission trigger and an inbound webhook trigger can coexist on the same automation. When either fires, the full action sequence runs.
There is no enforced limit on how many triggers an automation can have, and no restrictions on which source types can be combined.
One exception: Stage Change - stage-change automations are tied to a single pipeline stage and are managed from the pipeline page, not the automation builder. They do not appear in the multi-trigger interface. All other trigger types support multiple triggers.
When Two Automations Listen to the Same Thing
Nothing stops several automations listening to the same trigger, and often that is what you want: one creates the opportunity, another tags it, a third alerts someone. But if two of them write to the same thing, the order matters, and you need to say what it is.
Open the automation at https://app.trustpager.com/auto/automations, click Settings on the Trigger Source card, and set Run order. The lowest number runs first. Everything sits on 0 by default, which is fine until two of them disagree.
The usual case: an intake automation creates the opportunity and puts it on a starting stage, and a second automation moves it somewhere else based on what the lead said. Put the intake on a lower number than the one that moves it, so the move happens second and its result is what sticks. Get that backwards and the card lands on the starting stage, which is the one you were trying to move it off.
Two automations on the same number fall back to oldest-first. That is stable, so it will not change between one run and the next, but it is not a choice you made. If the order matters, set the numbers.
Not the same as the order of actions inside one automation. Within a single automation, actions run top to bottom in the builder and you reorder them by dragging. Run order is only about which whole automation goes first when several of them answer the same trigger.
You can see what happened on any run: the run history lists each automation in the order it actually ran, with its run order beside it.
Checking Text in a Condition
Conditions decide whether an automation runs. On a text field, such as a lead's message, an opportunity type or a phone number, you can check:
- Contains text: the field mentions this word or phrase anywhere.
- Does not contain text: the field never mentions it. An empty field counts as not containing it, so leads with no message still go through.
- Starts with and Does not start with: useful for phone country codes such as +61.
Text checks ignore capital letters, so "perplexity" also matches "Perplexity".
The same checks work on a single step. On any action card, set Only runs if to skip just that step while the rest of the automation still runs.
Recipe: stop spam enquiries getting a reply
- Open your website lead automation at https://app.trustpager.com/auto/automations.
- Under Conditions, click Edit and add the field that holds the lead's message, Does not contain text, and a phrase the spam always uses.
- Save. Genuine leads carry on as normal, and messages with that phrase no longer create a task or get the auto-reply.
Running a Step Only for Certain Products
Any automation that runs with an opportunity knows which products are on it. A step's "run only if" condition can use the opportunity's product names, product ids or full product list. For example, run a step only if the product names contain any of "Zero Bookkeeping".
- Name matching is exact but ignores capital letters.
- Product ids never break if you rename a product, so use them for conditions you want to last.
The fields are deal.product_names (a list of names), deal.product_ids (a list of product ids) and deal.products (each line with its name, sku, quantity and unit price). For example, the condition { "deal.product_names": { "contains_any": ["Zero Bookkeeping"] } } runs the step only when that product is on the opportunity.
Set conditions in the automation builder at https://app.trustpager.com/auto/automations.
Available Actions
Each trigger can fire multiple actions in sequence:
- Send an email or SMS
- Create a task and assign it to a team member
- Update a field on the contact, account, or opportunity
- Send a Slack message to a channel
- Call an external webhook
- Create or update a document
- Move the opportunity to another stage
- Start a conversation flow - open a conversation with a guided chat flow. A form fill, missed call or stage change can start one. Choose "Send it by": Automatic (the first way the person can be reached in the flow's channel order) or a chosen channel. See https://trustpager.com/help-center/conversation-flows.
- Attribute Referral - link a new opportunity to an existing referrer contact, with automatic contact creation if the referrer is not yet in your CRM. See https://trustpager.com/help-center/attribute-referral-via-automation for the full walkthrough.
- Send App Link - send the contact a one-tap link to an app page by email, SMS or both, with no login needed. Workspace admins only. See https://trustpager.com/help-center/send-app-links-no-login.
- Custom Script - write your own JavaScript, or describe what you want in plain English and have AI write it, to run as the final step of the automation. Always runs last, and the code needs a one-time approval before it can execute live. See https://trustpager.com/help-center/custom-script-automation-action for the full walkthrough.
Stopping an Automation When a Step Fails
By default, if one action in an automation fails, the automation keeps going and runs the remaining steps anyway. Usually that is what you want. But sometimes a later step should only run if an earlier one succeeded. For example, you only want to enrol someone in a follow-up sequence if the step that generates their quote actually worked.
Every action has a Stop the automation if this step fails toggle on its card in the builder. It is off by default. When you switch it on, a failure on that step halts the automation and none of the steps after it run.
Order matters. Actions run from the top of the builder downwards, so the step you want to guard on must sit above the steps you want it to stop. To prevent a "send follow-up" step from running when a "get quote" step fails, put the "get quote" step first and turn its toggle on. If you turn the toggle on for the very last step there is nothing after it to stop, and the builder will tell you so.
When a run is halted this way, the run shows as Failed (if no earlier step had completed) or Partial (if some earlier steps completed), and the steps that did not run are marked as skipped in the run detail.
Run History
Every time an automation fires, TrustPager logs a complete audit trail: what triggered it, what data was used, which actions ran, and whether each step succeeded or failed. This makes debugging straightforward: you can see exactly what happened and why.
Tip: Start with simple automations (one trigger, one action) and add complexity once you see them working. The most impactful first automation for most businesses is a follow-up sequence that fires when an opportunity moves to a new stage.
Run a calculator step
Use the Run a calculator step to work out figures for an opportunity. Pick a live calculator, let each input start from the opportunity's last run or its fields (or set a fixed value), and choose whether to save the run. Later steps can use calculator.<key> (the number) and calculator.<key>_display (written out, for example "$4,316.76"), including in an Only run if condition such as calculator.lvr more than 80. The library has its own article: https://trustpager.com/help-center/calculators.