Training — Foundation Seed
Everything the three-hour DataMagik course needs, pre-built
Overview
What this is
The DataMagik Foundation course is a three-hour, hands-on introduction to the platform, organised around one idea: context. Every script is function main(context), and every feature either produces a context or consumes one.
Every lab in that course starts from something that already exists, so attendees are never staring at a blank screen with the clock running. This recipe installs those starting points.
What you get
- Six scripts — an order lookup, an email handler, an app handler, an automation handler, a nightly sync and an invoice generator. Each opens by logging its context, because that is the habit the course teaches first.
- Two lookup tables, with rows — customers with shipping methods, and a watermark table for the resumable-schedule pattern.
- A document template with sample data already in place, deliberately left plain so attendees add the line-item loop themselves.
- An application — a working part-lookup screen to copy.
- An automation with a question, to demonstrate that answers are keyed by the question's full text.
- A schedule, shipped disabled, so attendees can use Run now and see how nearly empty a scheduled context is.
After installing
Everything arrives prefixed Training — . Attendees prefix their own copies with their initials. Install into a training tenant, not production: the labs create and delete things.
Two items the course also uses cannot be cloned by a recipe and must be created by hand: an inbound email intake and an AI assistant. The facilitator guide covers both.
What's Included
Customer code to shipping method. Lab 2.
Watermark store for the resumable-schedule pattern. Module 04.
A saved query called by name from a script. Table-less on purpose so it runs against any ODBC credential. Lab 2.
The Lab 1 starting point. Reads context defensively and fails with the trigger named.
Target of the PO intake. Parses a subject and handles all three attachment shapes. Lab 4.
Bound to the Part Lookup app. Lab 7.
Runs from the Reprint Label automation. Lab 6.
The scheduled script. Demonstrates the near-empty scheduled context. Module 04.
Generates the invoice template from script-supplied data. Lab 5.
Plain invoice with sample data. Attendees add the line-item loop in Lab 5.
Routes inbound mail to Training — Email Handler. Installs disabled with a fresh address. Lab 4.
Working reference app — a form and a results table bound to a script. Lab 7.
One question, one script action. Lab 6 adds a second question.
Ships disabled. Use Run now in Lab 3.
Scoped to order questions, with an EMPTY tool allowlist — registering a script as a tool is Lab 8. Needs an AI provider key on the tenant.
Use Cases
- Running the three-hour DataMagik Foundation course
- Onboarding a new builder without hand-building example artifacts
- Seeing a worked example of every core platform concept in one place
Benefits
- No session time lost to setup — every lab starts from a working artifact
- Each script demonstrates one platform concept and is safe to break
- Installs into any tenant in a few clicks, and everything is prefixed so it is easy to find and remove
Configuration Steps
After installation, you'll configure:
- Database connection (optional)