{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "veryfi-document-markdown",
  "version": "0.1.1",
  "description": "Convert PDFs, images, and Office documents into Markdown with Veryfi.",
  "author": {
    "name": "Veryfi, Inc."
  },
  "extensions": {
    "com.openai": {
      "interface": {
        "displayName": "Veryfi Document Parser",
        "shortDescription": "Convert documents to Markdown",
        "longDescription": "Use Veryfi to convert PDF, image, and Office files into Markdown, with optional page structure and batch URL conversion.",
        "developerName": "Veryfi, Inc.",
        "category": "Productivity",
        "capabilities": [
          "Interactive"
        ],
        "defaultPrompt": "Convert this document to Markdown and preserve its structure.",
        "websiteURL": "https://www.veryfi.com/",
        "supportURL": "https://www.veryfi.com/support/",
        "privacyPolicyURL": "https://www.veryfi.com/privacy/",
        "termsOfServiceURL": "https://www.veryfi.com/terms/",
        "logo": "./assets/veryfi-document-markdown.png",
        "composerIcon": "./assets/veryfi-document-markdown.png"
      },
      "review": {
        "commerce": false,
        "test_cases": {
          "positive": [
            {
              "description": "Convert the publicly shared one-page invoice JPG using its URL. Confirm the Markdown captures the visible invoice identity, parties, charge table, and totals.",
              "prompt": "Convert this one-page invoice image to Markdown, preserving its headings and line items: https://cdn.veryfi.com/receipts/bb27184e5105fcce/bdb7b9bf-cd95-476c-a6ae-2ffdc4832569/c62b1e2b-d666-4814-9772-38f384328114.jpg",
              "tools_triggered": "convert_document",
              "expected_behavior": "The tool is called as convert_document with file_url set to the provided JPG URL. It returns Markdown that accurately reflects the image, including any visible heading, merchant or invoice identity, date, parties, line items, and totals. It does not invent fields absent from the image.",
              "file_attachment_urls": [
                "https://cdn.veryfi.com/receipts/bb27184e5105fcce/bdb7b9bf-cd95-476c-a6ae-2ffdc4832569/c62b1e2b-d666-4814-9772-38f384328114.jpg"
              ]
            },
            {
              "description": "Convert a publicly shared three-page invoice PDF using its URL. Confirm content is returned as Markdown and the document is handled as a PDF.",
              "prompt": "Convert this publicly shared three-page invoice PDF to Markdown: https://cdn.veryfi.com/receipts/bb27184e5105fcce/345f5835-7186-4ba8-8e2e-15da047e2dc9/59edba09-bf8e-4145-9619-a8775b14d7cb.pdf",
              "tools_triggered": "convert_document",
              "expected_behavior": "The tool is called as convert_document with file_url set to the provided PDF URL. It returns Markdown extracted from the PDF, preserving its headings, text, and table structure across the available pages. The response reflects the source document and does not claim unsupported exact content.",
              "file_attachment_urls": [
                "https://cdn.veryfi.com/receipts/bb27184e5105fcce/345f5835-7186-4ba8-8e2e-15da047e2dc9/59edba09-bf8e-4145-9619-a8775b14d7cb.pdf"
              ]
            },
            {
              "description": "Convert both public sample documents in one request using the batch URL input.",
              "prompt": "Convert these two documents to Markdown in one request: https://cdn.veryfi.com/receipts/bb27184e5105fcce/bdb7b9bf-cd95-476c-a6ae-2ffdc4832569/c62b1e2b-d666-4814-9772-38f384328114.jpg and https://cdn.veryfi.com/receipts/bb27184e5105fcce/345f5835-7186-4ba8-8e2e-15da047e2dc9/59edba09-bf8e-4145-9619-a8775b14d7cb.pdf",
              "tools_triggered": "convert_document",
              "expected_behavior": "The tool is called as convert_document with file_urls containing both provided URLs. The response contains content from both documents and keeps the one-page JPG invoice distinct from the three-page PDF invoice; it does not merge their invoice details.",
              "file_attachment_urls": [
                "https://cdn.veryfi.com/receipts/bb27184e5105fcce/bdb7b9bf-cd95-476c-a6ae-2ffdc4832569/c62b1e2b-d666-4814-9772-38f384328114.jpg",
                "https://cdn.veryfi.com/receipts/bb27184e5105fcce/345f5835-7186-4ba8-8e2e-15da047e2dc9/59edba09-bf8e-4145-9619-a8775b14d7cb.pdf"
              ]
            },
            {
              "description": "Request Markdown and page layout data for the three-page PDF. Confirm page structure is returned in addition to Markdown.",
              "prompt": "Convert this three-page invoice PDF to Markdown and include the page layout details: https://cdn.veryfi.com/receipts/bb27184e5105fcce/345f5835-7186-4ba8-8e2e-15da047e2dc9/59edba09-bf8e-4145-9619-a8775b14d7cb.pdf",
              "tools_triggered": "convert_document",
              "expected_behavior": "The tool is called as convert_document with file_url set to the PDF URL and details=true. The result includes extracted Markdown and page structure with page elements and their bounding-box positions, as supported by the tool response.",
              "file_attachment_urls": [
                "https://cdn.veryfi.com/receipts/bb27184e5105fcce/345f5835-7186-4ba8-8e2e-15da047e2dc9/59edba09-bf8e-4145-9619-a8775b14d7cb.pdf"
              ]
            },
            {
              "description": "Limit conversion of the three-page PDF to its first two pages.",
              "prompt": "Convert only the first two pages of this three-page invoice PDF to Markdown: https://cdn.veryfi.com/receipts/bb27184e5105fcce/345f5835-7186-4ba8-8e2e-15da047e2dc9/59edba09-bf8e-4145-9619-a8775b14d7cb.pdf",
              "tools_triggered": "convert_document",
              "expected_behavior": "The tool is called as convert_document with file_url set to the PDF URL and max_pages_to_process=2. Returned Markdown covers pages 1 and 2 only and contains no content from page 3.",
              "file_attachment_urls": [
                "https://cdn.veryfi.com/receipts/bb27184e5105fcce/345f5835-7186-4ba8-8e2e-15da047e2dc9/59edba09-bf8e-4145-9619-a8775b14d7cb.pdf"
              ]
            }
          ],
          "negative": [
            {
              "description": "The user asks for newly written Markdown, not conversion of an existing document. Explain that no document is needed and do not call the conversion tool.",
              "prompt": "Write a Markdown table comparing Python and JavaScript."
            },
            {
              "description": "The user asks to convert Markdown into a PDF, which is the reverse of this plugin\u2019s document-to-Markdown capability. Explain the limitation and do not call the conversion tool.",
              "prompt": "Convert this Markdown into a PDF for me: # Quarterly Report"
            },
            {
              "description": "The user asks for a newly generated invoice template, not extraction from an existing file. Explain that this plugin converts supplied documents and do not call the conversion tool.",
              "prompt": "Create a sample invoice template for my small business."
            }
          ]
        },
        "demo_recording_url": "https://drive.google.com/file/d/1NmUUO5gK-xtgQMaV1kwKw7nukNCYKRXO/view?usp=drive_link"
      },
      "publication": {
        "countries": [],
        "release_notes": "Version 0.1.1: update reviewer test prompts to use Veryfi-hosted PDF and JPG sample document URLs."
      },
      "apps": "./.app.json"
    }
  }
}
