↑↓ selectEnter openEsc closeAll results

  1. Elbuz
  2. Elbuz User Guide
  3. Triggers, flows and background jobs
  4. Schedule, job queue and flows

How to combine price lists, catalog and export in one flow

5 min readUpdated

Elbuz chains several operations: imports price lists, updates the catalog, exports products to chosen marketplaces and sends a summary. The chain starts with a button, on a schedule or on an event.

When you need this:

  • Update prices for Rozetka and Prom every morning — the ready-made flow does it in your order.
  • See where it stopped — the “Execution log” shows each block's status and totals.
  • Another system starts processing — the flow starts on an event, like an API-created document.
  • Call the customer after an order — the “AI call” block calls and explains why.

Where to start: AI → Flows → “From template” → “Activate”.

What a flow can do

How a flow differs from a schedule

The “Flows” window combines several operations into one chain: every morning, import price lists from all suppliers, update the catalog, export products to Rozetka, Prom or your site, and send a notification with a summary. Steps are blocks on the diagram; the order is set by the arrows between them.

The start block decides when the flow begins: “Manual trigger”, “Schedule” or “On event”. “On event” reacts to a rule from the trigger list, AI analysis of an email or call, or a ticket or chat event (chat events).

Flows window with the “Ready-made flows” dialog open on the supplier price list card
1Ready-made flow card
2Activate button
  1. From template — opens the list of ready-made flows.
  2. The card “Load supplier price lists and update site/marketplaces” with its description: import, catalog update, export, notification.
  3. Activate — creates your own copy of the flow.
  4. Blocks palette — the building blocks for flows, visible behind the dialog.

The “Processing price lists” schedule can also do “price lists → catalog → export” with two switches (night chain). The difference is what gets exported: the schedule generates all enabled templates, while in a flow you decide which templates to export and in what order, and you see the progress of each step.

How to set up the ready-made “price lists → catalog → marketplaces” flow

  1. Open AI → Flows and click “From template”. In the “Ready-made flows” window, on the “Load supplier price lists and update site/marketplaces” card, click “Activate”. A copy of the flow opens on the diagram and appears in the “My flows” list. Clicking “Activate” again doesn't make a second copy; it opens the existing one: “This flow is already activated — opened the existing one”.
  2. The copy's diagram: “Manual trigger” → “Import price lists” → “Update catalog” → “Export” → “Notification” → “End”.
  3. Click the “Import price lists” block. In “Properties” on the right there's the “Supplier (0 = all)” field: 0 imports price lists from all suppliers.
  4. In the “Export” block, choose an “Export template”. One block, one template. For Rozetka and Prom, add two “Export” blocks in a row, each with its own template, or one “Export all templates” block. A block without a template doesn't fail; it's skipped with the entry “Export skipped — no export template selected”.
  5. To make the flow run every morning on its own, replace the start block. Drag the “Schedule” block from the “Blocks” palette, delete “Manual trigger” (a diagram can have only one trigger, otherwise you get “More than one trigger — keep one”) and connect the new start to “Import price lists” with an arrow.
  6. In the “Schedule” properties, set the schedule in the builder: how often (every day, every week…) and the time. The default is every day at 03:00; to run the flow at 06:00, change the hour to 06. “Next run” with a date and time appears below the builder.
  7. In “Flow settings”, check the “Flow is active” toggle and click “Save”. A disabled flow isn't started by the schedule or by events — only a manual run works. A new flow built from scratch is saved disabled.
A new start for the flow: “Schedule” is dragged from the “Blocks” palette, “Manual trigger” is deleted with the Delete key, and an arrow is drawn from the new block's output to “Import price lists”
The schedule of the “Schedule” block is set in “Properties”: change the start hour, and the “Next run” line under the builder shows the new date and time at once

“Check” validates the diagram before a run: “Schema is valid” or a list of errors — no start block, an unconnected block. “Run” starts the flow at once, without waiting for the schedule. Progress is in the “Execution log” at the bottom: each block's status and totals — records in the price lists, products added and updated, products exported.

How to make a flow call a customer

The “Actions” group of the palette has the “AI call” block: a voice AI employee calls the customer and says why it's calling. Its properties are “Call purpose” (what to say or find out, in your own words), “Customer (contact ID)” (usually “On event → Contact ID”), “Price list document (ID)” and “Number (if not from the card)”.

