n8n Compression: unpack files for AI input
Unpack an existing controlled archive and inspect format, binary fields and member count.
Inspect the archive and receiver · Choose Decompress and an output prefix · Inspect members before parsing
At a glance
This guide explains one existing-data task from official node documentation. Establish input and receiver contracts, configure parameters and inspect output. Local checks use public synthetic data without running n8n or calling a model.
Checks from input to delivery
Inspect input
Check fields, formats and receiver prerequisites.
Configure conversion
Use the documented operation and actual fields.
Inspect output
Check count, types and boundaries before continuing.
Inspect the archive and receiver
Start with an upstream binary file and inspect its field, extension and receiver file types. The fixture archive contains a.txt and b.txt with Public A and Public B. Unpacking delivers member files; a later parsing step is needed for AI text input. Establish source, file size and processing permission in the actual workflow.
Choose Decompress and an output prefix
Choose Decompress in Compression and enter the actual Input Binary Field(s), separated by commas for multiple fields. Output Prefix names outputs with an incrementing index. The documented extension detection covers zip, gz/gzip, tar and tar.gz/tgz. tar.gz and tgz extract all members in one step without a separate gzip-layer operation.
Inspect members before parsing
Inspect output binary count, names and content rather than merely the presence of output. Compression offers Zip, Gzip, Tar and Tar (Gzip), but this task uses decompression. Unsupported extensions raise an error rather than normal empty output. Stop on missing members, mismatched format or unsupported receiver input; an archive is not a model text string.
Check a controlled tar.gz locally
The local standard-library check created and read two controlled members in memory, inspecting names and bytes without extracting to disk or running n8n. Verify node prefixes, member fields and downstream parsing separately. This check does not establish archive safety or that AI has read the files.
Article sources
Original editorial content; official descriptions and checking suggestions are distinguished.