All videos

Core concepts · 2:30

The core concepts

Workflows, knowledge documents, databases and apps: what each one is and how they work together.

Transcript

0:01Welcome

This video explains the core concepts of OAIZ, one at a time. Workflows, knowledge documents, databases and apps.

0:12Workflows

A workflow is a set of jobs, linked by events. An event records something that happened. Maya's email to Fjord Living arrives as the event Email received. A job waits for one type of event, then runs one action. Here, an LLM call writes a reply to Maya. When the action finishes, the job can publish a new event, Reply written. That event starts the next job, which saves the reply as a draft for Sam to check.

0:42Knowledge documents

A knowledge document holds written instructions or reference text. Fjord Living keeps its Returns policy in one. Attach it to the job that writes replies. The model reads the policy each time the job runs, so the reply follows it. Chat can follow it too. Tag the document in your message, and Chat reads it along with your question. When the policy changes, you edit the document once. Every job that uses it reads the updated version on its next run.

1:11Databases

Each run works from the event that started it. To keep data from one run to the next, you use a database. A database holds tables. Fjord Living keeps a Refund requests table, with one row for each request. When Maya writes in, a Write to database job adds her request for order 4821 to the table. When she writes again that afternoon, a Query database job finds the row, so the reply can say where her request stands.

1:42Apps

An app is a small web page with its own address, built on your data. Sam describes one in Chat. List the open refund requests, with an Approve button on each. Chat writes the page, and a live preview beside it shows the result. Sam shares it with the team, and they sign in with their OAIZ accounts. When Sam approves Maya's request, the app changes her row. A live workflow that listens for that change sends her the reply.

2:12Go deeper

Workflows do the work. Knowledge documents guide it. Databases keep data between runs, and apps put it on a page for your team. Each concept has its own series under Core concepts, and its own page in the docs.