Topic A redirects to Topic B to calculate a shipping quote. Topic B needs weight and destination from A and must return quoteAmount to A. How should variables be designed?
Select an answer to reveal the explanation.
Short Explanation
Child topics take inputs and return outputs — like a function call with parameters and a return value. You pass weight and destination into the shipping-quote topic, then read quoteAmount when it finishes. Environment variables aren't per-conversation shipping weights.
Full Explanation
Topic input/output variables support modular design for redirects/reusable topics. Define inputs for weight and destination on the shipping-quote topic, set them when redirecting, and read quoteAmount after completion. Environment variables for weight pollute config and share session data. Encoding weight in an icon filename or storing destination only in browser local storage is invalid. Exam tip: redirect + inputs/outputs = modular topic architecture.