#Unable to Create a Workflow

1 messages · Page 1 of 1 (latest)

barren fable
#

I cannot add my first workflow, the badge at the top says "You are currently viewing demo workflows. Add your own by completing the setup.". Anyone know what I might be missing out?

barren fable
#

@final heron hello please can you help me out, will really appreciate it thanks?

final heron
#

Have you added your bridge app and synce'd the two together?

barren fable
#

I'm trying to do that but no luck. it seems running the npx novu@latest dev --port 4000 appears to be connecting to my cloud version and not the self hosted one.

barren fable
#

@final heron

final heron
# barren fable <@214588679321157632>

You need to specify your dashboard-url, so your command should look something like this:

npx novu@latest dev --port 4000 --dashboard-url https://dashboard.mydomain.app
barren fable
#

Hello @final heron thanks for your help. after I was able to let it connect with the bridge app. On the screen to trigger the test workflow, I get api key not found. I have correctly checked the key is rightly added.

final heron
barren fable
#

Oh thanks solved

#

Have any idea why my events keeps failing?

#

Have done the sync changes @final heron

final heron
#

Are they failing to trigger or are they failing to be sent by the provider you're selecting?

barren fable
#

It was able to be trigged but on the activity feed am getting failed

final heron
#

What error are you getting in the activity feed?

barren fable
#

Those are the screenshots above @final heron

final heron
#

This seems to be an issue with the email provider

barren fable
#

I tried it with sms and push notification. Same error @final heron

queen thicketBOT
#

@barren fable, you just advanced to level 4!

barren fable
#

Is there even a chance that the workflow flow that was been created using the ui version that the cloud uses will work on this self hosted version that uses codes to create a workflow if I created it through the api @final heron ?

final heron
barren fable
#

Okay thanks. Do you think it will be a great idea to revert back to v0.24 @final heron ?

static pebble
#

Is there any way to skip using Local Studio to create workflow and if do so how to set it up, since everything are local?
Novu Tunnel just got totally block after our coporation proxy.

I got stuck. And please help... @final heron @dry narwhal

nocturne zodiac
#

Hey @static pebble! We are currently building a new Workflow editor experience in the Dashboard that will allow you to create workflows using UI. You can read more about it here.

Currently it's not possible to create Workflows without Local Studio. We do however have a flag allowing you to specify a custom tunnel URL to workaround blocked proxies. You can read more about the available flags here. Here is an example using Ngrok tunnel provider, however any tunnel provider will work:
npx novu@latest dev -t https://my-custom-tunnel.ngrok-free.app

The tunnel is necessary to expose your locally-running Bridge application to the internet so that the Novu Cloud Worker engine can trigger your workflows during local development. You can read more about securing your Bridge application here.

static pebble
#

@nocturne zodiac Thanks for your quick response!

However any Tunnel service(including ngrok) that might expose our company internal network got block by our security team.

And I think most of the companies do so. I really like the code-first feature but in this case, I might need to rollback to 0.24 too...

nocturne zodiac
#

Thanks for providing more information about your security limitations. Is self-hosted or corporate Ngrok an option for you? Ngrok provides some documentation here about running Ngrok behind a corporate firewall.

At Novu we are running our own Tunnel service which is what you'll see as the Tunnel URL produced when starting npx novu@latest dev, looking something like: https://<random-uuid>.novu.sh/api/novu. The tunnel service is hosted as a simple Cloudflare worker.

Would your company consider self-hosting a tunneling service to meet the needs of Novu Cloud Worker? I can chat with the team to see if we could create a Terraform recipe to deploy your own service.

When you need to deploy ngrok behind a corporate firewall, there may be additional steps that you will need to take to make sure ngrok is working properly.

static pebble
#

I am in an agile team but within a tranditional 😂 company, so only when solution has been proven, then my team can raise ticket to related department to coporate...

And we are only at the very begining spike stage, everything has been limited.

I used to develop MS Teams In App Plugin, which also use ngrok for local development. I end up using Github Codespace as workaround to have a free network enviorment, and it is not that handy.

nocturne zodiac
#

Thanks for confirming.

I've just identified a workaround to developing in Local Studio without a tunnel connection, using the new --tunnel flag. Try this command out, replacing with your localhost details as necessary:
npx novu@latest dev -t http://localhost:4000

Local Studio will start up with a set of params looking like this:

✔ 🛣️ Tunnel    → http://localhost:4000/api/novu
✔ 🖥️ Dashboard → https://dashboard.novu.co
✔ 🎨 Studio    → http://localhost:2022/studio
✔ 🌉 Endpoint  → http://localhost:4000/api/novu

You'll now be able to preview your content in Local Studio (see screenshot example).

This comes with the aforementioned caveat that you won't be able to Trigger your workflows locally until you sync a deployed Bridge application to Novu Cloud. You can read more about syncing here.

I hope that helps unblock you in the meantime, let me know if you have any other questions!

Novu

Novu is a full-stack (UI Components, API, and Framework) open source notification infrastructure platform for building, managing, delivering, and monitoring all types of end-user notifications.

dapper ivy
#

Much thanks! I dive a little bit, and seems it rely on cloudflare worker. Hope it is not blocked. By the way , Is this part of code in worker open sourced?

dapper ivy
#

It works! @nocturne zodiac Thank you so much!

thorny hollow
#

I am trying to run a test app as per the Get Started page on self hosted novu, I initialize a new project with below commands:

npx novu@latest init --secret-key=xyz --api-url=https://novu-api.qa.mycompanydomain.ae

cd my-novu-app && npm run dev

npx novu@latest dev --port 4000 --dashboard-url https://novu.qa.mycompanydomain.ae

after running this, (http://localhost:2022/studio/onboarding), shows waiting for you to start your application, and there is no progress even if the app is running.

I am also not able to connect the local studio with the self hosted novu instance. Below screenshots for reference. Could you please help me on this @final heron @nocturne zodiac

final heron
icy mural
#

What about docker