Workflows and API: business tables that work on their own

Workflow steps run read-only SQL, write rows into tables and read them back. A question becomes a weekday email report with CSV, and your own systems send rows via webhook or API.

Automations in Obseria with schedule, last and next run, status and template categories
Integrations in Obseria: Slack, Microsoft Teams, PagerDuty and Trello with their connection status
Export view in Obseria with filters, formats, preview and a command and API option
Workflow steps
SQL on Data, Write to table, Read table
Write modes
Append, upsert by key or replace
Reports
Weekday CSV email built from a question
API
Write, delete and export rows, run SQL
Product tour

How your team works with Workflows and API

Views of the Data area itself will follow. Until then, these screenshots show related views of the Obseria platform: workflows, integrations, the query builder, export and notifications.
01 / 05

Automations with schedule, last and next run and status

The screenshot shows the automation list in Obseria. Workflows that read and write Data tables, as well as syncs and models, appear in a list like this with their schedule and status.

  • SQL on Data, Write to table, Read table
  • Schedules as cron in UTC
  • Syncs and models as workflows
Automations with schedule, last and next run and status
02 / 05

A query builder with chart and generated SQL

The screenshot shows the query builder in Obseria. For Data workflows, write and test the query in the SQL editor first, then use it in the SQL on Data step.

  • Read-only SQL
  • Rows and count for the next steps
  • Up to 5,000 rows by default
Learn more
A query builder with chart and generated SQL
03 / 05

Integrations with their connection status

The screenshot shows the integrations page in Obseria. Workflows send their results through connected channels, and reports from Data go out by email with a CSV attachment.

  • Email with CSV attachment
  • Only sent when there are rows
  • Built from a question in Ask
Integrations with their connection status
04 / 05

Export with filters, formats, preview and an API option

The screenshot shows the log export in Obseria. The Data API offers the same for tables: export as CSV with filters, and in the other direction write up to 50,000 rows per request.

  • Write, upsert or replace rows
  • Delete rows by key
  • Run SQL or a saved query
Export with filters, formats, preview and an API option
05 / 05

Notification centre with channel, problem, automation and incident events

The screenshot shows the notification centre in Obseria, including automation events. Failed workflow, sync and model runs show up with their error, so a broken report does not go unnoticed.

  • Run history per workflow
  • Error message of failed runs
  • Same place for syncs and models
Learn more
Notification centre with channel, problem, automation and incident events
Capabilities

Tables that take part in your processes

SQL, tables, syncs and imports in Obseria Data connect to the steps and triggers of Obseria Workflow, so data flows in and reports flow out without manual exports.
Workflows and API

Workflows and API

Tables connect to Obseria Workflow: steps read and write tables, a question becomes a scheduled email report with CSV, and other systems can deliver rows through a webhook workflow that writes to a table.

Data syncs

Scheduled loads from connected systems into tables: ready-made packages for systems such as Stripe, Shopify, HubSpot, lexoffice or Jira, any GET endpoint, or SQL on PostgreSQL and MySQL.

Learn more →
  • SQL editor
  • Data tables
  • File import
How it works

From incoming data to a report in the inbox

Five steps of a typical setup, for example orders from a shop and a daily report for the warehouse.
  1. Example · webhook received
    01

    Receive data

    A webhook, form, mailbox or schedule starts a workflow, or your software sends rows to the API.

  2. Table
    ordersUpsert by order
    1 row written
    02

    Write to a table

    The workflow writes the rows with append, upsert by key or replace; the table is created on first write.

  3. SQL on Data
    03

    Query

    A SQL step reads the table read-only and passes rows and count to the next steps.

    • Only when n > 0
    • Create CSV file
    • Attach to email
    04

    Decide

    A condition checks the result, for example only continue when there are rows.

  4. Mon–Fri
    Daily orders report07:00 UTC · CSV by email
    Sent
    05

    Report

    A file step turns the rows into CSV, and an email step sends it to the people who act on it.

In depth

How Workflows and API works

Workflow steps

Three steps that connect workflows and tables

SQL on Data runs a read-only query over your tables and hands the rows, their count and the columns to the following steps; the default maximum is 5,000 rows. Placeholders such as today's date are filled in before the query runs.

