Ocriva Logo

Documents

Zapier Integration

Trigger Zapier workflows automatically when documents are processed.

integrationszapierautomationworkflows

Published: 4/5/2026

Zapier Integration

Automate workflows by connecting Ocriva to 6,000+ apps through Zapier. Every time a document is processed, failed, or a batch completes, Ocriva sends the full event payload to your Zap — no code required.


Prerequisites

  • A Zapier account (free tier works for low-volume testing; paid plans required for high-volume production use)
  • An Ocriva organization with available webhook quota

How It Works

Zapier's Catch Hook trigger listens for incoming HTTP POST requests. Ocriva sends the raw event JSON directly to that URL — no payload template is needed. Zapier automatically parses the JSON structure on first receipt, making every field available as a variable you can map to subsequent Zap steps.

Unlike the Slack integration (which uses a payload template to format the message body), the Zapier template sends the unmodified Ocriva event payload. This means you get full access to all event data — including extractedData, confidence scores, and processing timestamps — and Zapier handles the rest.


Step 1: Create a Catch Hook in Zapier

  1. Log in to zapier.com and click + Create Zap
  2. Under Trigger, search for Webhooks by Zapier and select it
  3. Choose Catch Hook as the trigger event and click Continue
  4. Leave the Child Key field empty (not needed for Ocriva payloads)
  5. Click Continue — Zapier generates a unique webhook URL in the format:
https://hooks.zapier.com/hooks/catch/1234567/abcdefg/
  1. Copy the full webhook URL — you will need it in the next step
  2. Keep this browser tab open; Zapier will wait for a test payload before allowing you to continue

TIP

Do not close or refresh the Zapier tab after copying the URL. Zapier stays in "listening" mode until it receives a test payload, which you will send from Ocriva in Step 3.


Step 2: Configure in Ocriva

  1. Navigate to the Integrations page in the Ocriva dashboard
  2. Find the Zapier template card and click it
  3. Paste your Catch Hook URL into the URL field
  4. Select the events you want to receive — the default is document.processed; you can also add document.failed and batch.completed
  5. Leave the payload template empty — Zapier accepts any raw JSON from Ocriva automatically
  6. Click Create Endpoint

The endpoint becomes active immediately and Ocriva begins delivering events to your Zap.


Step 3: Test & Map Fields

  1. Open the endpoint you just created in Ocriva and click the Test button
  2. Ocriva sends a sample document.processed payload to your Zapier webhook URL
  3. Switch back to the Zapier tab — it should detect the incoming payload and display all parsed fields
  4. Click Continue with selected record in Zapier to confirm the trigger data
  5. Add an Action step to your Zap (e.g., Google Sheets, Gmail, Slack) and use the + icon to map Ocriva fields to the action's inputs:
    • payload__extractedData__invoiceNumber → Google Sheets column Invoice Number
    • payload__status → filter or label field
    • payload__confidence → a numeric column for QA tracking
    • timestamp → a date/time column

NOTE

Zapier replaces . with __ in nested field names when displaying them as variables. For example, payload.extractedData.invoiceNumber appears as payload__extractedData__invoiceNumber in the Zap editor.


Example Workflows

Invoice → Google Sheets

Scenario: A user uploads an invoice PDF. Ocriva extracts the data and fires document.processed.

Zap: Ocriva (document.processed) → Google Sheets (Append Row)

Map these fields to spreadsheet columns:

Ocriva FieldSpreadsheet Column
payload__extractedData__invoiceNumberInvoice Number
payload__extractedData__vendorVendor
payload__extractedData__totalAmountTotal Amount
payload__extractedData__currencyCurrency
payload__confidenceConfidence Score
timestampProcessed At

Failed Document → Email Alert

Scenario: A document fails processing. The team needs to be notified immediately.

Zap: Ocriva (document.failed) → Gmail (Send Email)

Configure the email with payload__fileName in the subject line and payload__error in the body so the recipient knows which file failed and why.


Batch Complete → Slack Summary

Scenario: A batch of documents finishes. Post a summary to the team channel.

Zap: Ocriva (batch.completed) → Slack (Send Channel Message)

Use payload__totalDocuments, payload__successCount, and payload__failedCount to compose the message body.


Raw Payload Zapier Receives

The following is the exact JSON Ocriva sends for a document.processed event. Zapier parses every field automatically.

{
  "eventType": "document.processed",
  "eventId": "evt_1743418800000_prc002",
  "timestamp": "2026-03-31T12:00:03.241Z",
  "organizationId": "org_abc123",
  "projectId": "proj_xyz789",
  "payload": {
    "id": "doc_upl_001",
    "fileName": "invoice_march.pdf",
    "status": "completed",
    "extractedData": {
      "invoiceNumber": "INV-2026-0331",
      "vendor": "Acme Supplies Co.",
      "totalAmount": 15408.00,
      "currency": "THB"
    },
    "confidence": 0.97,
    "processingTime": 3241,
    "processedAt": "2026-03-31T12:00:03.241Z"
  }
}

NOTE

Zapier receives raw Ocriva event payloads with no transformation. This means you get full access to all event data including extractedData, confidence scores, and processing timestamps.


Available Event Data

The table below lists the key fields available in Zapier after a document.processed event. All fields are accessible as Zap variables in subsequent action steps.

FieldZapier VariableExample Value
Event typeeventTypedocument.processed
File namepayload__fileNameinvoice_march.pdf
Processing statuspayload__statuscompleted
Extracted data (object)payload__extractedData{"invoiceNumber": "INV-2026-0331", ...}
Confidence scorepayload__confidence0.97
Event timestamptimestamp2026-03-31T12:00:03.241Z

For the full list of event types and all payload fields, see Event Types & Payloads.


Tips

  • Use Zapier's Formatter step to transform extracted data before sending it to other apps — for example, converting a number to a currency string or reformatting a date.
  • Add a Filter step after the trigger to act only on documents above a certain confidence level (e.g., payload__confidence is greater than 0.90) or matching a specific file name pattern.
  • For high-volume processing, check your Zapier plan's Task limits. Each Zap run consumes one task per action step. Free plans allow 100 tasks/month; consider a Starter or Professional plan for production workloads.
  • For the full Zapier Webhooks reference, see Trigger Zaps from Webhooks.