Are there any plans for Echo in Novu cloud?

In order to have my workflows defined in code and version control, I should use Echo. If I understand the documentation correctly, I need my own runtime to use Echo and can not rely only on your cloud offering, is this correct? If so, are there any plans on providing this runtime in the Novu cloud? I really don't want to set up another runtime just to be able to define my workflows in code. Maybe I just misunderstood how it works 😬
15 Replies
Tomer Barnea
Tomer Barneaβ€’7mo ago
Hey @kingen ✌🏻 πŸ‘‹ You are partially correct:-) To use Echo you do need a simple runtime, to process the steps, allow usage of shared code, and access to local data. But the Novu Cloud is controlling the flow. Does that make sense? What interest you most about using Echo?
kingen ✌🏻
kingen ✌🏻OPβ€’7mo ago
Yeah make sense! I guess the main reason is to give developers easy access to local data during workflow execution. What interest me most? All the reasons we use version control in code πŸ˜„ (testing changes, reviewing changes, reverting changes, type validations, easy onboarding of new engineers, etc.). btw, the github actions page https://github.com/novuhq/actions-echo-sync may need a little update to the readme πŸ™‚
GitHub
GitHub - novuhq/actions-echo-sync
Contribute to novuhq/actions-echo-sync development by creating an account on GitHub.
kingen ✌🏻
kingen ✌🏻OPβ€’7mo ago
Any way of configuring providers using code?
Novu_Bot
Novu_Botβ€’7mo ago
@kingen ✌🏻, you just advanced to level 1!
Dima Grossman
Dima Grossmanβ€’7mo ago
@kingen ✌🏻 this will be coming soon to Echo πŸ™‚
kingen ✌🏻
kingen ✌🏻OPβ€’7mo ago
from the example here: https://docs.novu.co/echo/sdk/frameworks/express What package do I need to install to be able to import the following``
import { serve } from "@novu/echo/express";
import { serve } from "@novu/echo/express";
It is very unclear to me πŸ€”
kingen ✌🏻
kingen ✌🏻OPβ€’7mo ago
Hoping I'll be able to use that with my NestJS API.
Dima Grossman
Dima Grossmanβ€’7mo ago
Thanks for the feedback! You will just need to install @novu/echo We are renaming the package in the next 2 weeks to @novu/framework, but we will put the new name with the updated docs soon
kingen ✌🏻
kingen ✌🏻OPβ€’7mo ago
okey, good to know! I get the following when trying to import on version 0.24.3-alpha.4. I can import the client import { Echo } from '@novu/echo'; πŸ€”
node -v
v20.11.0
node -v
v20.11.0
No description
kingen ✌🏻
kingen ✌🏻OPβ€’7mo ago
another feedback πŸ™‚ It would be very convenient for me if I was able to trigger a workflow directly from the echo instance, like this:
let echo = new Echo();
echo.workflow('test', async (event) => {
await event.step.inApp('send-in-app', async () => {
return { body: `A new post has been created` };
});
});

echo.triggerWorkflow('test');
let echo = new Echo();
echo.workflow('test', async (event) => {
await event.step.inApp('send-in-app', async () => {
return { body: `A new post has been created` };
});
});

echo.triggerWorkflow('test');
That way I only need to pass around the echo instance instead of individual references to all workflows. Is this something that you're considering? πŸ™πŸ» thanks for the responsiveness btw
Dima Grossman
Dima Grossmanβ€’7mo ago
Yes! This is on our very soon roadmap, we be able also to provide typesafety with Zod/JSON Schema for the payload variables I believe this will be available during early July
kingen ✌🏻
kingen ✌🏻OPβ€’7mo ago
Cool, yes Zod validation would be gold πŸ‘πŸ» I might wait with this a couple of weeks then.
Dima Grossman
Dima Grossmanβ€’7mo ago
We have a bunch of improvements that will ship around the beggining of July, including Zod
Pawan Jain
Pawan Jainβ€’3mo ago
@kingen ✌🏻 I see you are interested in using @novu/framework with nestjs.
Hoping I'll be able to use that with my NestJS API.
Checkout this link to learn how to use it with nestjs https://docs.novu.co/quickstart/nestjs
kingen ✌🏻
kingen ✌🏻OPβ€’3mo ago
fantastic! thanks for letting me know πŸ‘πŸ»
Want results from more Discord servers?
Add your server