Example workflows
Four complete RPA Plus examples — fill an internal form from a CSV, collect a paginated table into Excel, watch a page for changes, and report from an API.
Trang này chưa có bản tiếng Việt. Nội dung tiếng Anh được hiển thị bên dưới.
These examples use only nodes that exist in RPA Plus and show complete, realistic patterns. Adapt the addresses and locators to your own systems. The first one is a full workflow file you can save as .json and bring in with Workflows → Import.
1. Fill an internal form from a CSV file
Goal: enter each row of datasets/requests.csv (columns name, email) into your organisation's request form, and record what was submitted.
{
"schema": "quin.workflow/1",
"name": "Submit requests from CSV",
"inputs": [
{"name": "form_url", "type": "string", "required": true, "description": "Address of the request form"},
{"name": "csv_path", "type": "string", "default": "datasets/requests.csv", "required": false}
],
"variables": [],
"settings": {"timeout_s": 1800, "max_steps": 10000, "screenshot_on_failure": true},
"nodes": [
{"id": "start", "type": "start", "position": {"x": 60, "y": 40}},
{"id": "read", "type": "file.read_csv", "position": {"x": 60, "y": 150},
"params": {"path": "{{ csv_path }}", "save_to": "rows"}},
{"id": "each", "type": "for_each", "position": {"x": 60, "y": 260},
"params": {"items": "{{ rows }}", "item_var": "row"}},
{"id": "open", "type": "browser.navigate", "position": {"x": 420, "y": 260},
"params": {"url": "{{ form_url }}"}},
{"id": "name", "type": "browser.fill", "position": {"x": 420, "y": 370},
"params": {"locator": {"label": "Full name"}, "value": "{{ row.name }}"}},
{"id": "email", "type": "browser.fill", "position": {"x": 420, "y": 480},
"params": {"locator": {"label": "Email"}, "value": "{{ row.email }}"}},
{"id": "send", "type": "browser.click", "position": {"x": 420, "y": 590},
"params": {"locator": {"role": "button", "name": "Submit"}}},
{"id": "done", "type": "browser.wait_for_text", "position": {"x": 420, "y": 700},
"params": {"text": "Request received"}},
{"id": "record", "type": "output.add_row", "position": {"x": 420, "y": 810},
"params": {"row": {"email": "{{ row.email }}", "status": "submitted"}}},
{"id": "end", "type": "end", "position": {"x": 60, "y": 370}}
],
"edges": [
{"id": "e1", "source": "start", "port": "next", "target": "read"},
{"id": "e2", "source": "read", "port": "next", "target": "each"},
{"id": "e3", "source": "each", "port": "body", "target": "open"},
{"id": "e4", "source": "open", "port": "next", "target": "name"},
{"id": "e5", "source": "name", "port": "next", "target": "email"},
{"id": "e6", "source": "email", "port": "next", "target": "send"},
{"id": "e7", "source": "send", "port": "next", "target": "done"},
{"id": "e8", "source": "done", "port": "next", "target": "record"},
{"id": "e9", "source": "each", "port": "next", "target": "end"}
]
}How it works: Read CSV turns the file into a list of objects; For each runs the browser steps once per row (row); Wait for text confirms the form was accepted before the row is recorded.
Make it robust: put the body steps inside a Try / Catch / Finally and, in catch, add a result row with status: 'failed' and {{ error.message }}, so one bad row does not stop the rest. Do not set Retries per run on the task — a retry would submit the earlier rows again.
Variant — one run per row: remove Read CSV and For each, use {{ inputs.row.name }} and {{ inputs.row.email }}, and choose the CSV as the task's Dataset. Each row then becomes its own run, with its own entry in the task's results.
2. Collect a paginated table into Excel
Goal: read every page of a report table in an internal tool and save it as one Excel file.
| Step | Node | Key parameters |
|---|---|---|
| 1 | Go to URL | url: {{ url }} |
| 2 | While | condition: page_no <= max_pages, max_iterations: 1000 |
| 2.1 | ↳ Get table data | locator {"css": "table.report"}, Save to table |
| 2.2 | ↳ Set variable | rows = {{ rows + table.rows }} |
| 2.3 | ↳ Count elements | locator {"role": "link", "name": "Next"}, Save to has_next |
| 2.4 | ↳ If / Else | has_next == 0 → then: Break |
| 2.5 | ↳ Click | the same Next locator |
| 2.6 | ↳ Wait for page load | wait_until: domcontentloaded |
| 2.7 | ↳ Increment | page_no |
| 3 | Write Excel | path: results/report-{{ today() }}.xlsx, rows: {{ rows }}, columns: {{ table.headers }} |
Variables: rows (array, default []), page_no (number, default 1). Input: url, max_pages (number, default 20).
Get table data returns {headers, rows}, with each row as a list of cell texts; passing the header list as columns writes it as the first row of the sheet. max_pages and the loop's max_iterations make sure a "Next" link that never disappears cannot keep the run going. The Collect a paginated table template is the CSV version of this workflow.
3. Watch a page for changes and notify a channel
Goal: every weekday morning, check whether a policy page has changed and post a message if it has.
Start from the Check a page for changes template (inputs url, selector, state_file). It reads the element's text, compares it with the text saved by the previous run in state/page-watch.txt, and sets changed. Then add, before End:
| Node | Key parameters |
|---|---|
| If / Else | condition: changed |
| ↳ then: Send webhook | url: your chat or ticket system's webhook address; json_body: {"text": "Page changed: {{ url }}"}; secret_header: the name of a stored secret, if the receiver checks one |
Publish it, then Scheduler → New schedule: Cron expression 0 8 * * 1-5, your time zone, one profile. Remember that the schedule fires only while Quin Camoufox is open and signed in. If the webhook receiver is on your own network, add its host under Settings → Approved destinations.
4. Daily report from an internal API — no browser
Goal: fetch today's open orders from an internal API and write them to Excel, without opening any profile.
| Step | Node | Key parameters |
|---|---|---|
| 1 | HTTP request | GET https://erp.intranet.example/api/orders, query {"status": "open"}, auth_secret erp_token, retries 2, Save to orders |
| 2 | Validate value | condition: orders.json is not None, message: The API did not answer with JSON (status {{ orders.status }}) |
| 3 | Filter list | items {{ orders.json.items }}, condition number(item.total) > 0, Save to open_orders |
| 4 | Write Excel | path reports/orders-{{ today() }}.xlsx, rows {{ open_orders }}, columns ["id", "customer", "total"], Save to file |
| 5 | Add result row | row {"file": "{{ file }}", "orders": "{{ len(open_orders) }}"} |
Before running:
- store the API token under Variables & Data → Secrets as
erp_token; - add
erp.intranet.exampleunder Settings → Approved destinations — HTTP nodes refuse private and local addresses unless approved.
Because no node uses the browser, the task runs with No profile. See HTTP requests.
Before you automate a site
- Automate systems you own or are allowed to automate, and respect their terms and load: add Delay between iterations when a site asks for a slower pace.
- Keep credentials in secrets, never in workflow fields or files.
- Test on one profile with Run, read the Run log, then publish and run on more profiles.