Daemon agent as web server with custom endpoint

Hi Allan,

Hope you are doing fine!
I was wondering if you could nudge me in the right direction.

What I want to accomplish, is basically to trigger an openflow automation when there is a new email on Outlook365.

The idea is: having a Power Automate trigger configured “When new email arrived”, and have that small Power Automate flow to POST the email body payload to this openflow daemon agent, so that the body of the email ends up in a queue (for another openflow js agent to process it).

I saw that you can configure custom endpoints in Nodered, but I was wondering what would be the high level process of accomplishing the same with a daemon agent? Is it a simple as setting up an express server in the agent, with the POST endpoint configured, that would require an openflow jwt?

Many thanks :folded_hands:

So I did actually mess around with this, and I figured something out. basically setup an agent container as a webserver. Pushed an express server app package to it (with some test GET and POST enpoints), Ran it manually, and it works out nicely. Fantastic extensibility, love it Allan.

1 Like

damn it, you beat me too it … Yes, you can do that :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.