gotohuman


Namegotohuman JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://gotohuman.com
SummaryPython SDK for gotoHuman
upload_time2025-02-20 15:26:01
maintainerNone
docs_urlNone
authorgotoHuman
requires_python>=3.8
licenseMIT
keywords gotohuman ai agents llm automation human-in-the-loop
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">

<img src="./img/logo.png" alt="gotoHuman Logo" width="360px"/>

</div>

# gotoHuman - Human in the Loop for AI workflows

[![MIT License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![PyPI Version](https://img.shields.io/pypi/v/gotohuman.svg?style=flat-square&label=pypi+gotohuman)](https://pypi.python.org/pypi/gotohuman)
[![GitHub Repo stars](https://img.shields.io/github/stars/gotohuman?style=flat-square&logo=GitHub&label=gotohuman)](https://github.com/langfuse/langfuse)
[![Discord](https://img.shields.io/discord/1301983673616171090?style=flat-square&logo=Discord&logoColor=white&label=Discord&color=%23434EE4)](https://discord.gg/yDSQtf2SSg)

[gotoHuman](https://gotohuman.com) 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.

### Install

```bash
pip install gotohuman
```

### Init

Create a review form in [gotoHuman](https://app.gotohuman.com) 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:
```python
from gotohuman import GotoHuman

gotoHuman = GotoHuman()
```

### Send request

Request a new review and include the data for your form's content fields.  
[Read the docs](https://docs.gotohuman.com/send-requests) for more details.

Example request:
```python
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)
```

#### Example review

![gotoHuman - Human approval example](./img/repo-review-example.jpg)

            

Raw data

            {
    "_id": null,
    "home_page": "https://gotohuman.com",
    "name": "gotohuman",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "gotohuman ai agents llm automation human-in-the-loop",
    "author": "gotoHuman",
    "author_email": "hello@gotohuman.com",
    "download_url": "https://files.pythonhosted.org/packages/07/13/20241d034c004d8ddd96b4ed7e483f4228ccd1e8381de45a873541b49642/gotohuman-0.1.4.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\r\n\r\n<img src=\"./img/logo.png\" alt=\"gotoHuman Logo\" width=\"360px\"/>\r\n\r\n</div>\r\n\r\n# gotoHuman - Human in the Loop for AI workflows\r\n\r\n[![MIT License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)\r\n[![PyPI Version](https://img.shields.io/pypi/v/gotohuman.svg?style=flat-square&label=pypi+gotohuman)](https://pypi.python.org/pypi/gotohuman)\r\n[![GitHub Repo stars](https://img.shields.io/github/stars/gotohuman?style=flat-square&logo=GitHub&label=gotohuman)](https://github.com/langfuse/langfuse)\r\n[![Discord](https://img.shields.io/discord/1301983673616171090?style=flat-square&logo=Discord&logoColor=white&label=Discord&color=%23434EE4)](https://discord.gg/yDSQtf2SSg)\r\n\r\n[gotoHuman](https://gotohuman.com) is a web app where you can approve actions of your AI agents. Keep a human in the loop to review AI\u00e2\u20ac\u2018generated content, approve critical actions or provide input.\r\n\r\n### Install\r\n\r\n```bash\r\npip install gotohuman\r\n```\r\n\r\n### Init\r\n\r\nCreate a review form in [gotoHuman](https://app.gotohuman.com) adding fields to capture the content to review and the input and feedback you want to collect.\r\n\r\nSetup an environment variable with your API key.\r\n```\r\nGOTOHUMAN_API_KEY=YOUR_API_KEY\r\n```\r\n\r\nInitialize the SDK:\r\n```python\r\nfrom gotohuman import GotoHuman\r\n\r\ngotoHuman = GotoHuman()\r\n```\r\n\r\n### Send request\r\n\r\nRequest a new review and include the data for your form's content fields.  \r\n[Read the docs](https://docs.gotohuman.com/send-requests) for more details.\r\n\r\nExample request:\r\n```python\r\nreview = gotoHuman.create_review(\"YOUR_FORM_ID\")\r\nreview.add_field_data(\"ai_social_media_post\", ai_text_draft)\r\nreview.add_field_data(\"ai_image\", ai_image_url)\r\nreview.add_meta_data(\"threadId\", threadId)\r\nreview.assign_to_users([\"jess@acme.org\"])\r\ntry:\r\n    response = review.send_request()\r\n    print(\"Review sent successfully:\", response)\r\nexcept Exception as e:\r\n    print(\"An error occurred:\", e)\r\n```\r\n\r\n#### Example review\r\n\r\n![gotoHuman - Human approval example](./img/repo-review-example.jpg)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python SDK for gotoHuman",
    "version": "0.1.4",
    "project_urls": {
        "Documentation": "https://docs.gotohuman.com/",
        "Homepage": "https://gotohuman.com",
        "Twitter": "https://twitter.com/gotohuman"
    },
    "split_keywords": [
        "gotohuman",
        "ai",
        "agents",
        "llm",
        "automation",
        "human-in-the-loop"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "10ad3dfa2cd8ece781d65fa20d18ee1b0561ca334610706737dda429def6f569",
                "md5": "6d2c738e54bc14173ba03c67de4ccbf1",
                "sha256": "2e6c9094c6f4fd4d47af35757e27a184e798af891ef524fb6af1728c313142bd"
            },
            "downloads": -1,
            "filename": "gotohuman-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6d2c738e54bc14173ba03c67de4ccbf1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4521,
            "upload_time": "2025-02-20T15:25:59",
            "upload_time_iso_8601": "2025-02-20T15:25:59.978569Z",
            "url": "https://files.pythonhosted.org/packages/10/ad/3dfa2cd8ece781d65fa20d18ee1b0561ca334610706737dda429def6f569/gotohuman-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "071320241d034c004d8ddd96b4ed7e483f4228ccd1e8381de45a873541b49642",
                "md5": "b322aa3cc42e1c00532765ba369adaf6",
                "sha256": "a1245ff6103ebdacf4aba288d163aaeac6ce5387a5db520715b12c3fbeaf80ca"
            },
            "downloads": -1,
            "filename": "gotohuman-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "b322aa3cc42e1c00532765ba369adaf6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4319,
            "upload_time": "2025-02-20T15:26:01",
            "upload_time_iso_8601": "2025-02-20T15:26:01.845103Z",
            "url": "https://files.pythonhosted.org/packages/07/13/20241d034c004d8ddd96b4ed7e483f4228ccd1e8381de45a873541b49642/gotohuman-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-20 15:26:01",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gotohuman"
}
        
Elapsed time: 0.94128s