TrustPager Docs

← Help Center

Agency

Agency-only automations

Quote Sent, Quote Viewed and Quote Paid automation triggers for agencies, how quotes link to an opportunity in your CRM, and the pay-link variables for emails.

If your business is a TrustPager agency, you can run automations off the quotes you send your own clients: add the opportunity to an Auto Sequence when a quote goes out, then move the card and stop the chasing when it is paid. This article covers the three agency-only triggers, how a quote is tied to an opportunity in your own CRM, and the email variables that put the right pay link in every message.

Who can use these triggers

Quote Sent, Quote Viewed and Quote Paid appear in the automation builder only in an agency's own workspace, and only for its owners and admins. Other workspaces never see them. This is enforced when you save as well as in the builder, so it can't be got around through the API.

Build them at https://app.trustpager.com/auto/automations, in your agency's own workspace.

When each trigger fires

They fire only into your agency's own workspace, about your own clients. Nothing runs inside the client's workspace.

What the trigger carries

Each event carries the quote, the client's name and workspace, and the customer's name and email. It also carries the matching opportunity in your CRM, with its contact and account. That means actions such as Remove from Auto Sequence, Move card, Add tasks and emails to the contact all act on the right opportunity. For exact field names see https://docs.trustpager.com/reference#automations.

How a quote is linked to an opportunity

When a quote is made, TrustPager matches it to the newest open opportunity in your CRM whose contact has the quote's email. If the quote has no email, the client workspace owner's email is used.

The Make quote form shows an Opportunity in your CRM dropdown. It shows the match, with the note "Found by their email. Your Quote Sent and Quote Paid automations run on this opportunity." You can pick another matching opportunity, or choose Not linked to an opportunity. Each quote in the Their quotes list then shows "for <opportunity name>".

Two example automations

If a quote has no opportunity

A quote that isn't linked to an opportunity produces an event with no opportunity and no contact. Actions that need a contact, like adding to an Auto Sequence or emailing the contact, then have nothing to act on and fail. Give these automations the condition deal_id exists so they skip quietly instead.

Pay-link variables for emails

Use these in any email or automation step. They are worked out at the moment each step runs, including Auto Sequence steps sent days after the contact was enrolled. They are never copied from when the contact joined, so a cancelled or reissued quote always shows the current link.

Invoice

Quote

Where the values come from

TrustPager first uses the newest open quote linked to the run's opportunity. If there isn't one, then in any workspace (not just agencies) it uses the opportunity's newest unpaid TrustPager or Xero invoice, and the pay link is that invoice's online link. The variables are available whenever a run has an opportunity or a quote.

Amounts are ex GST, because Stripe adds GST at checkout. Dates show as calendar dates.

Never send a Pay button with no link

When nothing is unpaid, these variables are empty. On the email step, set Only run if to invoice.pay_url exists. The step is then skipped when there is nothing to pay. We tested this: an Auto Sequence step whose quote had been cancelled was skipped and no email went out.

Related

Quoting a client: https://trustpager.com/help-center/agency-guide. Auto Sequences: https://trustpager.com/help-center/how-to-set-up-auto-queues.

← Back to Help Center Open on trustpager.com ↗