Write to table stores a list of rows, or a single row, in a table: append, upsert by a key field or replace all rows. Column types are detected, and the table is created on the first write. Read table returns rows of a table, optionally filtered with an expression per row, sorted by a field and limited, by default to 1,000 rows.

Together with steps such as Parse Excel, Create file, Send e-mail and Database query for external PostgreSQL or MySQL, these steps cover most data processes without code.

  • SQL on Data: read-only, rows and count
  • Write to table: append, upsert, replace
  • Read table: filter, sort, limit
  • Table created on first write
Reports

From a question to a weekday email report

Any answer in Ask that has SQL can become a workflow with one click. The workflow is built with five parts: a schedule for weekdays at 07:00 UTC, the SQL step with the query, a condition that only continues when there are rows, a step that creates a CSV file, and an email with the file attached and the row count in the subject.

You then choose the email channel and the recipients, adjust the text if you like and switch the workflow on. From then on it runs without anyone opening the dashboard.

Schedules use cron expressions in UTC, so the same pattern works for any other rhythm, such as Monday mornings or the first of each month.

  • Built from an answer with one click
  • Weekdays at 07:00 UTC, adjustable
  • Only sent when there are rows
  • CSV attached, row count in the subject
Data in

Rows from webhooks, forms, mailboxes and your own systems

A webhook trigger gives a workflow a unique URL; an HTTP POST starts the run, and an optional shared secret in a request header keeps strangers out. A form trigger collects entries, a mailbox trigger picks up new emails with their attachments, and a schedule trigger runs on a cron expression in UTC. Each of them can end in Write to table.

Syncs and models in Obseria Data run as workflows as well: syncs load data from connected systems on a schedule, models rebuild a table from a query. Their runs and errors show up in the same run history.

Rows written by workflows count as rows written in Obseria Data, and each executed step counts as a workflow step.

  • Webhook with optional shared secret
  • Form and mailbox with attachments
  • Schedules as cron in UTC
  • Syncs and models run as workflows
API

The Data API for rows, exports and queries

The Data API covers the main operations on tables: write rows (up to 50,000 per request, with append, upsert or replace; tables with a key column default to upsert), delete rows by key, export a table as CSV with filters, run a read-only SQL query or a saved query, and import a CSV, Excel or JSON file of up to 25 MB.

Calls are authenticated with the session of a signed-in user and act within that user's organization and permissions. There are no separate long-lived API keys for the Data API yet. For system-to-system integrations, a workflow with a webhook trigger and Write to table is currently the better route.

  • Write up to 50,000 rows per request
  • Delete rows by key, export CSV
  • Run SQL or a saved query
  • Signed-in user session, no API keys yet
Integrations

Data from the systems around your processes

Workflows connect to business systems and databases, including PostgreSQL and MySQL, and send messages and reports by email or chat.
  • PostgreSQL
  • MySQL
  • Slack
  • Microsoft Teams
  • GitHub
  • Jira
  • { }Webhook
Guide

Data automation explained: workflows, reports and API for business tables

What data automation means for business tables

Data in tables is only half the story. The other half is what happens with it: a report that goes out every Monday, a list of overdue invoices that lands in the accounting inbox, an order from the shop that is stored the moment it arrives, a cleaned customer table that is rebuilt every night. Data automation connects tables with the processes around them, so nobody has to export, copy and send by hand.

Two building blocks make this possible. Workflows read from and write to tables as steps of a larger process. An API lets your own software read and write the same tables directly.

Automated email reports from SQL

The most common automation is the scheduled report: run a query, turn the result into a CSV file and send it by email. Typical examples are open invoices older than 30 days for accounting, yesterday's orders for the warehouse, or new support tickets per category for the team lead.

Three details decide whether such a report is useful or annoying. Send it only when there is something to report, for example only when the query returns rows. Put the most important figure into the subject line, such as the number of rows. And attach the full result as a file instead of pasting hundreds of lines into the email body.

Writing workflow results into tables

Many processes produce data along the way: an approval with its decision and date, an invoice read from an email attachment, a status fetched from a supplier system. Writing these results into a table turns a process into something you can analyse. How many approvals took longer than two days? Which supplier sends the most corrections?

When writing, choose the mode deliberately. Append adds every row, which suits logs and events. Upsert updates rows with the same key and adds new ones, which suits records that change, such as invoices. Replace swaps the whole content, which suits derived tables that are rebuilt from scratch.

