Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: SDK API to trigger campaign #3997

Open
Tracked by #5845 ...
ChrisvanChip opened this issue Feb 16, 2022 · 5 comments
Open
Tracked by #5845 ...

feat: SDK API to trigger campaign #3997

ChrisvanChip opened this issue Feb 16, 2022 · 5 comments
Labels
feature-request This label is used to track new features which is a significant change to existing product need-discussion These issues don't have a clear direction, and it requires deeper discussion to finalize

Comments

@ChrisvanChip
Copy link

ChrisvanChip commented Feb 16, 2022

Is your feature request related to a problem? Please describe.
I'm interested in using the ongoing campaign feature to engage users during their onboarding journey. Unfortunately, the only possibility is to trigger by page visit, which isn't really versatile and not useful on Single-Page Applications.

Describe the solution you'd like
I would like to trigger a campaign using JavaScript. A proposed function would be:
window.$chatwoot.triggerCampaign('trial_started')

Describe alternatives you've considered
A hacky workaround would involve creating an element in the widget to simulate a message from the bot. It's not possible to update the messages without editing the code and it isn't update-friendly either.

@sojan-official
Copy link
Member

ref: #3992

@pranavrajs pranavrajs added feature-request This label is used to track new features which is a significant change to existing product need-discussion These issues don't have a clear direction, and it requires deeper discussion to finalize labels Feb 17, 2022
@sojan-official sojan-official mentioned this issue Apr 4, 2022
21 tasks
@brundles
Copy link

I agree - this is very much needed

@muhsin-k muhsin-k mentioned this issue Nov 11, 2022
21 tasks
@brundles
Copy link

@muhsin-k - This would be a good starting point until the rest of tasks in #5845 are done.

Ie for @ChrisvanChip and others (myself included) we could temporarily fix many issues via the SDK if this was available until more complex rules are done.

@brundles
Copy link

brundles commented Feb 7, 2023

@muhsin-k - any news on this? :)

@brundles
Copy link

Hi @sojan-official - is there any news on this?

I imagine that doing something like window.$chatwoot.triggerCampaign('trial_started') would not be very complicated. And it would give us a minimum way of handling these things.

I would love to help if I can do anything to speed up this part of the process?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This label is used to track new features which is a significant change to existing product need-discussion These issues don't have a clear direction, and it requires deeper discussion to finalize
Projects
Status: No status
Development

No branches or pull requests

4 participants