
How to Convert Pipedream Workflows to FlowRunner, with Real Examples
Move Pipedream workflows to FlowRunner in five steps: export the files, connect FlowRunner Prompt to Flow, convert one workflow at a time, finish by hand, and test. With three real conversions.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Move Pipedream workflows to FlowRunner in five steps: export the files, connect FlowRunner Prompt to Flow, convert one workflow at a time, finish by hand, and test. With three real conversions.
Pipedream Workflows shuts down on March 31, 2027, and everything in it, including the credentials for your connected accounts, is deleted by April 30. This guide is how to move your workflows to FlowRunner without rebuilding each one by hand. FlowRunner Prompt to Flow reads a workflow’s files, code steps included, and builds the same workflow as a FlowRunner flow. What’s left for you is reconnecting accounts and testing.
It takes five steps, and after them are three real Pipedream workflows converted this way, with the files that went in and what came out. For the shutdown details and how each Pipedream piece maps to FlowRunner, see our Pipedream migration guide. If you’d rather not do it yourself, send us your files and we’ll convert them for free.
There are two ways to get a workflow’s files.
Either way, some things never come out, and you’ll fill them in later:
Two things to do now, while Pipedream still runs. Copy your data store records somewhere safe, because they’re deleted on April 30. And save a few real events from each workflow’s event history, so you have something to test the new flow with.
FlowRunner Prompt to Flow is an MCP server you add to the AI tool you already use. The server URL is https://app.flowrunner.ai/mcp.
claude mcp add --transport http flowrunner https://app.flowrunner.ai/mcp claude mcp login flowrunner
ChatGPT, Codex, and Cursor: follow the setup in the docs.
You sign in with your FlowRunner account. If you don’t have one, the Free plan needs no card.
Start a new chat, paste the request that matches your files, then paste one workflow’s files after it.
Rebuild this Pipedream workflow as a FlowRunner flow. It comes from Pipedream’s Export Workflows: the JSON lists the trigger, the steps in order with their settings, and the source of each code step. Values shown as were removed by Pipedream. Keep the same behavior. Before you build, tell me anything you can’t map one to one, and ask me about anything the file doesn’t say.
Rebuild this Pipedream workflow as a FlowRunner flow. It comes from Pipedream’s GitHub Sync: workflow.yaml lists the trigger and the steps in order, and the source of each code step follows it. Keep the same behavior. Before you build, tell me anything you can’t map one to one, and ask me about anything the files don’t say (for example the trigger’s schedule or URL, which GitHub Sync doesn’t record).
If the workflow’s entry in manifest.json has a warnings list, paste that too. It names every secret and connection you’ll need to fill in.
Answer its questions, and it builds the flow in your workspace. Code steps come across as Custom Cloud Code, or as a regular block where one does the same job, and Python steps are rewritten in JavaScript. One workflow per chat keeps the conversation short and the questions specific.
Each conversion ends with a short list from the builder. Expect some of these:
Run each flow with the events you saved in step 1 and compare the results with what Pipedream produced. When they match, point the callers at FlowRunner, watch the runs for a few days, and turn off the Pipedream workflow.
Raymond Camden ran the guestbook on his site with three Pipedream workflows, and he keeps them public in his General-Pipedream-Stuff repo. Thanks to Raymond for letting us use them. Together they make a small moderation loop: a visitor’s entry lands in a Google Sheet, Raymond gets an email with an approve link, and the site only shows entries he approved.
The input for all three was his GitHub Sync files, exactly as they sit in the repo: each workflow’s workflow.yaml plus one JavaScript file per code step. Each conversion used the GitHub Sync request from step 3, followed by the files.
Because the request asks for it, the builder listed what it couldn’t map one to one and asked its questions before building anything. All three flows were then connected to a test spreadsheet and a Gmail account and tested end to end.
A visitor’s form posts a name and a comment. The workflow checks both are there, adds a row to the sheet with Approved set to FALSE, and emails Raymond the entry with a “Click to Approve” link. (Original files)
schema: workflow/2022.04 name: Add Guestbook Entry settings: error_notification: true triggers:
- id: hi_mJH1wmn steps:
- namespace: validate runtime: nodejs20.x uses: "./validate/entry.js"
- namespace: add_single_row runtime: nodejs20.x uses: [email protected] props: googleSheets: authProvisionId: apn_DphexA sheetId: __lv: label: Guestbook value: 1RLspI8iuC-Ng8Fco8zV-ynpxdPLm7MgoXm5jnlo0Tpk sheetName: __lv: label: Sheet1 value: Sheet1 hasHeaders: 'Yes' col_0000: "{{steps.trigger.event.body.name.replace(/<.?>/g,'')}}" col_0001: "{{steps.trigger.event.body.comment.replace(/<.?>/g,'')}}" col_0002: "{{Date.now()}}" col_0003: 'FALSE'
- namespace: create_email_body runtime: nodejs20.x uses: "./create_email_body/entry.js"
- namespace: send_email_to_self runtime: nodejs20.x uses: [email protected] props: subject: New Guestbook Entry text: "{{steps.create_email_body.$return_value}}" html: "{{steps.create_email_body.$return_value}}"
The two code steps carry Raymond’s logic over. The first holds what Pipedream ran inside the column fields: stripping HTML tags from the name and comment, and the Date.now() timestamp.
The second is Raymond’s email HTML, with the approve flow’s address passed in where his code read the APPROVE_GB variable, and the row’s range taken from the Add Row step.
Left to finish by hand: connect Google Sheets and Gmail, pick the spreadsheet, set the address the email goes to, and start the flow.
Tested: a test entry added the row, with Approved set to FALSE, and the email arrived with a working approve link.
Notes: the builder replaced the validation code with a Condition block, which shows on the canvas instead of hiding in code. Pipedream’s Send Email To Self needed no setup; on FlowRunner the email goes through your own email account, so you connect one.
The approve link in the email opens this workflow with the new row’s range in the address. It sets that row’s Approved cell to TRUE, and the entry shows up on the site. (Original files)
Raymond’s one-line cell expression became a one-line code step, and its result feeds the Google Sheets block’s cell address.
Left to finish by hand: connect Google Sheets and pick the spreadsheet, then start the flow.
Tested: clicking the approve link in the test email set that row’s Approved cell to TRUE.
Notes: Raymond’s last step sends the browser back to his guestbook page with a redirect. Our version doesn’t, so the browser shows FlowRunner’s run ID instead of the guestbook page.
The guestbook page calls this workflow to get the approved entries. It reads the sheet, keeps the approved rows, and answers with them as JSON. (Original files)
Because the rows now come back keyed by their headers, the filter reads r.Approved and r.Name where Raymond’s code read a[3] and a[0].
Left to finish by hand: connect Google Sheets and pick the spreadsheet, then start the flow.
Tested: the call returned exactly what Raymond’s workflow returns, the approved entries as a JSON array:
[{"name":"Ada","comment":"Hello from the test","date":"1791494504814"}]
Notes: this is the one workflow whose trigger changed shape. A Pipedream HTTP trigger can answer its caller directly; on FlowRunner, a flow that answers its caller is called through the blocking API instead. The calling address includes your workspace key, so call it from a server and pass the key in a header rather than from the visitor’s browser.
By Mark Piller, Founder of FlowRunnerEditorial policy
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。