Pushing data in: webhook or API?

There are two ways to get rows from your own systems into a data platform. A REST API call writes rows directly into a table. A webhook sends the data to a unique URL, where a workflow receives it, can check and reshape it, and then writes it into a table.

The API is the shortest path when the calling system can authenticate like a user of the platform. The webhook route is often better for system-to-system integrations: the sender only needs a URL and a shared secret, and the workflow in between can validate fields, convert formats and notify someone when something looks wrong.

Reading tables inside a process: lookups and reference data

Tables are also useful as reference data for processes. A price list, a mapping of cost centres to approvers or a list of key accounts can live in a table that a workflow reads at run time. When the list changes, the table is updated once, by import or sync, and every workflow uses the new values from the next run on. Filtering the rows per run, for example only the entries of one customer, keeps the step fast and the following steps simple. This replaces the hard-coded lists that otherwise end up scattered across many automations.

Using SQL inside a workflow

A SQL step inside a workflow turns tables into decisions. A workflow can count the open invoices of a customer before it approves a new order, check whether a contract is already in the table before it creates a task, or collect the rows for a report. The result of the step, the rows and their count, is available to every following step, for example in a condition such as “only continue when the count is greater than zero”.

Scheduled transformations: rebuilding tables automatically

Raw tables from syncs and imports are rarely in the shape a report needs. Customer names have different spellings, invoices and payments sit in separate tables, and the same join is written again in every dashboard. A scheduled transformation runs a query on a schedule and writes the result into a clean table. Dashboards, questions in plain language and workflows then read the clean table instead of repeating the logic.

Common mistakes in data automation

  • Reports nobody reads. Send only when there is something to act on, and to the people who act.
  • No key for upserts. Without a reliable key, repeated writes create duplicates.
  • Silent failures. Check the run history of scheduled workflows and get notified when a run fails.
  • Forgotten time zones. Schedules are often in UTC; 07:00 UTC is 08:00 or 09:00 in Germany depending on the season.

How Obseria Data and Obseria Workflow support this

  • Workflow steps: SQL on Data (read-only, rows and count for the next steps), Write to table (append, upsert by key or replace; the table is created on first write) and Read table (filter per row, sort, limit).
  • Report from a question: from an answer in Ask, one click builds a workflow that runs the query every weekday at 07:00 UTC and emails the result as CSV when there are rows.
  • Triggers: schedule (UTC), webhook with optional shared secret, form, mailbox with attachments, manual start and Obseria events.
  • Syncs and models run as workflows, so their runs and errors are visible in the same place.
  • API: write rows (up to 50,000 per request), delete rows by key, export CSV, run SQL and import files.

Workflow steps and rows written are metered; see the pricing.

FAQ

Questions about Workflows and API

Answers on features, setup and what is not included yet.
Contact us

Workflows and API FAQ

SQL on Data runs a read-only query and passes the rows on, Write to table stores rows with append, upsert or replace, and Read table returns rows with an optional filter, sort and limit. They combine with all other steps of Obseria Workflow.

Ask a question in Ask and click “Build a workflow from it”. The workflow runs the query every weekday at 07:00 UTC and sends the result as CSV when there are rows. Add the email channel and recipients, then switch it on.

Either through a workflow with a webhook trigger, which accepts an HTTP POST with an optional shared secret and writes the rows into a table, or through the Data API, which writes up to 50,000 rows per request.

Not yet. The Data API authenticates with the session of a signed-in user. For system-to-system integrations, use a workflow with a webhook trigger and Write to table.

Schedules use cron expressions in UTC. 07:00 UTC is 08:00 or 09:00 in Germany depending on daylight saving time.

Workflow steps cost $0.50 per thousand after 10,000 steps per month; triggers, waiting and notes are free. Rows written cost $0.50 per million after 1 million rows per month. See pricing.

Contact

See Workflows and API in action

In 30 minutes we show you how Obseria works in your environment and answer your questions on setup, privacy and pricing.

  • No obligation, free of charge
  • Usually answered within one business day
  • Data in the EU
Your contact
Your contactObseria team

* Required field. By submitting, you agree to the processing of your details as described in our Privacy Notice