Generative AI workflow and governance toolkit for procurement, P2P, and supply chain decision support.
npm install supplygen-jouleGenerative AI workflow + governance toolkit for procurement, P2P, and supply chain decision support.
bash
npm i supplygen-joule
`
Quick start (library)
`
import { Workflow, steps, createPrompt, defaultPolicy } from "supplygen-joule";const wf = new Workflow({
name: "p2p-approval",
steps: [
steps.validate({ required: ["requestId", "amount", "currency"] }),
steps.enforcePolicy(defaultPolicy()),
steps.buildPrompt((ctx) =>
createPrompt({
system: "You are a procurement assistant.",
user:
Summarize risk for supplier=${ctx.input.supplierId} and recommend approval.,
context: ctx.input
})
)
]
});const out = await wf.run({
requestId: "REQ-1001",
amount: 12500,
currency: "USD",
supplierId: "SUP-7788",
notes: "Need delivery in 5 days. Prefer compliant supplier."
});
console.log(out.prompt); // Send this to your LLM client
`
Command Line Interface (CLI)
`
npx supplygen-joule prompt --supplier SUP-7788 --amount 12500 --currency USD`
What this package does
- Workflow engine to build P2P / sourcing / risk pipelines
- Prompt builder for analytics + decision support
- Responsible AI helpers (PII redaction, policy gates)
- Telemetry hooks for auditability
MIT License
`
Copyright (c) 2026 Jagadeesh VasanthadaPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
``