Zum Hauptinhalt springen

AI-Kreditkartenverarbeitung n8n

AI-Kreditkarte verarbeiten ist ein PDF4me Knotenaktion in n8n das ein Kreditkartenbild liest oder PDF und gibt die Kartendaten in der strukturierten Form zurück JSON Felder. Verwenden Sie es, um Karteninhabername, Kartennummer, Ablaufdatum und ausstellende Bank anhand eines Scans oder Fotos zu erfassen, anstatt diese Daten manuell in ein Formular einzugeben.

Was dieser Knoten bewirkt

PDF4me: AI-Kreditkarte verarbeiten nimmt eine Kartendatei von Binary Data entgegen, ein Base64 Stringoder ein URL und wendet Vision an AI um ein zurückzugeben Kreditkartendaten Objekt, das die einzelnen Kartenfelder enthält. Es akzeptiert PDF, PNG, JPG, Und JPEGDa die Funktion diskrete Werte anstelle eines Textblocks zurückgibt, kann der nächste Workflow-Schritt auf ein einzelnes Feld angewendet werden, und Sie können gezielt auswählen, welche dieser Werte beibehalten werden sollen.

Verwandte Blog-Beiträge
Zu dieser Funktion gibt es noch keinen Blogbeitrag – folgt in Kürze.
Schauen Sie sich in der Zwischenzeit im PDF4me-Blog Tutorials und Arbeitsabläufe für alle Plattformen an.
Besuchen Sie den Blog

Authentifizierung Ihres API Anfrage

Jeder PDF4me Knoten in n8n erfordert eine gültige Anmeldeinformationen zum Verbinden mitErstellen oder wählen Sie einen Eintrag aus, der Ihre Daten enthält. PDF4me API Schlüssel, damit der Workflow Extraktionsanfragen sicher authentifizieren kann.

Wichtige Fakten, die Sie nicht verpassen sollten

Extrahieren ist nicht dasselbe wie Speichern
Kartennummern und Sicherheitscodes sind geschützte Daten. Legen Sie für jedes Feld einzeln fest, welche Daten im Workflow gespeichert werden sollen, und verwerfen Sie die übrigen, bevor sie gespeichert oder protokolliert werden.
Leere Zeichenketten, nicht fehlende Schlüssel
Felder, die das Modell nicht lesen kann, werden zurückgegeben als "" Anstatt zu prüfen, ob ein Schlüssel existiert, sollte man auf leere Werte testen, anstatt zu prüfen, ob ein Schlüssel fehlt.
Bildqualität bestimmt Genauigkeit
Spiegelungen, Winkel und erhabene Ziffern verringern alle die Sichtbarkeit. OCR Zuverlässigkeit. Nutzen Sie die Warnungen Array und Fallback verwendet Zweifelhafte Ergebnisse zur Überprüfung weiterleiten.
PDF4me AI-Process Credit Card-Knoten in n8n, der eine Kreditkartendatei liest und strukturierte Kartenfelder zurückgibt

PDF4me AI-Kreditkartenaktion verarbeiten in n8n

Karte OCR im Vergleich zu einem generischen Dokumentenparser

PDF4me Es werden sowohl eine kartenspezifische Aktion als auch ein allgemeiner Parser bereitgestellt. Die kartenspezifische Aktion kennt das Aussehen einer Karte; dem allgemeinen Parser wird mitgeteilt, wonach er suchen soll.

AspektAI-Kreditkarte verarbeitenAI Dokumentenparser
Field setA fixed card schema returned as creditCardDataWhatever fields you define for the document
Setup effortNone, the card fields are already knownYou describe the fields you want extracted
Best fitPayment cards specificallyAny document shape the card action does not cover
Extending itCustom Field Keys for extras beyond the card schemaFully defined by you from the start

Welche Parameter AI-Kreditkartenabwicklung erforderlich?

Erforderlich: Aktion, Eingabedatentyp, das Feld, das diesem Eingabetyp entspricht, und Kreditkartenname. Benutzerdefinierte Feldschlüssel sind optional.

