### Answer
Your issue—where the agent sometimes allows the call to continue after three failed date of birth attempts—relates to prompt enforcement and transition logic. In Retell AI, prompt instructions alone may not always guarantee strict adherence, especially for multi-step verification or when the agent must terminate the call after a specific condition [(1) ](
) [(2) ](
) .
Here are recommendations based on documented best practices:
- Use explicit, step-by-step instructions in your prompt, clearly defining the conditions for each attempt and the requirement to hang up after three failures [(1) ](
) .
- In multi-state agents, ensure that transitions (e.g., from verification to call termination) are defined with precise triggers, not just general instructions [(3) ](
) [(2) ](
) .
- If you're using dynamic variables (like {{peopleDOB}}) , make sure they are passed correctly and referenced explicitly in your prompt logic [(2) ](
) .
- For critical logic (like "hang up after 3 failures") , consider breaking the verification into separate states or nodes, each handling a single attempt and the transition to the next or to termination [(3) ](
) [(2) ](
) [(4) ](
) .
- If the agent sometimes deviates from expected behavior, review the transition logs and test in both chat and v