gotohuman
Version:
gotoHuman - The easiest way to review agent actions and AI‑generated content.
60 lines (43 loc) • 2.34 kB
Markdown
<div align="center">
<img src="./img/logo.png" alt="gotoHuman Logo" width="360px"/>
</div>
[](https://opensource.org/licenses/MIT)
[](https://github.com/gotohuman/gotohuman-js-sdk)
[](https://github.com/langfuse/langfuse)
[](https://discord.gg/yDSQtf2SSg)
[](https://gotohuman.com) 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)
```
[](https://docs.gotohuman.com/send-requests) 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(["jess@acme.org"])
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()
```