ParameterErforderlichWas es tutBeispiel
ActionRequiredSelects the PDF4me node action to run. Choose AI-Process Credit Card.AI-Process Credit Card
Input Data TypeRequiredFormat of the source card input. Choose Binary Data (from a previous node), Base64 String, or URL.Binary Data
Input Binary FieldConditionalName of the binary property on the incoming n8n item that holds the card file. Required when Input Data Type is Binary Data. Defaults to data.data
Base64 Credit Card ContentConditionalBase64-encoded content of the card file. Required when Input Data Type is Base64 String.JVBERi0xLjQKJ...
Credit Card URLConditionalPublicly reachable HTTPS URL to the card file. Required when Input Data Type is URL.https://example.com/card.jpg
Credit Card NameRequiredFilename of the input file, used for format detection. Accepts .pdf, .png, .jpg, and .jpeg extensions, so give it the extension the file actually is.card.jpg
Custom Field KeysOptionalList of extra field keys to pull beyond the standard card schema. Leave empty unless the source carries values the built-in fields do not cover.["loyaltyId", "branchCode"]

Ausgabefelder

Der Knoten gibt zurück JSON statt in einer Datei. Die Kartenwerte befinden sich im Inneren der Karte. creditCardData Objekt.

FeldTypWas es enthält
creditCardDataObjectThe extracted card fields. See the field breakdown below.
jobIdStringIdentifier for the AI processing job, useful when reporting an extraction problem.
jobIdExtStringExternal job identifier for third-party integration, null when unused.
successBooleanTrue when extraction completed. Use it to branch error handling.
messageStringHuman-readable status message, carrying success confirmation or error detail.

Felder innerhalb von creditCardData

Alle Felder, die das Modell in einem gegebenen Bild nicht lesen kann, werden als leere Zeichenkette zurückgegeben.

FeldTypWas es enthält
cardholderNameStringName as it appears on the card.
cardNumberStringThe primary account number. Regulated data, so handle deliberately.
expiryDateStringExpiry date, typically MM/YY.
validFromStringValid-from date where the card shows one.
validThruStringValid-through date, often the same as expiryDate.
cvvStringCard security code. The PCI DSS standard prohibits retaining this after authorisation.
cardTypeStringCard type where detected, such as credit or debit.
cardBrandStringCard brand where detected, such as Visa or MasterCard.
bankNameStringBank name printed on the card.
issuingBankStringIssuing bank where it can be determined separately from bankName.
accountNumberStringAssociated account number when the source is a statement rather than a card face.
warningsArrayMessages about data quality or extraction difficulty on this file.
fallbackUsedBooleanWhether an alternative extraction path was used. A useful low-confidence signal.

Wie richte ich das ein? AI-Kreditkartenverarbeitung n8n?

  1. Hinzufügen PDF4me zu Ihrem n8n Workflow und wählen Sie den AI-Kreditkarte verarbeiten Aktion.
  2. In Anmeldeinformationen zum Verbinden mit, wählen Sie Ihre PDF4me Anmeldeinformationen oder klicken Neue Anmeldeinformationen erstellen und fügen Sie Ihren ein API Schlüssel.
  3. Satz Eingabedatentyp Zu Binärdaten (Standard), Base64 String, oder URL und das entsprechende Kartendateifeld bereitstellen.
  4. Satz Name der Kreditkarte mit der korrekten Dateiendung, zum Beispiel card.jpg oder statement.pdfDie
  5. Optional hinzufügen Benutzerdefinierte Feldschlüssel für Werte, die über das Standardkartenschema hinausgehen.
  6. Führe den Knoten aus und lies die creditCardData Objekt aus der Antwort.
  7. Bevor Sie etwas speichern, wählen Sie nur die Felder aus, die Sie tatsächlich benötigen, und löschen Sie den Rest.

Typische Konfigurationen

