Your first scheduled report
Who this is for: people who want to see Liitora work end to end, with an AI assistant or by hand.
Before you start: you need:
- an AI assistant connected to Liitora (see Connect your AI assistant), or the Editor or Admin role if you want to do it by hand in the app;
- the address and an API key of a system that answers with JSON over HTTPS, for example an order system;
- a colleague who can approve workflows (the Admin role). If you are the only admin, you can approve your own version after confirming it.
In this tutorial you build a workflow called Weekly open orders report. Every Monday at 07:00 Helsinki time it fetches the open orders from your order system, builds a CSV file of them and emails it to your sales team. When there are no open orders, it sends nothing. It takes about 20 minutes.
1. Ask your AI assistant
Section titled “1. Ask your AI assistant”-
Start a new chat with your assistant.
-
If your assistant shows MCP prompts, pick new-scheduled-report. It asks you what the report contains, when it runs and who gets it. Otherwise write it in your own words, for example:
Create a Liitora workflow that every Monday at 07:00 Helsinki time fetches the open orders from our order system at https://orders.example.com (GET /api/v1/orders?status=open, API key in the X-API-Key header) and emails them as a CSV to sales@example.com. Send nothing when there are no open orders.
-
The assistant first asks how familiar you are with integrations. Pick the answer that fits you. A request as detailed as the one above already shows it, so the assistant may tell you which level it assumed instead of asking.
-
Answer the assistant’s questions. It asks only what your request leaves open, for example who should hear about it when the order system doesn’t answer.
-
The assistant writes the plan back to you: what runs when, which system it reads, what the email contains, what happens on errors and who approves. Check it, correct anything that is wrong and confirm it. The assistant builds nothing before you confirm.
When you have confirmed the plan, the assistant searches the actions first and starts from the tested template scheduled-csv-email-report. The workflow it writes looks like this:
name: Weekly open orders reportdescription: Every Monday morning, fetch the open orders from the order system and email the sales team a CSV of them. Nothing is sent when there are no open orders.on: schedule: - cron: "0 7 * * 1" timezone: Europe/Helsinki manual: truesteps: - id: fetch name: Fetch the open orders from the order system uses: platform/http.request@v1 connections: { api: order-system } with: method: GET url: /api/v1/orders query: { status: open } - id: report name: Build a CSV of the open orders if: ${{ steps.fetch.outputs.json.orders.length > 0 }} uses: platform/csv.build@v1 with: rows: "${{ steps.fetch.outputs.json.orders }}" filename: open_orders.csv - id: email name: Email the report to the sales team uses: platform/email.send@v1 with: to: [sales@example.com] subject: "Open orders: ${{ steps.report.outputs.rows }}" text: The open orders are in the attached CSV. attachments: ["${{ artifacts.open_orders.csv }}"]It uses three built-in actions: http.request calls your system through the connection order-system, csv.build makes the file and email.send sends it. The workflow file format explains every key.
Or build it in the app with New workflow
Section titled “Or build it in the app with New workflow”If the system your report reads is one Liitora already knows (for example Odoo or ServiceNow), you can build the same kind of report without an AI assistant. You need the Editor or Admin role.
- Open Workflows and select New workflow.
- What would you like to automate? Send a regular report is picked for you. Select Continue.
- Where does the data come from? Pick the system and the kind of data, for example Customers. Systems that work are listed first. A system you haven’t connected yet is fine: you connect it on the workflow page later. Select Continue.
- What should the report show, and who gets it? The usual columns are ticked. Personal data, such as email addresses and phone numbers, is left out unless you tick it. Check the address under Send it to and select Continue.
- When should it run? Pick a time, for example Every weekday at 07:00, and who is told if it fails. Select Continue. Liitora saves the draft and tests it on sample data. Nothing real is read or sent.
- Your draft is ready shows what each step found, made or would send in the test. Select Open the workflow.
The workflow’s page opens and its Next step box says what to do next, usually connecting the system and asking a colleague to approve it. Then continue from 5. Try it with a test run.

2. Add the API key yourself
Section titled “2. Add the API key yourself”The workflow needs your order system’s API key. The assistant never asks you to paste it in the chat. Instead it asks Liitora for the secret and shows you a link.
- Open the link the assistant shows you. It looks like
https://<your Liitora address>/s/fill/.... - Sign in if Liitora asks you to.
- Read what the value is for and where to find it.
- Paste the API key into Value.
- Select Save. The page says Saved. Go back to your chat.

If you can’t add secrets yourself, the page lets you send the link to an admin. You can also add the value on the Secrets page, at the top of the list. See Add a secret.
3. Create the connection
Section titled “3. Create the connection”The assistant creates the connection order-system for you with the create_connection tool: the address, the sign-in method (API key in the X-API-Key header) and the name of the secret. It never holds the key itself.
To do it by hand instead:
- Open Connections.
- Select Add a connection.
- Enter the Name
order-system, pick the Environment, and enter the Address, for examplehttps://orders.example.com. - Pick the Sign-in method API key, set Header or parameter name to
X-API-Keyand pick the secret by name. - Save, then select Test connection.
Create it for both Test and Production: a test run uses the test setup, and real runs use production. See Create a connection.

4. Review the draft and its tests
Section titled “4. Review the draft and its tests”The assistant saves the workflow as a Draft and gives you a Review workflow link. Nothing runs yet.
- Open the link, or open Workflows and select the workflow.
- Read the sentence under the name, the four facts (when it runs, the last test, who it sends to, who is told if it fails) and the steps. The box marked Next step says what is still missing, for example connecting the order system or the approval.
- To read more, select Show technical details: Steps shows the order of the steps, YAML the file itself and Tests what the tests check.

The template comes with three test cases. They run each time the workflow is saved, against fake answers, so your real system is never called:
- Emails the sales team a CSV of the open orders: two orders lead to one email with
open_orders.csvattached. - Fails cleanly when the order system is down: the order system answers 503, the run fails at the fetch step and nobody gets an empty report.
- Sends nothing when there are no open orders: the report and the email are skipped.

If you change what the workflow does, ask the assistant to update the tests too. See Read and write workflow tests.
5. Try it with a test run
Section titled “5. Try it with a test run”- On the workflow page, select More, then Test run.
- Leave Input (optional) empty and select Start.
A test run uses your test connections and is marked Test. The assistant can do the same with its test_run tool and tell you what happened.
The email goes out through your company’s email sender. If you haven’t set one up, Liitora sends it from its own address. To send from your own domain, see Set up email senders.
6. Approve and activate
Section titled “6. Approve and activate”A different person than the author approves. If the assistant wrote the workflow with your API token, you count as the author, so ask your colleague.
- Your colleague opens the Approve & activate link the assistant showed, or opens the workflow page and selects the button in its Next step box.
- They read What it does, What changed and What the tests check.
- They add a Comment (optional) and select Approve this version.
- They select Activate. The page says The workflow is active.

Activate stays disabled until every item in the checklist is done. See Approve a workflow.
7. Watch the run
Section titled “7. Watch the run”The workflow now runs every Monday at 07:00 Helsinki time. To see it work today, select Run now on the workflow page and Start. This is a real run with your production connections.
- Open Runs. The newest run is at the top.
- Select it to open the run.
- Open each step to see its Input, Output, HTTP calls and Log.
- Under Files, select Download next to
open_orders.csv. - Check that the sales team got the email.

If a step fails, open it to see why, or ask the assistant “Why did the last run of the open orders report fail?” See Read run logs.