Before Message Created
Origin: Messages
This workflow automation trigger fires before a message is created and sent.
Create This Trigger
- Click the app selector
and select ACD. -
Go to Digital > Automation Triggers.
-
Click Add trigger.
- Enter a Name for the trigger. Since you can assign multiple jobs to the same trigger, use a name based on the event or conditions rather than an associated job.
-
From the Event drop-down, select Before message created.
- In the Delayed execution field, enter the number of seconds that Digital Experience (DX) should wait after the selected event occurs before firing the trigger. If you want it to happen immediately, enter 0.
- If you have folders that organize your triggers, you can select which folder to put this trigger in from the Folder drop-down.
- Click Save.
- From the detail page, click Activate when your trigger is completely configured.
Add a Condition
If you entered a value in the Delayed execution field when you created a trigger, make sure your condition configurations do not exceed that time. For example, if you set the Delayed execution time to 86400 seconds, or 24 hours, you cannot add a Contact status update time condition with a time period greater than 1 day.
If you entered a value in the Delayed execution field when you created a trigger, configure conditions under both the Conditions and Delayed conditions sections or just the regular Conditions section. If you only configure Delayed conditions, the system may duplicate events.
- From the detail page, click Add Condition.
- Use the drop-down to select the condition you want. Refer to the table below for a list of conditions available for what you just created.
- Click Select.
- Some conditions require additional configuration. Refer to the table below for instructions.
Available Conditions
| Condition Type | Details and Instructions |
|---|---|
| Content contains |
Executes jobs based on the content of the message. Use the following criteria to define a pattern that the message must match to trigger the job:
|
| Chat Is Active |
Execute jobs if the chat window displays an online status.
|
| Date and time |
Executes jobs during or outside of specified time frames.
Jobs can process up to 500 contacts at a time. If you need to process more, have the job run more than once per day at different times. |
| Excluded message subjects rule |
Executes a job based on subject. In this case, any subject that does not include what you specify triggers the job.
|
| Excluded message tags condition |
Executes a job based on tags attached to the message. In this case, any message that does not have the tags you specify triggers the job.
|
| Included channels condition |
Checks whether the chat window that is on the website belongs to specific channel. This trigger works for both contact center triggers and proactive triggers.
|
| Included message sentiments rule |
Executes a job based on sentiment. In this case, any message that is marked with the sentiments you specify triggers the job.
|
| Included message subjects rule |
Executes a job based on subject. In this case, any subject that includes the specified values triggers the job.
|
| Included message tags condition |
Executes a job based on tags attached to the message. In this case, any message that has the tags you specify triggers the job.
|
| Message created time |
Executes jobs based on when the message was created.
|
| Message direction |
Execute jobs according to whether the message is inbound or outbound.
|
| Probability of Execution |
Executes jobs based on a probability percentage. This condition works for contact center triggers, proactive triggers, and schedulers.
|
Add a Job to This Trigger
-
From the detail page, click either Add new job or Add existing job, depending on if the job you want already exists.
-
If you clicked Add new job, follow the steps to create the job you want. These steps can be found on the individual help page for each job, listed in the following drop-down:
Learn more about creating jobs
- Add Tag to Case
- Add Tag to Message
- Assign Contact to Inbox
- Call an URL
- Call Studio Script URL
- Change Case Custom Field
- Change Case Max Priority in Queue
- Change Case Priority in the Queue
- Change Case Status
- Delete Author's Name of a Message
- Delete Content of a Message
- Delete End User's Name in all Identities
- Inactivity Popup
- Mark Contact as Abandoned
- Mask Credit Card Number in Message Content
- Mask Data in Message Content By Regular Expression
- Moves First Case in Queue to Other Queue
- Remove Personally Identifiable Information from a Contact
- Reroute Case to a Different Queue
- Reset Routing
- Send Message
- Send Notification Email
- Send Satisfaction Survey
- Set Contact Proficiency
- Set Contact Routing Queue Same as Previous Contact in Thread
- Unassign Case from Inbox
- If you clicked Add existing job:
- Use the drop-down to select the job you want.
- Click Add.