Using the Meta Template Builder
Turn a plain-English description into a runnable Mastra template using Routine-style planning. This guide covers the flow, outputs, and common gotchas.
Quickstart
Type what you want to automate (e.g., “Lower bids 20% when ROAS < 3”). Optionally tick channels (Search, DV360, Meta, AMC).
Search or filter by channel; click Insert to drop a tool hint into your prompt. You’ll compose the final ask in the Describe box.
Click Create Spec. The planner returns a Routine-style plan + agents preview.
Use Spec preview to sanity-check steps, inputs and outputs before generation.
Click Generate. Browse the file tree in Results to preview each file.
Open files in Results and copy content into your Mastra workspace. (ZIP export is disabled in this build.)
Sample prompt
Paste this into Describe task to see an end-to-end plan:
Lower Google Ads bids by 20% for campaigns where yesterday's ROAS < 3. Pull GA4 metrics, compare to threshold, then patch bids. Log changes.
You can add tool hints like Use tool: ga4Pull, Use tool: computeCheck, or Use tool: gAdsUpdateBid—the planner will adapt.
What the builder generates
Routine-style ordered steps with typed inputs/outputs and optional conditions.
Planner / Executor / Critic / Observer roles and tool permissions.
Mastra workflow scaffolding that runs the plan and wraps tool calls.
Typed nodes for each step; easy to extend with your custom logic.
Stubs for guardrails (e.g., Δbid ≤ 25%, brand safety).
Short runbook with setup steps, env vars, and usage.
Upload spec flow
Select your JSON spec. The parser will validate & normalize.
Provide a JSON object for env-like values, e.g. {"GOOGLE_ADS_CUSTOMER_ID":"..."}
Same outputs as the describe flow — open files in Results and copy into your workspace.
Troubleshooting
- No tools visible? Clear the search box, or click a channel chip (Search, DV360, Meta, AMC) to filter quickly.
- Rate-limited? Try again in a minute. If it persists, shorten the prompt or remove extra examples.
- Dark/light theme? Use the toggle in the top bar. The UI uses system fonts and Tailwind utilities.