gotohuman
v0.3.6
Published
gotoHuman - The easiest way to review agent actions and AI‑generated content.
Maintainers
Readme
gotoHuman - Human in the Loop for AI workflows
gotoHuman helps you build production-ready AI workflows by making it really easy to include human approvals. Keep a human in the loop to review AI‑generated content, approve critical actions or provide input.
Set up a fully customized review step capturing any relevant data (text, images, markdown,...) and required human input (buttons, checkboxes, inputs,...). Then trigger it from your application whenever human review from your team is needed.
Install
npm install gotohuman
Init
const gotoHuman = new GotoHuman(GOTOHUMAN_API_KEY)Send request
Read the docs for more details.
Pass the review template ID from your gotoHuman dashboard.
Example request:
const reviewRequest = gotoHuman.createReview(GOTOHUMAN_TEMPLATE_ID)
.setReviewData({
exampleField1: value1,
exampleField2: value2,
})
.addMetaData("threadId", threadId)
.assignToUsers(["[email protected]"])
await reviewRequest.sendRequest()Optionally, set config, title, webhook URL, auto-approve flag, or workflow info on the request:
const reviewRequest = gotoHuman.createReview(GOTOHUMAN_TEMPLATE_ID)
.setReviewData({ ... })
.setReviewConfig({ someConfigKey: "value" })
.setTitle("Review AI draft")
.setWebhookUrl("https://your-app.com/webhook")
.setAutoApprove(false)
.setWorkflowInfo({ runId: "abc123" })
await reviewRequest.sendRequest()Example review

