Skip to main content

Triggers

With Salesmsg Custom Triggers, if your CRM has the ability to fire a webhook then you can easily send texts with Salesmsg.

Written by Joshua Smith

What Are Triggers in Salesmsg?

Triggers are powerful automation tools that allow users to send SMS messages, RCS messages or ringless voicemails based on specific events or actions. By using triggers, you can streamline communication with your contacts without needing to manually send messages, making your outreach timely and efficient.


How Triggers Work

A trigger is essentially a set of predefined conditions that, when met, prompt Salesmsg to send a message or perform an action. Triggers can be used in various scenarios, such as:

  • Sending appointment reminders.

  • Notifying customers about updates or offers.

  • Following up after specific actions, like form submissions or purchases.

Triggers allow you to send a multitude of messages to all of you users across Salesmsg, and across all our integrations as well such as in HubSpot, ActiveCampaign, SalesForce, Keap, and custom integrations as well.

As well triggers allow you to send a message to particular users or to groups in a SMS message or in a ringless voicemail.


Triggers Page

On the Triggers page you can go through all of your previously used triggers whether they are active or disabled and quickly switch between the All, SMS, Ringless and RCS tabs. The RCS tab appears when your organization has an RCS inbox.

On the Triggers page you can make quick decisions about your Triggers such as seeing who they were delivered to, replies, revenue and so much more.

As well you can disable the trigger, make updates, and check how your trigger is performing with users.


Types of Triggers

  1. Custom Triggers: These allow users to connect Salesmsg to any system that can send webhooks. They're ideal for CRMs or tools that don't natively integrate with Salesmsg, like Ontraport.

  2. Integration-Based Triggers: These triggers are tied to native integrations with platforms like HubSpot, ActiveCampaign, or Salesforce, enabling seamless automation across systems.

  3. Action-Specific Triggers: Triggers can be designed to respond to specific actions, such as clicks, replies, or conversion tracking.


Custom Triggers

You'll only use Custom Triggers when you have your own application and want to fire texts from a WebHook or integrate Salesmsg into your CRM that doesn't natively integrate with Salesmsg, like Ontraport.


How to Create Your Custom SMS Trigger

Step 1: Navigate to Triggers Page

When you access the Triggers Page, you will see a full list of all active and inactive triggers.

  • Triggers are ordered by creation date.

  • The All Triggers tab is preselected.

  • You can preview key details for each trigger:

    • Trigger Icon (Integration) + Trigger Title: Hover over the integration icon to view its name in a tooltip.

    • Trigger Type: SMS, Ringless or RCS.

    • Trigger Status: Active or Disabled.

    • Metrics: Total, Delivered, Replies, Clicks, Conversions, Revenue, Undelivered.

      • For Ringless Triggers, Clicks, Conversions, and Revenue columns are omitted.

      • The Revenue column includes a tooltip:

  • If the integration is disconnected, a warning icon appears with a tooltip to reconnect. Clicking the tooltip redirects to the Integration Page.

  • Mass Delete

    • When on the Triggers Page, select triggers with the checkbox on each row, then click Delete in the selection bar to delete them in bulk. You can also delete all triggers at once.

    • Now you can bulk delete triggers as well, making keeping your interface clean with only relevant projects.

Step 2: Create a Trigger

From the Triggers Page, click New trigger, and the setup page will appear.

Setup Page Fields

Name
This is the internal name for your Trigger.

Text Message

The body of your message. This can include merge fields, attachments, and more.

Ringless voicemail

Audio file to be sent to contact's voicemail inbox. Upload or record your own voice.

RCS (Beta)

An RCS message. This option appears when your organization has an RCS inbox, and RCS triggers always send from that inbox.

Integration
This is the list of integrated platforms with Salesmsg. For this example, you can select Custom.

Send from

This is the phone number that the text message will be sent as.

Tags

Add an existing tag in this field. When the contact is sent the Trigger message, the tag will automatically be applied to the contact.

Track Conversion

Allows you to specify which conversion to track with your trigger.

Step 3: Create Your SMS

With Salesmsg, you can insert custom merge fields by wrapping them in a bracket, like {date}. Merge fields dynamically pull data and can also include fallback options if data isn't available.

For example:

Hi {first_name}, your appointment is on {date} at {time}.

You can also add media files to make your message more creative. Click + in the message box and you'll see a media library where you can choose, upload or even register your media files.

To create a fallback, use the following syntax:

