feat:367 | Webhooks - Human Input + Callback Support#6263
Open
jchui-wd wants to merge 3 commits intofeat/533-webhook-secretsfrom
Open
feat:367 | Webhooks - Human Input + Callback Support#6263jchui-wd wants to merge 3 commits intofeat/533-webhook-secretsfrom
jchui-wd wants to merge 3 commits intofeat/533-webhook-secretsfrom
Conversation
Optional Callback URL / Secret on the Start node (or x-callback-url header). Webhook now returns 202 immediately and POSTs SUCCESS, STOPPED (HITL), or ERROR to the callback URL, signed with HMAC-SHA256 when a secret is set. Retries 3x with 0s/3s/6s backoff.
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces asynchronous callback support for agentflow webhooks. It adds configuration fields for a callback URL and secret to the Start node, allowing the server to return a 202 Accepted response immediately while processing the flow in the background. Results are then dispatched to the specified URL with retry logic and optional HMAC-SHA256 signing. Feedback focuses on improving error message extraction in the background task by using a utility function instead of direct property access.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
SUCCESS,STOPPED(Human Input),ERRORresult to callback URL when flow is doneVideos
Test Videos Demo
No-Callback-Just-HITL-Proceed.mp4
No-Callback-Just-HITL-Proceed.mp4
No-Callback-60-Second-Delay-Failed.mp4
No-Callback-60-Second-Delay-Failed.mp4
Callback-HITL-Reject.mp4
Callback-HITL-Reject.mp4
Callback-HITL-Happy-Path.mp4
Callback-HITL-Happy-Path.mp4
Screenshot