Skip to main content

Multi-step Prompts

Multi-step prompts let you chain a sequence of related questions into a single automated flow — no waiting, no manual follow-up required.

What Is a Multi-step Prompt?

Most prompts are a single exchange: you ask a question, Maestrow responds. A multi-step prompt goes further — each question builds on the previous response, progressively drilling deeper into the data.

This interactive "drill-down" process is powerful for analysis, but it requires you to wait for each result before continuing. Multi-step prompts solve that by letting you define the entire sequence upfront and run it in one go.

See it in action

A full worked example is available in Advanced Prompts — Schedule Frequency Analysis.

Example: Interactive vs. Automated

The Schedule Frequency Analysis example uses four separate prompts in sequence:

Perform a weekly schedule comparison frequency analysis for KM at MLA between datasets ssim_published_2025w45 and ssim_published_2025w46 for Dec 2025 – Jan 2026.

Display the differences for each of the carrier, arrival station and week reported.

How do changes by each carrier impact KM in any way?

Do these changes create opportunities for KM?

Each prompt above requires you to wait for the previous result. To run the same analysis without any interaction — or to schedule it to run automatically — combine them into a single multi-step prompt:

execute this multi-step plan in a non-interactive way:

  1. Perform a weekly schedule comparison frequency analysis for KM at MLA between datasets ssim_published_2025w45 and ssim_published_2025w46 for Dec 2025 – Jan 2026.
  2. Display the differences for each of the carrier, arrival station and week reported.
  3. How do changes by each carrier impact KM in any way?
  4. Do these changes create opportunities for KM?

The Required Keyword Phrase

To trigger non-interactive execution, your prompt must begin with:

execute this multi-step plan in a non-interactive way:

Without this phrase, Maestrow will pause and wait for your input after each step.

Formatting tips

  • Numbering the steps is recommended for readability, but not strictly required.
  • Each step must start on a new line.

Building Your Own Multi-step Prompt

Follow this workflow for the best results:

  1. Develop interactively first — run each prompt individually and verify the outputs are what you expect.
  2. Add the keyword phrase — once you're happy with the sequence, combine the steps and prepend execute this multi-step plan in a non-interactive way:.
  3. Test and refine — you may not need every interim result displayed. Adjust your steps to surface only what matters.
  4. Use relative references if automating — instead of hardcoding dataset names like ssim_published_2025w45 and ssim_published_2025w46, use latest and previous published schedules so the prompt stays valid over time.
Automating multi-step prompts

If you want a multi-step prompt to trigger automatically whenever a new schedule is published, see How to Automate Prompts and Use Viewers.