AI 智能體不只是聊天機械人:作者讓智能體設定伺服器的實戰教訓
AI agents are not chatbots: what I learned letting one configure my servers
作者在自己的生產環境專案中把 AI 智能體連接至瀏覽器,讓它操作 Cloudflare、HostGator 和 GitHub 控制台,並在 Registro.br 設定 DNS,體會到智能體會直接改動真實環境,而不只是提供答案。
On Sorte Verso, a side project of mine that's already in production (still incomplete, but running well), I work with an AI agent in a well-defined way. I write the requirements and describe how the application should behave. Then I review, test and validate both the code and the running system, and keep adjusting. The agent writes documentation, researches APIs on the web and pushes back on my decisions. Sometimes it wins the argument.
So far, you could mistake that for a very good chatbot. The difference showed up when I went further.
When the agent leaves the chat and enters the control panel
I connected the agent to my browser. From then on it started navigating the Cloudflare, HostGator and GitHub dashboards and doing much of the setup on its own. In Cloudflare and in HostGator's cPanel it went through the configuration screens and got almost everything ready. At Registro.br, the Brazilian domain registry, it set up the DNS records.
A chatbot would tell me how to configure DNS. The agent configured it. It sounds like a detail, but it changes everything that follows: a mistake is no longer a wrong answer on the screen. It's a wrong setting in production.
Where it got it wrong
In cPanel, some things didn't work. The agent read the documentation, concluded that certain features existed, and planned around them. They didn't exist in the environment I actually had. We had to make different decisions. The clearest case was the TLS certificate: in my account, cPanel's certificate section said we didn't have access. The workaround was to generate the certificate on Cloudflare and install it through WHM. Without that option in WHM, the only way out would have been a support ticket with the provider.
That's each provider's choice: it decides how its service works and turns some features off, and the product's generic documentation stops matching that environment.
That's the most instructive mistake I've seen so far. The agent didn't make things up out of nowhere: it trusted the general documentation instead of checking the real environment. An experienced person does the same when in a hurry. The difference is that the agent does it with the same confidence it has when it's right.
The lesson became a rule: before acting, the agent checks the real state (what exists in the panel, which version is installed, which option actually shows up). And a configuration is confirmed by its result (the certificate validates, the DNS resolves), not by a screen that says "saved."
Where the agent doesn't go alone
Three things stay with me today:
- Logging in. I sign in to each dashboard, and only then does the agent take over the browser. It works inside the session I opened, while I watch. No password goes through it.
- Supervision. I follow what it does and sometimes correct what I think it got wrong.
- The decision when reality doesn't match the plan. Like the certificate: the expected feature wasn't available, and choosing the workaround (a Cloudflare certificate installed through WHM instead of a support ticket) was an architecture decision.
It isn't distrust. It's the same logic as any system that can take actions: the more the agent can do, the more it matters what it can't do without someone looking.
Chatbot vs. agent, in practice
| Chatbot | Agent | |
|---|---|---|
| Delivers | An answer | An action in the real world |
| Context comes from | The conversation | The conversation and the state of the environment |
| How it fails | A wrong answer you read and discard | A wrong setting that stays in production |
| Who executes | You, after reading | It, while you supervise |
| What needs controls | Answer quality | Permissions, sessions, approval of high-impact actions, audit |
| How you verify | By reading | By testing the result in the environment |
Where I want to take it
My agent is learning my server setup routine. The next step is asking it to register a domain and prepare the servers end to end.
The bigger goal: a customer signs up for hosting, and an agent prepares everything and publishes a first page built from an interview with the customer, not a stock template. I stay with supervision and with managing the agent.
Getting there safely isn't about a smarter agent. Some engineering has to exist first:
- Login without a borrowed session: the agent's own credentials with the smallest scope (API tokens instead of my browser session), revocable at any time.
- Human approval for what costs money or is hard to undo: domain registration, payments, deletions, DNS changes on a live site.
- Verification by result: each step moves on only when a check passes (the domain resolves, the certificate is valid, the page responds).
- Audit trail: what the agent did, in which dashboard, when, so I can explain it and undo it.
- A way back: how to roll back a configuration that went wrong.
None of that is artificial intelligence. It's the engineering around it, and it's exactly what separates a useful agent from a risk with good conversation skills.
The takeaway
A chatbot changes how you find answers. An agent changes who does the work, and so it also changes where risk, control and accountability live.
In my case the agent does more every week. What doesn't change is that the final decision, and the responsibility for it, stay with me.
Have you let an agent touch something in production? What wouldn't you let it do alone?
來源:DEV Community · dev.to