feat: Ongoing campaign complex rules #8464
Replies: 5 comments
-
MVP: We can add multiple checks while launching the campaign, right now we just check the time attributes and the URL. |
Beta Was this translation helpful? Give feedback.
-
Here, could you also consider allowing for a RegEx @muhsin-k for the Page URL. That would be a simple way to give advanced users MANY more options. |
Beta Was this translation helpful? Give feedback.
-
@brundles We have added the support wild card URL. It is available in the latest release (v2.12.o). More details can be found here . |
Beta Was this translation helpful? Give feedback.
-
Great - thank you @muhsin-k - I will check this out right away! |
Beta Was this translation helpful? Give feedback.
-
Moving this to feature requests as we will not be prioritizing the detailed filters immediately. |
Beta Was this translation helpful? Give feedback.
-
@muhsin-k commented on Sat Aug 14 2021
What is an ongoing campaign ?
The ability for customer send outbound messages to their contacts which would trigger more conversations.
It is essentially a welcome message configured to pop up based on various conditions. Now are primarily focusing on triggering messages on simple page rules ( visitor visits page x / visitor spends x time of page x ). Now it supports on website live chat only
https://www.notion.so/chatwoot/Proactive-Messaging-v1-a90f591623c04b9ab9e968060b28a41c
Problem Statement
Currently, the campaigns are working based on absolute URLs and the time they are spending on the website. But most real-world use cases consist of dynamic URLs.
For an example of an E-commerce website, the product ID for each product gives a different URL for the same page:
https://ecart/products/23931/details https://ecart/products/*/details
At the moment it is not possible to run a campaign in a particular product since the ongoing campaign support 2 rules only
Related issues we are going to solve,
Feature: Trigger Outgoing Messages based on events · Issue #657 · chatwoot/chatwoot
Provide wildcard URL's for campaigns · Issue #3129 · chatwoot/chatwoot
feat: Allow wildcard URL's for campaigns · Issue #2739 · chatwoot/chatwoot
Solution
The conditions which we are going to support,
Things to do
Technical changes
trigger_rules
object in the campaign model.Trigger rules
attribute_key —> page_url/time_on_page/no. of visits
type —> string/ number
filter_operator —> equal_to, not_equal_to, contains, does_not_contain, less_than, greater_than
value —> facebook
join_type → AND, OR
Ex:
page_url contains pricing AND time_on_page equals 10 seconds OR number_of_visits equals 20
Rules structure
Supported filter operators
Validations
Additional questions
Beta Was this translation helpful? Give feedback.
All reactions