Meta Template Builder for LLM AgentsDemo mode
Model: deepseek/deepseek-chat-v3-0324:free

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

1) Describe

Type what you want to automate (e.g., “Lower bids 20% when ROAS < 3”). Optionally tick channels (Search, DV360, Meta, AMC).

2) Browse tools (optional)

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.

3) Create Spec

Click Create Spec. The planner returns a Routine-style plan + agents preview.

4) Review the spec

Use Spec preview to sanity-check steps, inputs and outputs before generation.

5) Generate & explore

Click Generate. Browse the file tree in Results to preview each file.

6) Preview / copy

Open files in Results and copy content into your Mastra workspace. (ZIP export is disabled in this build.)

Tip: already have a JSON spec? Switch to Upload spec to import a file and optional variables JSON, then generate directly.

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

plan.json

Routine-style ordered steps with typed inputs/outputs and optional conditions.

agents.json

Planner / Executor / Critic / Observer roles and tool permissions.

workflow.ts

Mastra workflow scaffolding that runs the plan and wraps tool calls.

nodes.ts

Typed nodes for each step; easy to extend with your custom logic.

critics/*

Stubs for guardrails (e.g., Δbid ≤ 25%, brand safety).

README.md

Short runbook with setup steps, env vars, and usage.

Upload spec flow

Choose file

Select your JSON spec. The parser will validate & normalize.

Vars (optional)

Provide a JSON object for env-like values, e.g. {"GOOGLE_ADS_CUSTOMER_ID":"..."}

Generate & preview

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.
Start buildingRead about the vision