Workflow-BeispieleCommon n8n workflow patterns using AI-Process Credit Card.
Onboarding ohne erneutes Eintippen
  1. Ein Kunde lädt während der Registrierung ein Foto seiner Karte hoch.
  2. AI-Process Credit Card liest den Namen des Karteninhabers und das Ablaufdatum.
  3. Nur die nicht sensiblen Felder werden verwendet, um das Formular zur Bestätigung vorauszufüllen.
Leite Messwerte mit geringer Konfidenz an einen menschlichen
  1. Der Knoten verarbeitet ein hochgeladenes Kartenbild.
  2. Ein IF-Knoten prüft das Warnungs-Array und das FallbackUsed-Flag.
  3. Alles, was Zweifel hat, landet in einer Überprüfungswarteschlange, anstatt direkt weitergeleitet zu werden.
Ablaufüberwachung in der Datei
  1. Das Kartenbild wird einmalig zum Zeitpunkt der Aufnahme verarbeitet.
  2. Lediglich das Ablaufdatum und der Name des Karteninhabers werden gespeichert.
  3. Ein geplanter Arbeitsablauf kennzeichnet Karten, deren Gültigkeit bald abläuft, um Kontaktpersonen für die Verlängerung zu kontaktieren.
Ordnen Sie einen Kontoauszug einem Konto zu.
  1. Ein Kontoauszug PDF kommt in einem gemeinsamen Briefkasten an.
  2. Der Knoten extrahiert bankName und accountNumber.
  3. Der Kontoauszug wird dem entsprechenden Kontoauszug zugeordnet.

Praktische Tipps

Drop what you do not need immediately
Select the handful of fields the workflow actually uses in the very next node, so the full card payload never reaches storage, logs, or an error notification.
Give the filename its real extension
Credit Card Name drives format detection. Calling a JPEG card.pdf invites a failed or degraded read.
Check warnings before trusting a value
The warnings array and fallbackUsed are the cheapest confidence signal available. Branch on them rather than assuming a clean read.
Test for empty strings, not missing keys
Unread fields return as empty strings, so a key-existence check will pass on a field that holds nothing.
Improve the input before blaming the model
A flat, evenly lit, high resolution capture beats any amount of downstream correction, especially on embossed digits.
Use Custom Field Keys sparingly
The standard schema covers the card face. Reach for custom keys only when the source genuinely carries something extra.

Spickzettel

FeldWert
ActionAI-Process Credit Card
Input Data TypeBinary Data
Input Binary Fielddata
Credit Card Namecard.jpg
Custom Field Keys(empty)
Accepted formatsPDF, PNG, JPG, JPEG
ReturnsJSON with a creditCardData object
CredentialsPDF4me API credential

Häufig gestellte Fragen

What file formats can the node read a credit card from?+
PDF, PNG, JPG, and JPEG. Set Credit Card Name with the matching extension so the format is detected correctly, for example card.jpg for a photo or statement.pdf for a document.
Which fields come back, and why are some empty?+
The creditCardData object carries fields such as cardholderName, cardNumber, expiryDate, validThru, bankName, and cvv. Fields the model cannot read on a given image come back as empty strings rather than being omitted, so check for empty values instead of assuming every key is populated.
Should I store the extracted card number and CVV?+
Treat that decision carefully. A primary account number and security code are exactly the data the PCI Security Standards Council governs through PCI DSS, and the standard prohibits retaining the card verification code after authorisation. Extracting a field in a workflow does not mean you should persist it, so drop what you do not need before writing anything to storage or logs, and confirm your own obligations against the current standard.
What are the warnings and fallbackUsed fields for?+
warnings is an array of messages about data quality or extraction difficulty on that file, and fallbackUsed indicates whether an alternative extraction path was taken. Both are useful signals for routing low-confidence results to a human review branch in your n8n flow logic instead of straight through.
How accurate is OCR on a photographed card?+
Accuracy depends heavily on the source image. Embossed numbers at an angle, glare, and low resolution all reduce it. Check the success flag and the warnings array, and route anything doubtful to manual review rather than trusting a single pass on a photograph.

Verwandte Aktionen

Dieselbe Aufgabe auf anderen Plattformen

Hilfe erhalten