The number is taken from the “Number” field or from the customer's card. If an order is specified, Elbuz adds its number, status, payment, delivery and to the purpose.

The block succeeds when the call has gone out or, outside calling hours, has been queued. In that case the “Queued until working hours” output equals 1, and the call goes out when working hours begin.

The block fails if no outgoing line is set up or the customer has no phone number. The flow doesn't wait for the call's outcome: the summary goes to the call log and “Pulse”. The line, the hours and ready-made purpose texts are described in the article about the voice AI employee.

How to add a pause to a flow

The “Wait” block from the palette's “Flow” group stops the flow for a set time: “2 days after delivery, ask for a review”, “in an hour, check whether it's paid”. Fields:

  • “How long to wait, min (up to 43,200 — 30 days)”: from 1 to 43,200 minutes; {{step:…}} placeholders work;
  • “Cancel if something happened in the chat” — only for flows on the “Chat” event: if a new public message appears (from the customer, a team member or AI) or the chat status changes, the run ends with the “Skipped” status and no actions.
The Flows window with a process containing a Wait block and its properties
1A pause for any process
2A question in words with “yes” and “no” outputs
3The block shows how long to wait
4From 1 to 43,200 minutes (30 days)
5Only for processes on a “Chat” event
  1. “Wait” in the “Flow” group adds a pause to any process.
  2. “AI condition” in the “Logic” group asks a question in words and has “yes” and “no” outputs.
  3. The “Wait” block on the diagram shows how long the process will wait.
  4. The waiting time can be from 1 to 43,200 minutes (30 days).
  5. The cancel checkbox works only for processes started by a “Chat” event.

How the pause works:

  • when it reaches the block, the run goes to sleep: the “Execution log” shows the “Waiting” status, and the step shows “Waiting 60 min”;
  • after N minutes the run continues from the next block with the same data: outputs of completed steps, records from “Find records”, event data;
  • Elbuz checks wake-up times together with the job queue worker — usually once a minute, 10 runs per pass; while the previous queue pass is still going, the next one is skipped, so the run may resume a few minutes late;
  • after the pause the flow runs as the same team member, with the same rights;
  • “Stop” cancels a sleeping run at once — the status is “Stopped”; if the flow is turned off during the pause, it won't resume either;
  • a sleeping run doesn't hold the lock: an event or the schedule starts a new run of the same flow, and several runs can wait at the same time.
The execution log of a run that is waiting at the Wait step
1The run is asleep and will resume in 60 min
2The pause step: how long to wait
  1. The “Waiting” status means the run is asleep and will continue in 60 minutes.
  2. The “Wait” step line shows that the step succeeded and how long the run waits.

After a pause you usually put a “Condition (If)” or an “AI condition” block to check whether the action is still needed. For chats there is a shorter way — the “Wait, min” field in the “On event” block (flows on chat events).

How to check a condition in words

The “AI condition” block from the “Logic” group answers “yes” or “no” to a question in plain words, for example “Is the customer complaining about delivery?”, and sends the flow on through the true or false output. Its fields are “Question in words (yes / no)” and “Input (data)”.

  • The text to check comes from the “Input (data)” field. If it is empty, the event text is used: in a flow on a chat event, the last 15 messages of the conversation; for a ticket, the subject and summary; after AI analysis of an email or call, the summary.
  • “Yes” only when the AI is at least 50% confident. If the AI is unavailable (demo limit used up, inactive account, failure), the output is “no”.
  • Each check is a separate paid AI request, so narrow the event before the block.
  • The block works with any start block, not only with chats.

The AI's answer and confidence are shown in the “Execution log”: “AI → true (confidence …)”.

Scenarios

Import price lists every morning and export to Rozetka and Prom

What to turn on. Activate the ready-made flow. In “Import price lists”, leave “Supplier (0 = all)”; in the “Export” block, choose the Rozetka template and add a second “Export” block with the Prom template. Replace “Manual trigger” with “Schedule” set to every day at 06:00, turn on “Flow is active” and save.

What you get. Every day at 06:00, price lists from all suppliers are imported, the catalog is updated, and exactly these two templates are generated, one after the other. The summary arrives as a notification.

