When you're using visual workflow editors like Retool or n8n:
- You can't import just any dependency to your python/js scripts
- You can't use IDEs like Cursor to auto generate code while referencing documentation, MCP servers, etc
- Code up any kind of workflow in python
- Import any dependency you want to use
- Call LLMs or build agents using any API you want
- Deploy as standalone endpoint to Modal
You can go back and forth from a visual editor to full fledged python codebase. If you think a workflow can be done easily with the visual editor, go ahead and glue those blocks together. If you identify a node that needs to be smarter, you can drop in to Cursor and vibe code your logic/agent/workflow and deploy in few steps. The resulting URL can be added to your workflow as a simple HTTP node.
- You need to have a Modal account
- Run the script by running
modal server agent.py
agent.py
does 3 things:
- Define your agent/workflow
- Define the instance deployed to Modal
- Define FastAPI endpoint (https://modal.com/docs/examples/basic_web)