Automata Respond icon

Automata Respond

Returns data for Automata Provider Webhook requests

Automata Respond

AI-generated

Summary

Return a response from an Automata webhook request using data from the incoming items or specified content.

Inputs

  • Respond With (required) — Select the type of data to return: binary data, first incoming item JSON, custom JSON, text, or no data.
  • Response Body — Specify the JSON object or text string to respond with when 'json' or 'text' is selected as 'Respond With'. Only runs for the first input item.
  • Response Data Source — When responding with binary data, choose to automatically select the single binary input field or specify the input field name manually.
  • Input Field Name — The name of the input field containing binary data if 'Specify Myself' is chosen as the 'Response Data Source'.
  • Options — Additional HTTP response options including response code (default 200), custom response headers, and whether to wrap the response in an Automata success format.

Output shape

a single item containing the response data (JSON object, text, binary buffer, or empty).

Response data is typically delivered as an HTTP webhook reply with customizable headers and status code. When 'wrapAutomata' is enabled, the response body is wrapped as { success: true, data: } to meet Automata consumer expectations. Only the first input item is used for expression-based JSON or text responses. Binary responses must have binary data on the first input item, or an error is thrown.

Discussion