Document Classifier#

Integrate this step into your Zapier workflow to analyze the text of a document using AI and classify it into categories like invoice, order, or industry. This feature is useful for quickly identifying the origin of a document and can be customized with specific rules.

Zapier Step

Input#

Name

Description

Required

Input Document URL

Provide the URL of the input PDF document or a filetoken:// link from PDF.co Built-In Files Storage. For other cloud services like Google Drive or Dropbox, ensure the link is publicly accessible.

Yes

Custom Classification Rules

Define classification rules in CSV format, if required. Format per row: classname,logic,keyword1,keyword2. Example: Amazon,AND,Amazon AWS,AWS Invoice. Refer to PDF Classifier for detailed instructions.

No

CSV Rules URL

Provide a URL to a CSV file containing custom classification rules. The format for each row should be: classname,logic,keyword1,keyword2. Example: Amazon,AND,Amazon AWS,AWS Invoice.

No

Enable Case Sensitive Custom Rules

Indicate if the keywords in the custom rules should be case sensitive.

No

Custom Profiles

Enter additional options for the classification process in a JSON string format. See API Profiles for more information.

No

Source PDF URL & Google#

Note

When using Google Drive, it’s typically recommended to choose the File option. For more advanced file integration techniques, see Integrating File Sources with pdf.co.

Google File


Output#

Name

Description

url

The temporary URL on the PDF.co file server.

classes

An array containing possible category of input document.

outputLinkValidTill

A timestamp which indicates how long the url will be available for.

error

Details of any errors (if any).

status

The response status code. If all good this will be 200.

jobId

The unique identifier for the job.

credits

The credits spent on the process.

remainingCredits

The credits left on your account.

duration

The time it took for the process.