Customer Support Bot - How to add confirmation from customer, not agent inside (which like admin role) by interrupt_before in LangGraph #4152
Replies: 3 comments 2 replies
-
After many attempts, I find it's also very hard to add confirmation in agent flow or agent chain. User input: transfer request like "Transfer to Lucy 100 for happy birthday" I failed to set up a flow or chain like that, hope someone could give me some guidance. |
Beta Was this translation helpful? Give feedback.
-
@weiminghuaa I want to implement similar workflows. Can you share how to build? |
Beta Was this translation helpful? Give feedback.
-
the document said you can create a api to ask customer approve and make the interrupt continue. another way is to abandon the use of interrupt from langchain, set up intructions in your prompt to implement all flows. i choose the later one. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I reviewed the customer-support.ipynb sample, and it closely aligns with what I need. It seems to be a powerful tool for building an AI customer agent for my business.
However, I noticed that in the sample, all confirmations are handled within the agent itself. Some operations in my use case require explicit customer confirmation, but based on the guide, it appears that only the agent (or an admin) can approve these actions, rather than delegating the confirmation back to the customer.
For example, some operations—such as transferring money to a friend—require explicit user confirmation before being executed. Ideally, the agent should generate a bill or transaction request, prompt the user for confirmation, and only proceed once the user approves it.
ps: I have an idea to design the process in agent flow, instead of using interrupt_before in LangGraph.
Beta Was this translation helpful? Give feedback.
All reactions