構建會先詢問再行動的 AI 智能體
Building AI Agents That Ask Before They Act
文章主張 AI 智能體在採取行動前應先徵求用戶許可,避免未經確認便執行可能影響工作流程或造成實際損失的操作。建議透過意圖核實、參數驗證及行動後檢查建立人機協作流程,並以待批准狀態、按風險確認及逐級工具權限提升可靠性。
I am tired of seeing "autonomous" AI agents that are anything but.
If you have spent much time building with LLMs lately, you have seen the same pattern. A developer gives an agent a tool, a goal, and a loop. The agent starts executing. Then, it hallucinates. It tries to call an API it wasn't supposed to touch, or it executes a sequence of actions that fundamentally breaks the user's workflow.
In the rush to build "agentic" workflows, we are creating systems that act with too much confidence and not enough supervision. We are building digital employees that act before they check if they have permission to touch the steering wheel.
At GodEngine.ai and AskShiva.ai, we decided to take a different path. Our philosophy is simple: AI agents must ask before they act.
The Problem with Total Autonomy
The industry is currently obsessed with the "loop." We want the agent to loop until the task is done.
But in a real-world production environment, a "loop" can quickly become a "financial drain" or a "data nightmare." If an agent is tasked with managing a database or executing marketing workflows, the cost of an error isn't just a bad chat response. It is an incorrect entry in a production database or a botched email campaign sent to a client list.
When I sit down to architect a system for a startup or a developer, I look at the "action boundary." Every time an agent hits a point where it moves from thinking to doing, there must be a checkpoint.
The Human-in-the-Loop Framework
We aren't building assistants that just talk; we are building agents that work. But "working" requires accountability.
To achieve what we are building at GodEngine, we focus on three specific layers of verification:
- Intent Verification: Before an agent triggers a complex sequence, it must present the "Plan" to the user. Not just a vague summary, but a concrete list of steps: "I will do A, then B, then C. Do you agree?"
- Parameter Validation: If the agent is about to execute a function, it should present the arguments it intends to use. If it is about to send an email, it should show the recipient and the body.
- Post-Action Review: The agent reports back on what it did and asks if the result matches the user's expectation.
We call this "Permission-Driven Agency." It is the difference between a chaotic intern and a professional colleague.
Why This Matters for Indian Founders
The AI landscape in India is moving fast. We have the talent, we have the scale, and we are building for a global market. But to win globally, our products must be reliable.
Founders building with AI shouldn't be afraid of the "Agent" label. You shouldn't have to build "guardrails" that are actually just massive, expensive prompt-engineering walls that fail 20% of the time. Instead, you build systems where the agent is designed to realize its own limitations.
When we build at AskShiva.ai, we prioritize this transparency. Users shouldn't have to wonder, "What is the AI doing in the background?" They should feel in control because the agent is constantly checking in.
Engineering for Control
Building this isn't just about changing a prompt. It is about how you structure the integration between the LLM and the tool-calling mechanism.
- The "Pause" State: You have to architect your backend to handle a "pending approval" state. The agent isn't just running a script; it is waiting for an external signal to resume.
- Contextual Confirmation: You don't want to ask for permission for every single irrelevant step. That is annoying. You want the agent to be smart enough to know when an action is high-stakes.
- Granular Tool Access: We treat tools as precious resources. An agent shouldn't have "Write" access by default. It should have "Draft" access, and only through human intervention does it gain "Commit" access.
Real Progress Over Hype
I am not interested in discussing what AI might do in 2030. I care about what we are shipping today in Greater Noida and beyond.
We are building agents that people can actually trust with real tasks. Real workflows. Real consequences. It is much harder to build an agent that asks for permission than one that just runs wild. It requires more logic, more structured state management, and a better understanding of user psychology.
But the "wild" agents? They will fail the moment they encounter a professional environment with high stakes. The agents that survive—the ones that become part of the daily stack for developers and marketers—will be the ones that know when to stop and ask, "Is this what you wanted?"
We are building the engines of the future, but we are building them with a hand on the brake.
Are you building agents that act, or agents that ask? Let me know what you are working on in the replies.
來源:DEV Community · dev.to