Repository navigation
A Haystack component that prepares a payment request instead of paying: agent proposes, human signs #13205
send21io
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm with send21 (disclosure).
The setup: a pipeline that turns a finished job (a quote, a timesheet summary) into something the client can pay. The last component should produce a pay link, never a payment. send21 prepares payment instructions; the payer signs in their own wallet and the money goes straight to your address.
1. The component
2. Wiring. Connect a parser's
amount/order_idoutputs intoPayLinkMakerwithpipeline.connect(...). The key it uses can create requests but cannot move funds.3. Closing the loop. The pipeline ends at the link. "Paid" arrives later as a webhook: check
X-Send21-Signature(sha256 HMAC of the raw body), then mark the order paid ondraft.confirmed. Ondraft.amount_mismatch(a transfer within 10% of the billed amount), flag it for a person and don't mark it paid.Not an official Haystack integration.
Question: for an event that arrives hours later, do you start a second pipeline from the webhook, or keep state outside Haystack and only use pipelines for the synchronous part?
Webhook receiver and MCP client examples: https://github.com/send21io/send21-examples
send21, info@send21.io
All reactions