> For the complete documentation index, see [llms.txt](https://help.metaforms.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.metaforms.ai/survey-programming-dimensions/unified-flow-for-survey-programming-dimensions.md).

# Unified Flow for Survey Programming (Dimensions)

## Introduction

The Unified Flow is the next generation of the Metaforms survey programming experience for Dimensions. While the workflow looks different from the Legacy Flow, every change has been made with one goal: reducing the number of manual steps, clicks, and repeated instructions needed to program a survey, so your programmers spend their time on survey logic rather than on operating the tool.

This document outlines the specific improvements and efficiencies your team will gain when transitioning from the Legacy Flow to the Unified Flow for Dimensions. Each section explains how a task worked in the Legacy Flow, how it works now, and the practical benefit of the change.

## Improvements and Efficiencies

### 1. Metadata, Routing, and Quotas Programmed Together, in a Single Step

In the Legacy Flow: Programming a question in Dimensions meant working on the Metadata and Routing sections as separate generation steps, and quotas were created in yet another separate step. You generated the metadata for a question, then separately generated or wrote the matching routing logic, and then set up any related quotas on top of that — and it was your responsibility to keep all of them aligned. A mismatch between these sections was one of the most common sources of test failures.

In the Unified Flow: A single prompt in the AI Assistant generates the metadata, the corresponding routing, and the related quotas together, keeping all of them perfectly in sync. This applies to complex setups as well, including error messages defined in metadata and referenced from routing, piping variables, and randomization logic. Everything is presented for your review, and you accept the changes together before saving and syncing.

What this means for you: Question and quota programming drops from a multi-step, multi-section workflow to one instruction. There is no risk of the metadata, routing, and quotas drifting out of sync, because they are generated together as one coherent change.

### 2. Edit with AI — No Need to Select Code

In the Legacy Flow: To edit a specific section, you had to scroll to and select the exact metadata or routing lines you wanted to change, open the Edit with AI widget, and then provide your instruction inside that widget. The edit only applied to the selection you made, and edits touching both metadata and routing had to be handled separately.

In the Unified Flow: You simply describe the change in the AI Assistant chat box. The AI identifies where in the script the edit needs to be made and applies it — in the metadata, the routing, or both at once — even if the change spans multiple questions. If you want to target a specific place, you can include the question name in your prompt.

What this means for you: No more hunting through the script to find and select the right lines before every edit. You describe what you want; the AI finds where it belongs and updates every affected section together.

### 3. Faster Survey-Wide Edits

In the Legacy Flow: Applying a generic change across the entire survey (for example, a naming convention, a label formatting rule, or a standard error message pattern that affects every question) meant repeating the select-and-edit process section by section, which was slow for large scripts.

In the Unified Flow: A single instruction in the chat applies a generic edit across the whole survey in one pass. The AI locates every place the change is needed — across both metadata and routing — and updates them together.

What this means for you: Global changes that previously took many repeated edit cycles are completed significantly faster, with consistent results across the full script.

### 4. Your Manual Edits Are Understood and Respected

In the Legacy Flow: If a programmer made manual edits directly in the metadata or routing, subsequent AI generations had no reliable awareness of those changes, so the AI could produce output that did not follow the pattern the programmer had established by hand — for example, a client-specific randomization function or a naming convention.

In the Unified Flow: The AI specifically reads your manual edits before each generation to understand what you have changed. When it continues generating, it follows the patterns and conventions you have established in the script — including your preferred functions, variable naming, and error-message style.

What this means for you: Much higher probability that AI output matches your hand-written style and structure. Manual work and AI work blend together instead of fighting each other, reducing rework.

### 5. Fewer Edits on Complex Logic (Assigners, Piping, Loops)

In the Legacy Flow: Complex setups involving assigners and randomization functions, dynamic and poly piping, or looped sections typically required several rounds of generation and correction before the metadata and routing matched the intended behavior.

In the Unified Flow: Because the agent reasons through the requirement and asks clarifying questions before programming, the number of edits required for these complex setups is considerably lower. The first output is much closer to the final result — with error messages placed correctly in metadata, piping variables referenced accurately in routing, and client-approved functions used consistently — and refinements are handled through simple follow-up prompts.

What this means for you: The most time-consuming parts of Dimensions programming — advanced routing logic with assigners, piping, and loops — need noticeably fewer correction cycles, which is where the largest time savings are realized.

### 6. One Chat, Full Context — No Repeating Yourself

In the Legacy Flow: Each generation or edit was an isolated action. If you established an instruction or convention for one question — for example, which randomization function to use or how to structure error messages — you had to repeat that instruction every time you worked on another part of the survey, because the tool retained no memory of your earlier requests.

In the Unified Flow: All programming happens in a single AI Assistant conversation, so the AI has the full context of everything that has happened in the script. If you give an instruction once — for example, a naming convention or a routing pattern for a particular question type — the AI carries that context forward and applies it without being told again.

What this means for you: Less typing, fewer repeated instructions, and more consistent output across the survey. The tool learns your project’s conventions as you go.

### 7. Long Questionnaires No Longer Break Generation

In the Legacy Flow: The generation widget read the entire questionnaire for every generation or edit. For long QNRs, this could cause generation to fail outright because of the document’s size, sometimes forcing manual workarounds such as trimming the file.

In the Unified Flow: The agent reads only the questions and sections it actually needs for the current generation or edit, rather than the whole questionnaire every time. Large, complex questionnaires — including multi-sheet documents and multi-country studies with long brand lists — are processed in manageable parts.

What this means for you: Long questionnaires can be programmed smoothly from start to finish, without the size-related generation failures seen in the Legacy Flow.

### 8. Restructure Your Script with a Prompt

In the Legacy Flow: Structural reorganization of the script — for example, regrouping metadata definitions, reordering routing blocks, or cleaning up redundant commented lines — was either not practically possible or extremely slow, since it had to be done through manual cut-and-paste across the file.

In the Unified Flow: These structural moves are now possible and fast. You describe the reorganization you want in the chat, and the AI restructures the metadata and routing accordingly in a fraction of the time.

What this means for you: Script housekeeping and standards alignment that programmers previously avoided (or did painfully by hand) becomes a quick, prompt-driven task.

### 9. Ask the AI Why — and Keep Asking

In the Legacy Flow: There was no meaningful way to interrogate the tool about its output. If you wanted to understand why a routing block or an assigner was implemented a certain way, you had to reverse-engineer the code yourself.

In the Unified Flow: You can ask the AI directly why a script is implemented the way it is, and then ask follow-up questions for further clarification — all within the same conversation. The AI explains its reasoning with full awareness of your project’s context, including the templates and AI rules applied.

What this means for you: Faster reviews, easier debugging, and a built-in learning resource. Junior programmers can understand advanced Dimensions setups by asking, and senior programmers can validate the AI’s decisions before accepting changes.

### 10. A Head Start on Change Management

In the Legacy Flow: Change Management is not available in the Legacy Flow.

In the Unified Flow: Change Management for Dimensions is built on the same agent architecture as ad-hoc survey programming in the Unified Flow — the same AI Assistant chat, the same accept/reject review workflow, and the same prompt-driven way of working. Every ad-hoc project your team programs in the Unified Flow is, at the same time, hands-on practice for Change Management.

What this means for you: By adopting the Unified Flow for ad-hoc projects now, your team becomes familiar with the platform and is ready to use Change Management effectively.

## Summary

Taken together, these changes remove the most repetitive mechanics of the Legacy Flow — keeping metadata, routing, and quotas aligned by hand, selecting code before every edit, repeating instructions, and manually building complex routing logic — and replace them with a single, context-aware assistant that understands your questionnaire, your script, your templates and AI rules, and your manual edits.

There is a learning curve in moving from direct script editing to a prompt-driven workflow, and we expect the first projects to feel different. But once your team is past that initial adjustment, the Unified Flow consistently requires fewer steps, fewer corrections, and less time per survey than the Legacy Flow — and it is where all new capabilities, such as Change Management, are being built. The Legacy Flow remains accessible throughout your transition, so your team can adopt the Unified Flow at a comfortable pace without any disruption to live work.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.metaforms.ai/survey-programming-dimensions/unified-flow-for-survey-programming-dimensions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