{ data | 'replace' }

For example, if the first name wasn't available and you wanted ing else, it would look like this:

Hi { first_name | 'there' }, how are you?

So if the first name was Mike, it would show as "Hi Mike, how are you?", but if there wasn't a first name, then it would show as "Hi there, how are you?"
​

Step 4: Copy Your Trigger URL

Once you've created your Custom Trigger, copy the Trigger URL, which will look like this:

https://app.salesmessage.com/webhook/salesmessage/9d1d7b928c189ce5fa98950644ea3462?phone=&first=&last=&email=&from_id=&tag_ids[]=

You can populate this URL with relevant merge fields, such as:

https://app.salesmessage.com/webhook/salesmessage/9b5d7b928c189ce5fa98950644ea3462?phone=(561) 778-7787&first=Mike&last=Jones&[email protected]&from_id=&tag_ids[]=&date=December5&time=12:00PM

This URL can be used as a GET request or a POST request (recommended for character limits).

Using Custom Trigger as POST request

When encountering the character limit of a GET request, which is capped at 2,048 characters, you can opt for a POST request to send the same trigger using any software. Below is a reformatted example demonstrating how to structure a trigger in the POST request format:

Post: https://app.salesmessage.com/webhook/salesmessage/9b5d7b928c189ce5fa98950644ea3462 
{
"phone": (561) 778-7787,
"first": "Mike",
"last": "Jones",
"email": "[email protected]",
"from_id":,
"tag_ids": [],
"date": "December 5",
"time": "12:00 PM"
}

Key Points for Ensuring Accurate Message Dispatch from the Correct Inbox:

  • Default Parameters: In the absence of specified optional parameters, Salesmsg will default to the settings configured within the trigger itself.

  • String Formatting: Ensure all string values, including dates and times, are enclosed in quotes. For example, "date": "December 5" and "time": "12:00 PM".

  • Inbox ID (from_id): Utilize the Inbox ID found within the URL of the specific inbox settings for the "from_id" field.

  • Tag IDs: For "tag_ids", input the ID of the desired tag found in the tag's specific URL. To include multiple tags, separate their IDs with commas.

📌 Update: message and media_url are no longer supported as request parameters. Custom Triggers now always send the message text and attachments saved on the trigger's setup page. Including message or media_url in your webhook request will simply be ignored - it will no longer override the trigger's content. If you need to send different text or media, create a separate trigger with its own saved message/attachments.

Step 5 (optional but recommended): Test Your Trigger

Click Test on the trigger's setup page. A bar opens under the form: enter a phone number in Enter number and click Send test to send a test message without calling the URL or using any API test software.


Who Would Use Custom Triggers?

Custom Triggers are for users with CRMs or marketing automation tools that support outbound webhooks. For example, Ontraport users can use Custom Triggers to send SMS texts.

Using HubSpot? Use the native Salesmsg actions in HubSpot workflows instead of a webhook. See Automate Texts and Voice Messages from HubSpot Workflows.


Frequently Asked Questions

My merge field or fall back is not working?

Double-check the property your pointing to "&email={email} " does in fact have a value.

Everything seemed to work, only the message was never sent?

This is a strong indication that the phone property is not working. Be sure to use a valid US/CA number & that there is a number in the property your targeting.

Can I override the message text or media when calling a Custom Trigger?
No. message and media_url have been removed as override parameters. Every Custom Trigger now sends the message and attachments configured directly in the trigger. Set those in the trigger's setup page rather than in the request.

How do I check that my trigger's texts are going out?

First check your other tool's webhook history to see that the request was sent. Then search for the contact in Salesmsg and open the conversation: the text appears there when the trigger ran.

Can a trigger send from the contact's owner?

Yes, when the trigger is connected to HubSpot or Keap. In Send from, choose a HubSpot owner property, or Lead owner for Keap.

I forgot which trigger a URL belongs to. How do I find it?

Paste the URL into the search bar on the Triggers page.

Can I use a Trigger to send an automatic reply the first time someone texts my number?

No, use a Workflow instead. Triggers only fire from an external event, such as a CRM webhook, and need the contact's phone number sent in that request, so they can't fire on a brand-new inbound text by themselves. See Salesmsg Workflows 2.0 for how to set up a Workflow that enrolls on any inbound message instead.


Related Articles


Need Help? ✋🏻

Contact us on live chat or send an email to us at [email protected].

Did this answer your question?