Files
Arcrun/registry/examples/webhook-to-http/description.md
T
uncle6me-web 922a57fe34 arcrun — AI workflow execution engine (clean history)
Self-hosted 開源:WASM 零件 + recipe + cypher-executor,跑在你自己的 Cloudflare。

此為重建的乾淨歷史起點(移除曾誤 commit 的 GCP SA 金鑰,舊歷史保留在
richblack/arcrun 與本地 backup 分支)。含:
- acr init --self-hosted installer(建 KV/R2 + codeload 拉預編譯 wasm + wrangler deploy + seed recipe)
- recipe push 把關(資料外流提醒 + 打通檢查)
- 19 個正當零件預編譯 wasm(claude_api/km_writer/kbdb_upsert_block 排除:違反 DECISIONS §1)
- CLI / cypher-executor / registry / 完整 SDD

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 15:52:38 +08:00

28 lines
941 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# webhook-to-http
## 解決什麼問題
最小可用範例:用戶 POST 到 arcrun webhookarcrun 把整個 payload 轉發到另一個 HTTP API。
適合測試 arcrun 連通性、做簡單的 API 橋接、event forwarding。
## 怎麼觸發
```bash
curl -X POST https://cypher.arcrun.dev/webhooks/named/webhook_to_http/trigger \
-H "X-Arcrun-API-Key: ak_xxx" \
-H "Content-Type: application/json" \
-d '{"hello": "world"}'
```
## 預期結果
- response 含 `success: true` 跟下游 httpbin 回的 echo
- 下游 URL 收到 `{received: {hello: "world"}, timestamp: "2026-..."}`
## 改成你自己的
- `forward.url` 改你想打的 API
- `body_json` 改你要送的 payload schema
- 需要 auth header → `forward.headers` 加(或用 credentials 機制)
## 學到什麼
- 最簡單的 flow:input → 單一節點
- `{{input}}` 取得 trigger 時 POST 進來的整份 JSON
- `body_json` 結構化 body(不是 string