N
Novu•11mo ago
acronie

Help regarding workflows

hey, so I was going through workkflows and don't really get the idea behind it? Is it supposed to be indiviual workflows for each?
38 Replies
acronie
acronieOP•11mo ago
for example I can see one usecase where rn in my app I have two different type of users (paid, non paid) so should I create workflows differently for those?
Pawan Jain
Pawan Jain•11mo ago
Hi @acronie Workflow is the sequence in which notification will be sent.
acronie
acronieOP•11mo ago
hmmmm ic that'll be useful for quickstart and stuff but not otherwise right
novu
.trigger("employer", {
to: {
subscriberid: user.id,
},
payload: {},
})
.catch((e) => console.log("error", e));
novu
.trigger("employer", {
to: {
subscriberid: user.id,
},
payload: {},
})
.catch((e) => console.log("error", e));
also this keeps on returning workflow not found
acronie
acronieOP•11mo ago
No description
Pawan Jain
Pawan Jain•11mo ago
Are you using correct api key?
acronie
acronieOP•11mo ago
yes identify works even on the website it throws workflow not found
Pawan Jain
Pawan Jain•11mo ago
could you please share the environmentId from settings?
acronie
acronieOP•11mo ago
I just deleted the workflow and deleted, works now for some reason
Novu_Bot
Novu_Bot•11mo ago
@acronie, you just advanced to level 1!
Pawan Jain
Pawan Jain•11mo ago
Looks like a cache issue
acronie
acronieOP•11mo ago
Can be Another issue where on the client it keeps on loading and doesn't show notis
acronie
acronieOP•11mo ago
No description
acronie
acronieOP•11mo ago
shows in the activity feed.
No description
Pawan Jain
Pawan Jain•11mo ago
Is in-app integration in integrations store added and active?
acronie
acronieOP•11mo ago
seems to be
No description
acronie
acronieOP•11mo ago
it shows this but it's meant to be in-app only
No description
acronie
acronieOP•11mo ago
it shows this tho
No description
Pawan Jain
Pawan Jain•11mo ago
Do you see ay error in developer console? Is application integration correct?
acronie
acronieOP•11mo ago
nah
acronie
acronieOP•11mo ago
acronie
acronieOP•11mo ago
Can I not somehow abstract my notifications into one group for example if I want notis just for a particular user type abstract them under user_type_* or do i need to manually create workflows for every action like this
Pawan Jain
Pawan Jain•11mo ago
Would you like to share the usecase when you want to send notifications?
acronie
acronieOP•11mo ago
like I have different user types ADMIN, FREE, PAID so like group them workflows together
Novu_Bot
Novu_Bot•11mo ago
@acronie, you just advanced to level 2!
Pawan Jain
Pawan Jain•11mo ago
Users can be grouped in topics https://docs.novu.co/subscribers/topics and then workflow can be triggered to that group of users (topic) https://docs.novu.co/subscribers/topics#trigger-workflow-to-a-topic
acronie
acronieOP•11mo ago
mhm not grouping user since everyone is gonna have indiviual notis but grouping workflows if it makes sense?
Pawan Jain
Pawan Jain•11mo ago
Everyone will receive individual notifications
acronie
acronieOP•11mo ago
mhm got it
Pawan Jain
Pawan Jain•11mo ago
Ohh! Grouping workflows is currently not suported
acronie
acronieOP•11mo ago
ic
acronie
acronieOP•11mo ago
what is this tho?
No description
acronie
acronieOP•11mo ago
is it supposed to be the redirect uri on click? is it relative to host name or what
Pawan Jain
Pawan Jain•11mo ago
@acronie you can use any path url here and then need to configure notification clicked event in code Checkout this doc:- https://docs.novu.co/notification-center/client/react/get-started#onnotificationclick @acronie did you get chance to check above docs?
acronie
acronieOP•11mo ago
checking it out Thanks
Pawan Jain
Pawan Jain•11mo ago
Did it work for you?
acronie
acronieOP•11mo ago
Haven't put it into implementation yet But should work from the looks of it 😄
Pawan Jain
Pawan Jain•11mo ago
Sure. let me know if you face any issue
Want results from more Discord servers?
Add your server