I have the following problem, which is driving me crazy:
An AI agent in a conversation flow setting for a doctor's office is supposed to distinguish whether a patient or another doctor is calling. If another doctor calls, a logic split node is activated that checks the opening hours. If the call is made outside of opening hours, a request is created.
There is a second logic split node with the same function. However, this is only called if a patient calls outside of opening hours and describes an emergency (so a completely different workflow exists here, and a conversation node is inserted in between).
Problem: Test call from another doctor's office; the workflow jumps from the first node to the wrong logic split node (patient workflow - there's actually no direct connection here!). If the same procedure is used in text chat (or if I use the debug function ("regenerate the transition"), the transition to the correct node works.
I've tried different LLMs and fine-tuned transitions. None of them helps.
---
Here's the overview:
How it should work:
1) Doctor calls: Welcome node -> logic split node 1 -> request for practice.
2) Patient calls, emergency: Welcome node -> conversation node (emergency is detected) -> logic split node 2 -> request for patient.
What happens (wrong!):
For a test call from another doctor's office: Welcome node -> logic split node 2 -> request for patient.
For the same conversation in a test chat (correct): Welcome node -> logic split node 1 -> request for practice.
Can you help me?!
Thanks a lot!!!!