gotoHuman is a web app where you can approve actions of your AI agents. Keep a human in the loop to review AI‑generated content, approve critical actions or provide input.
pip install gotohuman
Create a review form in gotoHuman adding fields to capture the content to review and the input and feedback you want to collect.
Setup an environment variable with your API key.
GOTOHUMAN_API_KEY=YOUR_API_KEY
Initialize the SDK:
from gotohuman import GotoHuman
gotoHuman = GotoHuman()
Request a new review and include the data for your form's content fields.
Read the docs for more details.
Example request:
review = gotoHuman.create_review("YOUR_FORM_ID")
review.add_field_data("ai_social_media_post", ai_text_draft)
review.add_field_data("ai_image", ai_image_url)
review.add_meta_data("threadId", threadId)
review.assign_to_users(["jess@acme.org"])
try:
response = review.send_request()
print("Review sent successfully:", response)
except Exception as e:
print("An error occurred:", e)
Or asynchronously:
response = await review.async_send_request()