N
Novu•4mo ago
Chirag parmar

In-app notification

In some workflow send and some workflow only display step created like the mentioned screenshot, so what is the issue how to debug that issue ?
No description
Solution:
I used this notification in rontend react https://web.novu.co/integrations/66438cbc197e97811b78d554 It doesn’t always show the learner that there is a new notification. Only on refresh....
Novu Cloud Dashboard
Novu Cloud Dashboard
Jump to solution
41 Replies
Chirag parmar
Chirag parmarOP•4mo ago
@Support Any update on this ?
Pawan Jain
Pawan Jain•4mo ago
@Chirag parmar Is this workflow a V2 workflow or you created this workflow using UI (drag and drop)
Chirag parmar
Chirag parmarOP•4mo ago
Not sure our owner created the workflow So we have to update the workflow or need to do any settings for that ?
Pawan Jain
Pawan Jain•4mo ago
all your in-app notifications are stuck like this or this is happening with this particular workflow?
Chirag parmar
Chirag parmarOP•4mo ago
No, in some workflow sending and some workflow not sending
Pawan Jain
Pawan Jain•4mo ago
Can you please share the transactionId for these triggers from activity feed where in-app is stuck at step created?
Chirag parmar
Chirag parmarOP•4mo ago
Sure this is trasaction id : 9945c702-1169-4c04-a5f2-a4191b605c20 always not sending in app notification for this workflow
Pawan Jain
Pawan Jain•4mo ago
@Chirag parmar Are you using webhook condition on this in-app step? I see that webhook url is not sending response or unreachable
Chirag parmar
Chirag parmarOP•4mo ago
@Pawan Jain Not sure, in which place we have to set the webhook URL We have to set URL here ?
Chirag parmar
Chirag parmarOP•4mo ago
No description
Pawan Jain
Pawan Jain•4mo ago
Chirag parmar
Chirag parmarOP•4mo ago
@Pawan Jain Thank you I will review it and let you know if any question
Pawan Jain
Pawan Jain•4mo ago
@Chirag parmar Checking on this if you get chance to look into this? Can I help?
Chirag parmar
Chirag parmarOP•4mo ago
@Pawan Jain I'm used to using webhooks follow this document but in https://v0.x-docs.novu.co/workflows/step-filters#securing-your-webhooks not provided which type of response do we have to send ?? can you please explain to me which type of response I need to send in the webhook response?
Pawan Jain
Pawan Jain•4mo ago
@Chirag parmar Response can be in JSON format and key value pairs can be used in conditions
Chirag parmar
Chirag parmarOP•4mo ago
Also can we send nested level object in webhook responce and how to set condition for that ?
Pawan Jain
Pawan Jain•4mo ago
Can you share the example response you can access nested keys using dot .
Chirag parmar
Chirag parmarOP•4mo ago
Also response will send as paylaod ?
No description
Pawan Jain
Pawan Jain•4mo ago
key1.key2.key3. POST request to webhook will have these details in body
Chirag parmar
Chirag parmarOP•4mo ago
Or just pass like this Like I added condition if test equal "dev" then send email so for that I will pass the response as below it is okay ? { "test" : "dev" }
Pawan Jain
Pawan Jain•4mo ago
Yes it should work
Chirag parmar
Chirag parmarOP•4mo ago
Thank you so much
Pawan Jain
Pawan Jain•4mo ago
make sure response is exact in this format
Chirag parmar
Chirag parmarOP•4mo ago
Yes, Got it
Pawan Jain
Pawan Jain•4mo ago
@Chirag parmar Did you get chance to test it?
Chirag parmar
Chirag parmarOP•4mo ago
Yes, works fine one last question Once we send the email can we check the webhook API response in any place or activity log?
Pawan Jain
Pawan Jain•4mo ago
Currently No Would you like to share the usecase?
Chirag parmar
Chirag parmarOP•4mo ago
Not any use case but my client want this
Pawan Jain
Pawan Jain•4mo ago
Ohh Okay I will share the feedback with the team. Let me know if I can help with anything else 🙂
Chirag parmar
Chirag parmarOP•4mo ago
Hello @Pawan Jain
Novu_Bot
Novu_Bot•4mo ago
@Chirag parmar, you just advanced to level 5!
Solution
Chirag parmar
Chirag parmar•4mo ago
I used this notification in rontend react https://web.novu.co/integrations/66438cbc197e97811b78d554 It doesn’t always show the learner that there is a new notification. Only on refresh.
Novu Cloud Dashboard
Novu Cloud Dashboard
Chirag parmar
Chirag parmarOP•4mo ago
So it's default behaviour or we have to do any settings for that ?
Pawan Jain
Pawan Jain•4mo ago
@Chirag parmar I see, it is an in-app integration Each new notification will trigger this event. Do you see any error in console or network tab?
Chirag parmar
Chirag parmarOP•4mo ago
NO, but we need to refresh the page sometimes
Pawan Jain
Pawan Jain•3mo ago
@Chirag parmar It will be helpful if you can share some screen recording of the issue. We will be able to debug the issue
Chirag parmar
Chirag parmarOP•3mo ago
@Pawan Jain I want to implement this https://docs.novu.co/recipes/workflows/multi-workflow-digest It will work with node js or react js ? I implement in react js but not sure how to call function Also we need to send any API key for that ? I have implemented as given in the document and the code as given in github but in github there is only function created but there is no mention in the document how to use that function so can you help me how to call the function will happen @Pawan Jain Any update on above
Pawan Jain
Pawan Jain•3mo ago
@Chirag parmar
It will work with node js or react js ?
It will need server side environment. it will work with nodejs + express. You can use nextjs / remixjs in place of react
I implement in react js but not sure how to call function
As I mentioned, you will not be able to use this in react I will recommend you to follow this quick start guide to learn how to work with novu v2 workflows https://docs.novu.co/quickstart/nextjs
Chirag parmar
Chirag parmarOP•3mo ago
@Pawan Jain thank you, I will follow new doc and let you know if need any help
Want results from more Discord servers?
Add your server