Robotic Process Automation

How to implement human-in-the-loop triggers in AutoGen (Microsoft Agent Framework) workflows?

SC Asked by Scott Fletcher · 20-11-2025
0 upvotes 6,769 views 0 comments
The question

I need a system where AutoGen (Microsoft Agent Framework) handles the majority of a customer support ticket, but pauses and asks for human confirmation if the refund amount exceeds $100. How do I define a conditional trigger that shifts the 'human_input_mode' from NEVER to ALWAYS mid-conversation?

3 answers

0
CY
Answered on 22-11-2025

You can achieve this by using the is_termination_msg or a custom reply function. Instead of just checking for a "TERMINATE" keyword, your function can parse the agent's output for a currency value. If the logic detects an amount over $100, it can return a signal that prompts the UserProxyAgent. You can also set the human_input_mode to "TERMINATE", which only asks for input when the task is done or a specific condition is met. This ensures the high-volume, low-risk tasks flow autonomously while maintaining strict human oversight for sensitive financial transactions.

0
GR
Answered on 23-11-2025

What happens if the human wants to suggest a different refund amount instead of just saying 'yes' or 'no'?

SC 24-11-2025

The human can type a specific instruction like "Limit it to $75 instead." The agent receives this as a new message in the chat history, processes the feedback, and updates its plan accordingly before proceeding.

0
PA
Answered on 25-11-2025

It's basically like a breakpoint where the agent waits for a string input from the terminal or your UI.

CY 26-11-2025

Precisely, and with the newer Studio UI, you can even see the visual state of the conversation while you are providing that input.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

World globe icon Country: Canada

Book Free Session