From 423cc6fb7d5818ec1212ae10c992b8bcc4c449dc Mon Sep 17 00:00:00 2001 From: sftimeless <37782990+sftimeless@users.noreply.github.com> Date: Wed, 13 May 2026 12:04:35 -0700 Subject: [PATCH] docs: add workflow_intent example --- README.md | 2 +- examples/workflows/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aba49b2..aa16f33 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ The SDK's `httpTransport` auto-injects `X-Keel-Workflow-Id` from the context on Amend active workflow intent when estimates change, using `IfMatchVersion` for optimistic concurrency. Complete the workflow when the run finishes so Keel can reconcile actual calls. See the [Keel docs](https://docs.keelapi.com) for lifecycle and plan details. -Workflow intent is available on Business plans and above. A fuller runnable sample lives in [examples/workflows](examples/workflows). +Workflow intent is available on Business plans and above. A fuller runnable sample lives in [examples/workflows/main.go](examples/workflows/main.go). Workflow APIs mirror the rest of the SDK: diff --git a/examples/workflows/main.go b/examples/workflows/main.go index 713fc1c..804068e 100644 --- a/examples/workflows/main.go +++ b/examples/workflows/main.go @@ -91,7 +91,7 @@ func main() { if err != nil { log.Fatal(err) } - fmt.Printf("Workflow %s completed with %d calls\n", completed.WorkflowID, completed.AuthoritativeActualCalls) + fmt.Printf("Final workflow state: status=%s calls=%d\n", completed.Status, completed.AuthoritativeActualCalls) } func valueOrZero(v *int) int {