N
Novu•5mo 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
acronie•5mo 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•5mo ago
Hi @acronie Workflow is the sequence in which notification will be sent.
acronie
acronie•5mo 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
acronie•5mo ago
No description
Pawan Jain
Pawan Jain•5mo ago
Are you using correct api key?
acronie
acronie•5mo ago
yes identify works even on the website it throws workflow not found
Pawan Jain
Pawan Jain•5mo ago
could you please share the environmentId from settings?
acronie
acronie•5mo ago
I just deleted the workflow and deleted, works now for some reason
Novu_Bot
Novu_Bot•5mo ago
@acronie, you just advanced to level 1!
Pawan Jain
Pawan Jain•5mo ago
Looks like a cache issue
acronie
acronie•5mo ago
Can be Another issue where on the client it keeps on loading and doesn't show notis
acronie
acronie•5mo ago
No description
acronie
acronie•5mo ago
shows in the activity feed.
No description
Pawan Jain
Pawan Jain•5mo ago
Is in-app integration in integrations store added and active?
acronie
acronie•5mo ago
seems to be
No description
acronie
acronie•5mo ago
it shows this but it's meant to be in-app only
No description
acronie
acronie•5mo ago
it shows this tho
No description
Pawan Jain
Pawan Jain•5mo ago
Do you see ay error in developer console? Is application integration correct?
acronie
acronie•5mo ago
nah
acronie
acronie•5mo ago
acronie
acronie•5mo 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•5mo ago
Would you like to share the usecase when you want to send notifications?
acronie
acronie•5mo ago
like I have different user types ADMIN, FREE, PAID so like group them workflows together
Novu_Bot
Novu_Bot•5mo ago
@acronie, you just advanced to level 2!
Pawan Jain
Pawan Jain•5mo 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
acronie•5mo ago
mhm not grouping user since everyone is gonna have indiviual notis but grouping workflows if it makes sense?
Pawan Jain
Pawan Jain•5mo ago
Everyone will receive individual notifications
acronie
acronie•5mo ago
mhm got it
Pawan Jain
Pawan Jain•5mo ago
Ohh! Grouping workflows is currently not suported
acronie
acronie•5mo ago
ic
acronie
acronie•5mo ago
what is this tho?
No description
acronie
acronie•5mo ago
is it supposed to be the redirect uri on click? is it relative to host name or what
Pawan Jain
Pawan Jain•5mo 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
acronie•5mo ago
checking it out Thanks
Pawan Jain
Pawan Jain•5mo ago
Did it work for you?
acronie
acronie•5mo ago
Haven't put it into implementation yet But should work from the looks of it 😄
Pawan Jain
Pawan Jain•5mo ago
Sure. let me know if you face any issue