Human Collaboration Agent

The Human Collaboration agent routes decisions to human reviewers, pausing the workflow until a human provides input. It supports three interaction modes: conversational (free-form chat), standard form (predefined fields), and custom form (builder-defined fields and layout).

This is the primary mechanism for human-in-the-loop (HITL) workflows on the Ema platform.

Use Cases

  • A workflow step requires human judgment before proceeding (approvals, quality review, sensitive decisions).
  • You need a human to provide additional information that the AI Employee cannot determine on its own.
  • Regulatory or policy requirements mandate human oversight for certain actions.

Inputs

InputTypeDescription
request_messageTextThe message shown to the human reviewer describing what they need to do.
contextText(Optional) Additional context for the reviewer (e.g., the AI-generated draft, extracted data).
form_fieldsJSON(Custom form mode) Definition of the form fields the reviewer must fill out.

Outputs

OutputTypeDescription
approvedBooleanWhether the reviewer approved the request.
reviewer_responseTextThe reviewer's response text (conversational mode) or form data (form modes).

The Human Collaboration agent produces two branch edges -- approved and rejected. You must handle both paths in your workflow. Failing to handle the rejected path leaves the user without a response.

Configurations

ParameterDescriptionDefault
modeInteraction mode: conversational, standard_form, or custom_form.standard_form
assigneesList of users or groups who can respond to the request.Workspace default reviewers
timeout_hoursHours before the request times out.24
timeout_actionWhat happens on timeout: auto_approve, auto_reject, or escalate.escalate
instructionsInstructions shown to the reviewer alongside the request.None

Interaction Modes

Conversational: The reviewer sees a chat interface and can ask clarifying questions before making a decision. The AI Employee responds to the reviewer's questions using workflow context.

Standard Form: The reviewer fills out a predefined approval form with approve/reject and optional comments.

Custom Form: The builder defines form fields (text, dropdowns, checkboxes, dates) that the reviewer must complete. The form data is returned as structured output.

How to Use This Agent

An email-sending workflow with human approval:

trigger -> knowledge_search -> respond_to_query -> human_collaboration
 -> [approved] -> send_email -> workflow_output
 -> [rejected] -> fixed_response("Your request was reviewed and declined.") -> workflow_output
  • Response Validator -- for automated validation that can reduce the need for human review.
  • Categorizer -- route only sensitive categories to human review.

Last updated: Jul 3, 2026