Escape per-task Zapier fees by compiling exported Zapier JSON workflows into self-contained Python 3 standard-library scripts. Migrate-Anything translates step placeholders, prevents JSON quote injection, generates polling cursors, and scrubs credentials into os.environ placeholders.
| Zapier Blueprint Element | Risk in Hand-Ported Scripts | Compiled Python Fix |
|---|---|---|
Step placeholders ({{1__email}}) |
Silent KeyError or unescaped quotes when interpolated into raw JSON f-strings. |
Compiles explicit resolve_step_path(ctx, "1.email") lookups and builds dicts passed to json.dumps(). |
| Polling vs Instant Webhooks | Running a polling trigger on cron without state re-processes the same leads on every tick. | Detects trigger mode and emits a SQLite/file deduplication cursor helper for polling Zaps. |
| Embedded Bearer / API Keys | Exported headers or auth fields accidentally leak credentials into git commits or logs. | Redacts secret patterns immediately to {{ENV:CONNECTION_TOKEN}} and emits os.environ["..."] lookups. |
python_dispatchcurl -sS -X POST https://migrate.fastmesh.dev/v1/migrate \
-H "Content-Type: application/json" \
-d '{
"source_format": "zapier",
"target_format": "python_dispatch",
"table_name": "lead_router",
"source_data": {
"title": "Webhook Lead to Postgres",
"trigger": {"app": "webhook", "event": "catch_hook", "mode": "instant"},
"steps": [
{"id": 1, "app": "webhook", "action": "parse_payload"},
{"id": 2, "app": "http", "action": "post", "url": "https://api.example.com/leads", "headers": {"Authorization": "Bearer demo_redacted_token_placeholder"}, "body": {"email": "{{1__email}}", "plan": "{{1__plan}}"}}
]
}
}'
migrate_execute over /mcp.