### Answer
If your multiprompt agent is not following the prompt as expected, here are some recommended troubleshooting steps:
- Split large or complex nodes into multiple, focused nodes to improve consistency and control over the agent's behavior [(1) ](
) .
- Ensure each state has a clear, focused prompt and only the relevant functions enabled for that state [(2) ](
) .
- Double-check your transition logic between states—make sure transitions are explicitly defined and use clear trigger phrases when necessary [(2) ](
) [(3) ](
) .
- If an agent is not transitioning as expected, try prompting the user for confirmation before requesting the transition, as this can improve reliability [(3) ](
) .
- Consider using a more capable LLM model for nodes where the agent struggles to follow instructions [(1) ](
) .
- Add finetune examples to guide desired response styles .
- Adjust the LLM temperature if responses are inconsistent .
You can find step-by-step guidance on debugging in the [Debug guide](
) .