Make one system talk to another. See every time it does.
Most integrations start as a script on a timer. Volvel keeps that simplicity and adds what the script was missing: a record of every run, retries that won't send twice, an alert when it fails, and credentials that differ between dev and production.
From the Acme example
A shop-to-ERP sync, start to finish.
This copies new orders from a web shop into an ERP every five minutes. It's the sync from the Acme example repository, shortened.
concurrency: 1stops two syncs sending the same orders.- Three retries, 30 seconds apart, are safe because the ERP ignores an order key it has seen.
onFailureruns a script and sends a notice when the last attempt fails.- The shop and ERP addresses are set per workspace, so dev talks to the sandboxes.
export const syncOrders = defineScript({
path: "orders/sync",
connections: [shop, erp],
retries: { limit: 3, delaySeconds: 30 },
concurrency: 1,
onFailure: { script: "alerts/run-failed", notify: alerts },
async run(input, ctx) {
const shopApi = await ctx.connection("shop");
const erpApi = await ctx.connection("erp");
const found = await shopApi.get("/orders", { query: { since: input.since } });
for (const order of found.json()) {
await erpApi.post("/import/orders", order, {
headers: { "idempotency-key": `order-${order.id}` },
});
}
},
});
export const everyFiveMinutes = defineSchedule({
path: "orders/sync-every-five-minutes",
script: syncOrders, cron: "*/5 * * * *", timezone: "America/New_York",
}); When an order needs a person.
The same orders as a flow: two ways in, a check, and a branch. Anything over 1,000 waits for someone to approve it, and a failed send is recorded on its own path.
What Volvel adds around the script.
You write the part that moves the data. The rest comes with the platform.
- Every run, kept
- Input, output, logs and duration, searchable for as long as your retention allows.
- Retries that are safe
- Retries with backoff, and a concurrency limit so two runs never overlap.
- Someone hears about failures
- A script or a notice when the last attempt fails, and a suggested next step for failures it recognises.
- Credentials per workspace
- The same code talks to the sandbox from dev and the real system from production.
- Connections
- HTTP, SMTP and OAuth2, or a connector of your own, each tested from its setup screen.
- Triggers
- Schedules with time zones, signed webhooks, events and polling sources.
When it fails, you see why.
A failed run leads with its reason, in the words the script used, and the line it came from.
Related
Connect the first two systems.
Start with one sync. The history, retries and alerts are there from the first run.