feat: Ongoing campaign complex rules #8464
muhsin-k
started this conversation in
Feature Requests
Replies: 6 comments
|
MVP: We can add multiple checks while launching the campaign, right now we just check the time attributes and the URL. |
0 replies
|
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. |
0 replies
|
Great - thank you @muhsin-k - I will check this out right away! |
0 replies
|
Moving this to feature requests as we will not be prioritizing the detailed filters immediately. |
0 replies
|
Would specifically love to see this feature too so we can send messages via the campaign to only new visitors. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@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/*/detailsAt 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_rulesobject 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
All reactions