Hi Folks
Am building an customer support AI assistant which can answer queries based on customer’s data and also take action on customer’s behalf.
One of the action requires an OTP/MFA verification.
So the crew needs to call the OTP tool first to send an OTP to the customer, ask the customer to type in the received OTP and use the OTP in the transaction tool to complete the action.
I tried orchestrating this with multiple tools and prompts. But the crew’s behaviour is erratic. Sometimes it sends the OTP and asks the user, sometimes it sends the OTP and proceeds to call the transaction endpoint with dummy values.
How do i achieve this using crewai?
Is a conversational pattern achievable with crewai or should it be used only for stateless execution?