Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Make scenario building/Mapping
Reference · Make scenario building

Mapping

Part of Make scenario building. Install the skill and your agent reads this page when it needs the depth.

Mapping

The one reference form

A config.mapper value is an IML expression that references an upstream module's output by that module's id — the id assigned in the flat module list:

There is no {{input.x}}, {{trigger.x}}, or bare {{x}}. Those silently resolve to nothing rather than erroring — the most common wrong guess on this surface.

The trigger owns the run's input

Whatever module holds root: "main" receives the run's injected data as its own output bundle: a webhook's parsed payload, or an on-demand scenario's declared interface.input values. Reference it by that module's id like any other: if scenario-service:StartSubscenario is id 1 and the scenario declares an input city, the reference is {{1.city}}. See Subscenarios for why the root of an on-demand scenario has to be a real starter module for this to work at all.

Knowing what is available to map

module_spec(schemas: true) returns outputSchema — the fields one produced item carries, when known statically. That covers most action and search modules.

Some modules' output depends on their own configuration (a Google Sheets trigger's columns depend on the selected sheet; a webhook's fields on what was sent). For those outputSchema is absent and no tool on this surface pre-resolves output field names — module_field_resolve resolves input paths only. Options:

Mixing literals and references

{
  "city": "{{1.city}}",
  "greeting": "Hello, {{1.name}}!",
  "status": "active",
  "processedAt": "{{formatDate(now; \"YYYY-MM-DD\")}}"
}

A fixed value usually belongs in config.parameters if configurationSchema lists it there; mapper is for values that vary per item. Functions and operators are in IML functions.

Gotchas that validation does not catch

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.