LayerProof icon

LayerProof

Automate LayerProof public API workflows from n8n

Slide → Extract Text

AI-generated

Summary

Extract text from a slide image in a LayerProof project.

Inputs

  • projectId (required) — Project identifier. Required to locate the slide within a project.
  • slideId (required) — Slide identifier. Required to target the specific slide for text extraction.
  • nodeId — Optional node ID associated with the slide image. Passed to the API only if non-empty.
  • nodeImagePath — Optional path to the slide image. Passed to the API only if non-empty.

Output shape

The LayerProof API response formatted as an n8n item JSON object. The response reflects the extraction result or status returned by the /extract-text endpoint.

The operation sends a POST request to /api/v2/projects/{projectId}/slides/{slideId}/extract-text with a body containing nodeId and/or nodeImagePath if provided. If both are empty, the request is made with no body. Optional parameters are trimmed and converted to undefined when empty via the optionalString utility.

Examples

Example 1: Extract text from slide 5 in project 123, using a specific node image path.

Set projectId to '123', slideId to '5', and nodeImagePath to the desired path. nodeId may be omitted or left empty.

Links

Discussion