An external system needs to start the flow

What to turn on. The “On event” start block. The external system creates a document or a contact via the (api/scope/add), and an automatic rule for that event with the “Run flow” action starts the flow. You create the rule from the document or contact list: header menu → “Automatic rules” (how to set it up).

What you get. The document data is available to the flow's blocks as outputs of the “On event” start block.

What to do when you see “Flow is already running”

One flow can't have two runs at the same time. A run sleeping in the “Wait” block with the “Waiting” status doesn't get in the way. While the previous run has the “Running” status, “Run” replies “Error: Flow is already running”, and the window picks up that run and shows it in the “Execution log”. A scheduled run in this situation is skipped until the next time the schedule matches.

  • The run is alive but long. Check in the “Execution log” which block it's on: a large price list import takes a while, and that's normal. Wait for it to finish or click “Stop”. Stopping takes effect between blocks: the current block finishes, the next ones don't start, and the run gets the “Stopped” status. A run with the “Waiting” status stops at once. The button acts on the run in the “Execution log” — the flow's latest run at the moment you opened it, however it started: with the button, on a schedule or on an event. A run that started later appears when you open the flow again.
  • The run has been “stuck since morning”. Elbuz treats the start of the next block as a sign of life. If more than 30 minutes have passed since the current block started, the background job queue watchdog marks the run as an error with the entry “Run marked as error: no signs of life for over 30 minutes (process interrupted)” and releases the lock — after that “Run” works again.
  • The lock is held longer than 30 minutes. The watchdog runs together with the job queue worker, which starts every minute — but only if the previous worker has already finished. While a long background job is running, such as product enrichment, the every-minute starts are skipped.

The watchdog counts 30 minutes from the block's start, not the last log line. An “Import price lists” block loading all suppliers for over 30 minutes is marked as failed mid-import, and the next run can start on top of it. For slow imports, split suppliers across several “Import price lists” blocks with different “Supplier (0 = all)” values.

“Skipped: busy with another process”

The “Update catalog” block doesn’t start right away if a scheduled price list import is running at that moment: it waits for it to finish, up to 30 minutes. The run log shows “Waiting for supplier price lists to finish importing…”, then “Waited for price list import to finish: 12 min”, and the catalog updates as usual. “Stop” during the wait stops the run.

If the wait exceeds 30 minutes or the website is already being processed by another process, the block writes “Skipped: busy with another process — …” with who holds the website; the branch doesn’t continue, but the run isn’t an error. A time margin after the price list import is no longer required, but schedule two processes with the same website with a margin — for example, at 03:00 and 05:00, not at 03:00 and 03:10.

A failed export (the file wasn’t built, the website didn’t respond, stop rules fired or someone clicked “Stop”) goes down the “error” branch. A retry placed on that branch, for example in 5 minutes, will work.

FAQ

Can I start a flow with an incoming webhook — a URL another system sends a POST to?

There is no incoming webhook, but API v2 starts a flow: POST /api/v2/flows/{flow_id}/run with a key that has access to the flows window (API). The flow is placed in the background job queue, and the response returns job_id. Another way is to create a document or a contact via the API, and an automatic rule with the “Run flow” action will start the flow.

Can a flow send a POST to a third-party service on its own?

An outgoing is available only as the “Call webhook” tool in the AI agent block.

A scheduled flow doesn't start, but the button works. Why?

The “Flow is active” toggle is off: the schedule and events don't start such a flow. A new flow built from scratch is saved disabled.

Can I stop a run that started on a schedule?

Yes. Open the flow — the “Execution log” shows its latest run, and “Stop” acts on it: a running run stops between blocks, a run with the “Waiting” status stops at once (stopping).

How many copies of a ready-made flow can I activate?

One. Clicking “Activate” again opens the existing copy with the message “This flow is already activated — opened the existing one”.

Where to find it and who has access

Menu
AI → Flows — the “Flows” window
Access right
the “Flows” window in group permissions; without it, saving, running and stopping don't work
Prepare
configured price lists and export templates

Related topics

Was this article helpful?

Missing a feature? Tell us.

We will add it for free if other users need it too.

If only you need it, we will agree on it separately.

Article contents

Suggest an improvement

Try Elbuz free