--- alias: tutorials-sampling-plan-index description: "Learn how to create a sampling plan and configure it in a flow" --- # Sampling Plan A [[user-guide-sampling-plan-index|Sampling Plan]] defines how counter-based and time-based sampling works across production **Steps**. For example, a counter-based plan might require inspection after every 3 or 4 lots, while a time-based plan could trigger sampling every two hours of continuous operation. The **Sampling Plan** specifies: * The **Frequency** based on part count or elapsed time. * The **Contexts** where sampling applies, such as **MaterialProduct**, **MaterialResource**, or **MaterialRecipe**, among others. * The **Steps** to which it is attached in the [[user-guide-create-flow|Flow]]. Sampling evaluates the designated **Sampling Plan** configuration to decide whether the **Material** should go through the optional **Sampling Step** or proceed directly to the next operation. This logic ensures that sampling occurs only when required, maintaining both quality control and production throughput. ## Pages * [[tutorials-create-sampling-plan]] * [[tutorials-sampling-plan-flow-conditions]]