Back to Recipes
Training

Training — Foundation Seed

Everything the three-hour DataMagik course needs, pre-built

simple ~10 min setup 15 components

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

Training — Customers Lookup Table

Customer code to shipping method. Lab 2.

Training — Watermarks Lookup Table

Watermark store for the resumable-schedule pattern. Module 04.

Training — Part List ODBC Query

A saved query called by name from a script. Table-less on purpose so it runs against any ODBC credential. Lab 2.

Training — Order Lookup Script Primary

The Lab 1 starting point. Reads context defensively and fails with the trigger named.

Training — Email Handler Script

Target of the PO intake. Parses a subject and handles all three attachment shapes. Lab 4.

Training — Part Lookup Handler Script

Bound to the Part Lookup app. Lab 7.

Training — Reprint Handler Script

Runs from the Reprint Label automation. Lab 6.

Training — Nightly Sync Script

The scheduled script. Demonstrates the near-empty scheduled context. Module 04.

Training — Make Invoice Script

Generates the invoice template from script-supplied data. Lab 5.

Training — Invoice Document Template

Plain invoice with sample data. Attendees add the line-item loop in Lab 5.

Training — PO Intake email_inbound_intake

Routes inbound mail to Training — Email Handler. Installs disabled with a fresh address. Lab 4.

Training — Part Lookup Application

Working reference app — a form and a results table bound to a script. Lab 7.

Training — Reprint Label Automation

One question, one script action. Lab 6 adds a second question.

Training — Nightly Sync Schedule

Ships disabled. Use Run now in Lab 3.

Training — Order Assistant ai_assistant

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

Install This Recipe

Sign in to your DataMagik workspace to install this recipe.

Sign In to Install

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)

Tags

trainingonboardinggetting-startedcontext