Prepare
- n8n
- Make
- Python SDK
- JS SDK
- HTTP
In your n8n workflow, add our verified gotoHuman community node.Read more in our n8n integration guide.
Send request
- n8n
- Make
- Python SDK
- JS SDK
- HTTP
Select the review template you created in gotoHuman.It will automatically load the fields you added to your review template and allow you to enter or map values to them.Read more in our n8n integration guide.
Request attributes
formId
The formId is the ID of your review template. You can find it in the template details and the example request.
fields
When creating your form/review template in our web app, you add different components to show dynamic content or collect user input. These added components determine the payload that you need to send with your request. You can find the expected format in the example request shown for your created review template (click “API Request”).
Fields that you don’t send any value for will be hidden.This is handy for optional fields, but also if you need a varying number of a type of field, e.g. 1-n text fields. Then add n fields and just send values for the ones needed during this run.For text-based fields you might in some cases not have a value for a field, but still want it to be shown to allow user input. To do that, simply send an empty string.
title
Set a custom title for the review request. This title is displayed in the Agent Inbox and in notification emails and Slack messages, making it easier for reviewers to identify pending reviews.
This overrides any title configured in the review template field settings.
The title can also be set as a metadata property
_gthTitle when using integrations like n8n.meta
Add additional data to your request that you will receive back in the webhook. Read more below.
assignTo
Assign reviewers from your organization. Read more below.
updateForReviewId
When allowing reviewers to request a retry (AI Retries / Prompt Edits), you can update the review by referencing its’ ID.
webhookUrl
In most cases you’ll enter a static webhook URL for your agent. But in some cases you might want to pass along a dynamic webhook URL with each request using this attribute (This is what the send-and-wait node of our n8n integration does under the hood).
autoApprove
Set to true to automatically approve the review request. This is useful to keep monitoring even autonomously acting agents in gotoHuman and to easily switch back to human reviews at any time (think agent, prompt, or model updates).
This can also be set at the template level or via the metadata property _gthAutoApprove.
Example request
Given that a urlLink (id:linkedin) and a text component (id: aiDraft) was added to a review template with ID “abcdef12345”, a request might look like this:
- n8n
- Make
- Python SDK
- JS SDK
- HTTP
Our n8n node will automatically show you the necessary inputs according to your review template.Read more in our n8n integration guide.
Images / Videos
For images and videos—including CDN storage, URLs, base64, file uploads, and image editing—see Images and videos.Add additional meta data
When a user is done reviewing and submits the form, you will receive a webhook. For convenience, you can add additional data to your request that you will receive back in the webhook. This could be an ID of your workflow run or of a conversation thread. It could look like this:- n8n
- Make
- Python SDK
- JS SDK
- HTTP
When using our sendAndWait n8n node, you shouldn’t need to add meta data as you will still have access to data from previous nodes in the same workflow run.
Assign reviewers
To send a review request only to selected users of your team, add a list of email addresses of those users. Use the email address used when signing up for gotoHuman.You can also assign reviewers at the template level for all requests from that template. Note that any request-level assignment will take precedence over the template assignment.
- n8n
- Make
- Python SDK
- JS SDK
- HTTP
Our n8n node shows a field
Assigned Users. Select All Users or alternatively Only selected users and map or enter their email addresses.Read more in our n8n integration guide.Selectable options & default values
When using Buttons, Checkboxes, or Dropdowns in your review templates, you can either define a fixed set of selectable options or send dynamic options with each request. Either way, you can also set default values that will be preselected.- n8n
- Make
- Python SDK
- JS SDK
- HTTP
Read our n8n integration guide about how to send dynamic options and defaults.
Workflow metadata
If your workflow includes manual triggers and/or multiple review steps, you can send workflow metadata, so we can provide reviewers with an overview and navigation for each run of the workflow.
- n8n
- Make
- Python SDK
- JS SDK
- HTTP
In the Meta Data field, enter JSON with a field
_gthWorkflow holding the workflow information:runIdis a unique identifier for the current run of the workflow. You need to incl. the samerunIdin each review request of the same run to link them together. If you incl. a workflow object but norunId(even{}), and also for manual triggers, we’ll create a new runId for you and return it in the review response asworkflowRunIdso you can reference it in your subsequent review requests.runNameis an optional name identifying the current run of the workflow (for display purposes). You can set or overwrite it in any of your review requests during a run.prevStepsis an array of reviewIds of any previous gotoHuman review step(s) (omit for first step). We need this to know how the steps are linked together.
Response
Our API responds with a200 OK incl. a link to the pending review:
extReviewerLinks property is included when external reviewers have been added/assigned to the review request.