浏览器机器人处理简单的事。
Deck 处理其余的。
Deck 为您的应用提供完整的 Computer Use 功能——智能体通过真实界面登录、导航和操作任何软件。一次 API 调用,自动化任何集成都无法实现的操作。
I want my users to be able to connect their telco account to facilitate migration. Use the Deck API so we don't have to build integrations for each provider.
Thought 6s
✓ Read
src/migration/flow.tsx✓ Read
src/api/providers.ts✓ Installed
@deck/api
src/lib/telco-connector.ts
+34 -0
The connector logs into any telco portal, exports the user's plan details, usage history, and account info. Works with AT&T, Verizon, T-Mobile, or any provider — same code path.
src/migration/ConnectProvider.tsx
+28 -5
Done. Users can now connect any telco account from your migration flow. The agent handles authentication, navigates the provider's portal, and exports their data — no provider-specific integration needed.
让您的 IDE 使用 Deck API 构建...
telco-connector.ts
ConnectProvider.tsx
五行代码实现 Computer Use
启动一个虚拟机,指向任意网站,获取结构化结果。就这么简单。
TypeScript
Python
cURL
import Deck from "deck";
const deck = new Deck({ apiKey: process.env.DECK_API_KEY });
// Create a source, open a connection, run a task
const source = await deck.sources.create({
name: "Shopify", type: "website",
website: { url: "https://admin.shopify.com" }
});
const conn = await deck.connections.create({
source_id: source.id,
auth_method: "username_password",
auth_credentials: { username: email, password: pass }
});
const run = await deck.tasks.run(taskId, {
connection_id: conn.id,
input: { order_id: "#4018" }
});
console.log(run.output);
// { refund_id: "R-8821", amount: "$89.99", status: "processed" }
如何开始
每次运行都会启动一个隔离虚拟机。智能体结合视觉、DOM 提取和 API 调用——为每一步选择最佳方法。
1
构建您的智能体配置工作流,定义任务,设置自动化。
2
集成 Deck API嵌入到您的应用中。以编程方式管理身份验证和凭证。
3
智能体运行工作流点击、输入、导航。处理验证码、双因素认证和身份验证。
4
获取结构化输出包含状态、提取数据和截图的 JSON。
为生产环境而建
将 Computer Use 交付给用户所需的一切。
凭证保险库
安全存储和轮换凭证。您用户的密码永远不会接触您的服务器。
Shopify••••••••••Rotated 2d ago
Zendesk••••••••••Active
Salesforce••••••••••Active
会话回放
回放任何智能体会话,逐点击查看确切发生了什么。
▶
1:23 / 3:45
Webhooks 和回调
在完成、失败或智能体需要人工审批时获得通知。
POSTtask.completed200
POSTapproval.required202
POSTtask.failed500
POSTtask.completed200
并行运行
并发执行数百个任务。每个任务都有自己的隔离虚拟机。
6 agents active
Refund #4018
Refund #4019
Lead qualify
Invoice match
Onboarding
CRM sync
结构化输出
定义智能体应返回的数据模式。获取类型化 JSON,而非截图。
{
"status": "completed",
"output": {
"contacts": [
{ "name": "Jane Doe", "email": "[email protected]" }
],
"plan": {
"type": "Business 500",
"renewal": "2026-04-01"
}
}
}
策略与防护栏
定义智能体可以做什么和不可以做什么的规则。设置审批门槛和操作边界。
Allow refunds > $500
Require approval for deletions
Max actions per run50
Allow external navigation