Senrok 为企业构建定制 AI Agent,无缝集成 Salesforce CRM。架构围绕 webhook 事件驱动设计,确保实时数据同步与极低延迟。
系统基于 Salesforce 平台出站消息(Outbound Message)与自定义 Webhook 接收端。每条 payload 包含对象变更的完整字段快照,通过 HMAC-SHA256 签名验证来源。
速率限制采用令牌桶算法:每个 org 允许 1000 请求/5分钟,突发请求进入死信队列等待重试。增量同步通过上次修改时间戳(LastModifiedDate)游标实现,失败时自动回退全量同步。
数据同步链路使用 Apache Kafka 缓冲写入,确保最终一致性。冲突检测以记录版本号(SystemModstamp)为准,老版本自动丢弃。
每个 AI Agent 映射到 Salesforce 中的集成用户,权限通过 Permission Set 分配,遵循最小权限原则。仅开放对象读取、写入 Webhook 回调所需的字段。
认证采用 OAuth 2.0 JWT Bearer Flow,私钥由 Senrok 硬件安全模块(HSM)存储。所有 webhook 端点强制 IP 白名单与 TLS 1.3 加密。
审计日志记录每一次 API 调用和权限变更,支持 Salesforce Event Monitoring 导出,满足 SOC 2 合规。
Senrok 部署多层缓冲:本地内存队列 + Redis 缓存 + 死信队列。当速率接近限制时,系统自动降级为批量异步写入,并延迟 webhook 确认。
采用至少一次投递语义:回调失败后进入指数退避重试队列(最多 5 次,间隔 1 秒至 1 分钟)。超过重试次数后触发全量增量同步补偿任务。
Salesforce 侧通过 Field-Level Security(FLS)隐藏敏感字段;集成用户 Permission Set 仅授权必需字段。Senrok 在 webhook 处理层进一步执行数据脱敏(如 PCI 数据截断)。
We build production-ready, highly observable agentic systems engineered for enterprise scale. No black boxes, no magic—just systematized workflows with systemic safeguards.
We don't build fragile wrappers. Complex decisions and exceptions are automatically routed to your team for approval, ensuring zero unverified actions in production.
Every AI-generated output is validated against deterministic, programmatic rules before execution, guaranteeing structural integrity and compliance.
Our architecture records every state change, agent reasoning step, and user interaction, providing complete observability into your automated workflows.
Built for enterprise scale. We optimize for high-throughput, low-latency execution using edge infrastructure and efficient state management.