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
- Five workflows — an order lookup to duplicate in the first lab, an email handler, an app handler, an automation handler and an invoice generator. Each trigger carries a realistic sample input, so Test run shows something working straight away.
- Two scripts — a nightly sync for the schedule, and a small hand-written script for the Script Engine module.
- An email template — a daily digest the scheduled-workflow lab sends.
- 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 two questions, running the automation-handler workflow, 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.
After installing, open and save the Training — Email Handler workflow (choose the Training — PO Intake address): a recipe installs a workflow's email trigger switched off. Then follow the facilitator guide's checklist.
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.
Workflow. Lab 1 starting point (Manual / API trigger → Set Fields Answer); attendees duplicate it. Labs 1, 2.
Workflow. Email Arrives on Training — PO Intake → Set Fields PO number. Inbound email self-study. Open and save after install to switch its trigger on.
Workflow. Runs from the Training — Part Lookup app form; its items fill the results table. Applications self-study.
Workflow. Runs from the Training — Reprint Label automation: IF reason → Respond to Caller, else Stop with Error. Lab 6.
The scheduled script. Demonstrates the near-empty scheduled context. Module 04.
Workflow. Generates Training — Invoice from the trigger input. Lab 5.
Hand-written script for Module 08 (Lab 7): reads context, returns a message. No side effects.
Plain invoice with sample data. Attendees add the line-item loop in Lab 5.
Email template: a count and {key, value} rows. The scheduled-workflow lab (Lab 4) sends Training — Customers to it.
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)