Chat Confirmation icon

Chat Confirmation

Request user confirmation and execute HTTP request after approval

Request Confirmation

AI-generated

Summary

Request user confirmation via webhook and execute HTTP request upon approval

Inputs

  • message — Message to display to the user requesting confirmation
  • variables — Variables that the AI must fill using $fromAI() function
  • importFromCurl — Whether to import HTTP request configuration from a cURL command
  • curlCommand — Paste your cURL command here. It will be parsed to extract URL, method, headers, and body.
  • httpMethod — HTTP method to use for the action request
  • actionUrl (required) — URL to call when action is confirmed. Use variables like {{ $JSON.variables.recipient }}.
  • actionBody — Request body. Use variables like {{ $JSON.variables }} to pass confirmed variables.
  • actionHeaders — HTTP headers for the action request.
  • timeout — Maximum time to wait for user confirmation in seconds.

Output shape

Each returned item's JSON contains confirmed (boolean), message, variables, variablesMetadata, responseData, webhookUrl, webhookKey, timestamp, actionExecuted (boolean), and either actionResult (object from HTTP response) or actionError (string), plus actionUrl and actionMethod. If confirmation is rejected or times out, actionExecuted is false and actionSkipped is true.

Timeout throws ApplicationError suggesting to POST to the webhook URL with {confirmed: true/false}. Body patterns like {{ $json.variables.key }} are replaced with confirmed variable values before the HTTP request.

Examples

Example 1: Confirm and call API

Set message, actionUrl, httpMethod=POST, and optionally variables/headers/body. The node waits for a POST to the webhook URL with {confirmed: true}, then executes the HTTP request.

Links

Discussion