Submit human-collected input to Fin Procedures via the HITL (Human in the Loop) API.
When a Fin Procedure reaches a HITL step with the API channel enabled, Intercom sends a procedure.hitl_notification.created webhook to your system. Your system collects the required input and responds via the callback endpoint documented here.
This API requires the Procedures HITL API feature to be enabled for your workspace and an OAuth token with the write_conversations scope.
Submit human-collected input to a Fin Procedure that is paused at a Human in the Loop (HITL) step.
When a procedure reaches a HITL step with the API channel enabled, Intercom sends a procedure.hitl_notification.created webhook. Use the callback_url from that webhook payload to call this endpoint with the collected attribute values.
The step_id must match the one from the webhook payload, and attribute_values must include a value for every attribute listed in attributes_to_collect.
This endpoint requires an OAuth token with the write_conversations scope. The admin associated with the token must have access to the conversation.
This endpoint requires the Procedures HITL API feature to be enabled for your workspace.
Intercom API version.
By default, it's equal to the version set in the app package.
The step_id from the webhook payload, identifying which HITL step this response is for.
- The production API serverhttps://api.intercom.io/procedures/{conversation_id}/collect_agent_input
- The european API serverhttps://api.eu.intercom.io/procedures/{conversation_id}/collect_agent_input
- The australian API serverhttps://api.au.intercom.io/procedures/{conversation_id}/collect_agent_input
- Submit boolean and list values
- Submit string value
curl -i -X POST \
https://api.intercom.io/procedures/215473853299345/collect_agent_input \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: Preview' \
-d '{
"step_id": "d5b81f72-adb9-4317-b973-75b3c3624c09",
"attribute_values": [
{
"identifier": "workflow_local_variables.72c5a6b3-3cce-41d8-8e30-14da40791958",
"value": true
},
{
"identifier": "workflow_local_variables.5adb55fb-f549-44a0-8ee9-7e652ad77c25",
"value": "85f00ba7-558c-4b02-a397-6f5c3659941c"
}
]
}'{}