Any tips on building a workflow engine similar to n8n?

Thanks @gtcode, external integrations are implemented at main application.
I’m working to test integrating to our main application. Keep back and ford to refactor to adapt to application needs. Lots of unknown here.