setStepCriteria
Define when this step is considered complete. The AI evaluates this description against the conversation state to determine whether to advance.
Parameters
criteria
Natural-language description of completion conditions.
Returns
Step — Self for method chaining.
Be specific. Write “Customer has provided their full name AND phone number” rather than “Information collected”. Include failure conditions when appropriate: “Verified OR after 3 failed attempts”.