Lewati ke konten utama

Menguraikan Dokumen di Make

Fungsi modul ini

PDF4me Menguraikan Dokumen menjalankan templat parse yang Anda simpan terhadap PDF di dalam Make skenario dan mengembalikan bidang yang diekstrak siap untuk dipetakan ke modul berikutnya. Salurkan Konten File dari Dropbox, Google Drive, OneDrive, atau HTTP, merujuk pada templat dengan Nama Templat (TemplateId), dan mengarahkan nilai yang telah diurai langsung ke Airtable, Google Sheets, basis data, atau email selanjutnya. Templat tersebut membawa logika ekstraksi, sehingga satu panggilan modul mencakup faktur, kontrak, tanda terima, dan tata letak khusus apa pun yang telah Anda konfigurasi.

Postingan Blog Terkait(1)

Sebelum Anda menjalankan modul ini: buat templat parse di PDF4me Dasbor. Tentukan kunci tangkapan Anda dan pilih Ekspresi Regex untuk pola yang stabil atau JavaScript Ekspresi untuk logika kondisional. Itu Make modul merujuk pada templat tersebut dengan ID Templat. Melihat Siapkan Informasi Penguraian untuk Dokumen Untuk pengaturan lengkap, contoh Regex (INV-\d{6,10}, \d{2}/\d{2}/\d{4}), dan dua pekerja JavaScript Contoh pengklasifikasi ekspresi.

Memverifikasi Identitas Anda API Meminta

Yang PDF4me modul di Make memerlukan validitas KoneksiBuat atau pilih salah satu yang sesuai dengan kebutuhan Anda. PDF4me API kunci agar skenario dapat mengautentikasi dan mengurai permintaan dengan aman.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Nama Templat menerima GUID TemplateId.
Terlepas dari label kolom, tempelkan GUID TemplateId dari dasbor, bukan nama templat yang mudah dibaca manusia. GUID tetap stabil meskipun nama diubah dan merupakan pilihan yang aman untuk skenario produksi.
Ekspresi reguler untuk pola stabil, JavaScript untuk logika kondisional
Aturan pengambilan data terdapat dalam templat. Gunakan Ekspresi Regex untuk nomor faktur, tanggal, jumlah, dan ID pajak. Gunakan JavaScript Ekspresi dengan teks variabel untuk klasifikasi dan aturan cadangan.
Satu templat parsing, untuk setiap platform.
TemplateId yang sama berfungsi di Make, n8n, Zapier, Power Automate, dan langsung REST panggilan. Buat templat sekali, gunakan kembali di mana pun tim Anda melakukan otomatisasi.
Mengurai modul Dokumen di Make

Parameter

ParameterDiperlukanApa fungsinya?Contoh
ConnectionYesPDF4me connection that authenticates the module. Click Add to create one with your API key, or pick an existing connection from the dropdown.PDF4me production
File ContentYesBinary PDF mapped from a previous module: Dropbox Download a File, Google Drive Get a File, OneDrive Download a File, HTTP Get a File, Gmail Get an Attachment, or any module that returns a file.1. Data
File NameYesSource filename including .pdf extension. Usually mapped from the same upstream module File Name output.1. File Name
Template NameYesTemplateId GUID from the PDF4me dashboard. Identifies which parse template (capture keys + extraction rules) the module should apply.12345678-1234-1234-1234-123456789abc

Jenis ekspresi dalam templat parse Anda

Ekspresi RegexPola yang stabil
Nomor faktur (INV-\d{6,10}), tanggal (\d{2}/\d{2}/\d{4}), jumlah ($?\d{1,3}(?:,\d{3})*(?:.\d{2})?). Sekitar 80% kunci pengambilan produksi.
Ekspresi JavaScriptLogika kondisional dan pengklasifikasi
Teks area tangkapan diteruskan sebagai teks; mengembalikan string. Klasifikasi multi-marker, aturan cadangan, normalisasi tanggal. Lihat Siapkan Informasi Penguraian untuk Dokumen untuk dua sampel kerja.

Keluaran

Modul tersebut mengembalikan satu Bundel per eksekusi dengan pengidentifikasi jejak ditambah data kunci/nilai yang diuraikan siap untuk dipetakan ke modul berikutnya.

BidangIsi di dalamnya
Trace-IdUnique identifier for the parse operation. Useful for audit logs and error troubleshooting.
Parsed fieldsOne field per capture key defined in the template (for example invoiceNumber, totalAmount, invoiceDate). Pick them directly in the visual mapper of any downstream module.

Contoh skenario

Pola skenario Make yang umumTypical ways to chain Parse a Document into a Make flow.
Kirim faktur melalui email ke Airtable
  1. Gmail Watch Emails mengirimkan notifikasi saat ada faktur vendor baru.
  2. Iterator berulang melalui setiap PDF lampiran.
  3. Fungsi Parse a Document menjalankan templat Faktur terhadap lampiran biner.
  4. Fungsi "Buat Rekaman" di Airtable akan menulis invoiceNumber, totalAmount, dan invoiceDate ke dalam tabel AP.
Konversi tanda terima Dropbox ke Google Sheets
  1. Dropbox Watch Files akan aktif saat ada unggahan baru di /receipts.
  2. Dropbox Download a File memuat setiap file PDF biner.
  3. Menguraikan Dokumen mengekstrak vendor, tanggal, item, dan total menggunakan templat Tanda Terima.
  4. Fitur Tambah Baris di Google Sheets menambahkan nilai yang telah diuraikan ke pelacak pengeluaran.
Skenario pengklasifikasi + router
  1. HTTP Webhook menerima permintaan masuk. PDF.
  2. Mengurai Dokumen menjalankan templat dengan JavaScript Ekspresi kunci yang mengembalikan tipe dokumen.
  3. Router menghubungkan cabang berdasarkan kolom tipe (faktur/pesanan/kwitansi) ke cabang hilir yang spesifik untuk tipe tersebut.
  4. Setiap cabang mengirimkan nilai yang telah diuraikan ke sistem tujuannya masing-masing.

Pertanyaan yang Sering Diajukan

What goes in the Template Name field?+
Paste the TemplateId GUID from the PDF4me dashboard. Despite the field label, the GUID is the safer production value. It is stable across renames and identical to the value used by the REST API and the other platform connectors.
Where does the file content come from?+
Any upstream module that returns a binary file works: Dropbox Download a File, Google Drive Get a File, OneDrive Download a File, HTTP Get a File, Gmail Get an Attachment. Map both File Content and File Name from the same upstream step.
Do I have to build a template, or can the module parse any PDF?+
Template-based parsing is the supported production mode. Build the template once in the dashboard, then reference its TemplateId. The same TemplateId also works in n8n, Zapier, Power Automate, and direct REST calls.
Can I classify documents at parse time using JavaScript?+
Yes. Inside the template add a JavaScript Expression on a capture key. The capture area text is passed as the variable text and your function returns a string. Use it for invoice vs order vs receipt classification or to normalize date and amount formats.
Where do the parsed field values show up in the next module?+
In the visual mapper they appear as individual fields on the Parse a Document module output bundle, named to match your template capture keys (camelCase). Pick them like any other Make data mapping.
What if my PDF has multiple layouts (different invoice senders)?+
Use a JavaScript Expression key to detect the layout marker, then build one capture template per layout and select the right TemplateId with a Router. Or use Set Up Classify Document upstream to pre-route, then call Parse a Document with the matching template.

Tindakan terkait

Tugas yang sama di platform lain

Dapatkan Bantuan