Learn by example
Fontana ships runnable lessons as read-only catalog Workspaces. Turn on the Learn chip in the Workspaces explorer to list them. A lesson’s description says what it teaches, and its node files explain their statements in comments, the lines that start with #. The newer lessons also carry a panel on the canvas with the steps to run them.
To run a lesson: open it, choose Clone Workspace to get your own copy, then press Run. Open any node: cards are the default, and Code on the left of the header shows Formula text. Change a statement, run again, and compare.
Learn the Fontana Formula Language
Section titled “Learn the Fontana Formula Language”| Lesson | What it teaches |
|---|---|
| 01 Basics | setProp, if, filter, insertRow: writing columns and keeping rows |
| 02 Text | trim, upper, lower, test, replace, substring, split, join, padStart |
| 03 Numbers and rounding | Exact decimals, round, floor, ceil, abs, mod, toNumber, a running total |
| 04 Dates | parseDate with a format, dateBetween, dateAdd, formatDate |
| 05 Lists | split, map, filter, includes, some, every, fanning a list out to rows |
| 06 Lookups | Several wires as named tables, appendRows, find in a lookup table |
| 07 Sort and group | sortBy with desc, groupBy with first, count, sum, min, max |
| 08 Exceptions | raiseException with a field, a key, severities 1 to 5, and raise-and-drop |
| 09 Query and Script alongside formulas | fromQuery in SQL and fromScript in JavaScript, then formula statements |
| 10 Nested lists and each | Objects inside cells with .prop, lists of objects, each |
| 11 Table styling | setStyle, setRowStyle, conditional styles |
| 12 Styles follow the data | Styles that travel with a value through later nodes |
| 13 Templates | fromTemplate per row and for the whole table, typed columns from a JSON render |
| 14 More functions and column types | Number aggregates, roots and logarithms, date parts and ranges, list slicing, setType, rowKey, unsetProp |
Learn connecting workflows to APIs and email
Section titled “Learn connecting workflows to APIs and email”| Lesson | What it teaches |
|---|---|
| 01 Read from a REST API | fromApi once for the node and once per row, with .path, .query, .records, .returns |
| 02 Send rows to a REST API | toApi per row with the returned id, and for the whole table in batches |
| 03 Query a GraphQL API | fromGraphql with variables, once and per row, and a toGraphql mutation per row |
| 04 Send an email | toEmail for the table with an attachment and a templated body, and per row |
| 05 Start a workflow from an email | fromEmail with an inbound email trigger, reading the message as a row |
Lessons 01 to 03 call free public test APIs that need no key, so your deployment must allow outbound HTTPS to them. Lesson 04 sends nothing until you put in your own address and switch its send statements on, as its panel explains. Lesson 05 needs inbound email switched on for your deployment.
See Call REST and GraphQL APIs and Send and receive email.
Learn AI generation in workflows
Section titled “Learn AI generation in workflows”| Lesson | What it teaches |
|---|---|
| 01 Classify rows | eachRow().fromAi with typed .returns columns |
| 02 Extract fields from free text | Typed fields (a number, a date, a currency code) read out of sentences |
| 03 Summarise a whole table | One fromAi call over all rows |
| 04 Check the AI’s answer with a formula | Checking an AI answer with formula statements and exceptions |
| 05 One row in, many rows out | .oneToMany(), instructions read from a file, and context("name").fromAi |
Each run of an AI lesson makes AI calls on your deployment’s default model. See Ask AI in a workflow.
Learn extracting data from sources
Section titled “Learn extracting data from sources”| Lesson | What it teaches |
|---|---|
| 01 Rows inside an envelope | A JSON file whose rows sit inside an object, with splitRows |
| 02 Envelopes inside envelopes | Splitting twice for rows two levels down |
| 03 Multi-sheet Excel | One sheet as a table, and stacking sheets |
| 04 XML statements | The repeating element as rows |
| 05 FIX messages | One row per message, one column per tag |
| 06 SWIFT MT messages | Taking packed fields apart |
| 07 Bank statements (OFX) | Typing transaction fields |
| 08 Fixed-width text | Field widths and names for fixed-width records |
| 09 PDF documents | Text and tables found in a PDF |
| 10 A table inside a report sheet | subgrid with an A1 range and a two-row header |
See Supported formats.
Related
Section titled “Related”- Formula node: node files and every statement
- Formula: the formula language