• JSON
  • HUMAN
  • DB
  • LOG

How to extract structured data from documents with your agent

Connect Affinda to your AI client once. After that, you can point your agent at any document to pull out the exact data points you need.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I turn my PDFs and images into JSON?

Your agent uses Affinda to read the files and map the content into structured JSON. You'll get clean, usable data ready for your spreadsheets or databases.

Where your data lands.

The results of extraction.

The extraction process moves data from raw files into these specific outcomes.

JSON

Structured JSON output

Your agent converts the document content into a clean JSON object. This makes the data ready for immediate use in other apps.

HUMAN

Manual review needed

If your agent is unsure about a specific field, it flags it for you. You decide if the extracted value is correct.

DB

Database ready

Once the data is structured, you can push it directly into your existing databases or CRM. Your agent handles the heavy lifting of parsing.

LOG

Audit trails

Each extraction creates a record of what was pulled. You can track exactly how the data was mapped from the original file.

The workflow

What your agent does when the document arrives.

Your agent handles the parsing and mapping so you don't have to type out values manually.

  1. Upload the file

    You provide the PDF or image to your AI client. It sends the file to Affinda to begin the processing.

    create_document
  2. Parse the content

    The system reads the text and visual elements within the file. It identifies key fields like names, dates, or totals.

    create_document
  3. Retrieve the data

    Your agent pulls the identified information out of the document. It organizes everything into a structured format.

    get_document
  4. Format for use

    Your agent takes the retrieved information and prepares it as a JSON object. This makes it easy to pass to your next tool.

    get_document

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Affinda tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to kick off your first extraction task.

Starting points

These are only ideas. Swap out the document types or specific field names to match your actual files.

Affinda Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_yFIGwqYMwMGDzAPprZCYJ7ppMcFfsuopOw4ljSHA/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Affinda capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "affinda-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_yFIGwqYMwMGDzAPprZCYJ7ppMcFfsuopOw4ljSHA/mcp"
    }
  }
}
Copy into chat04
  • 01

    Extract the invoice number and total amount from this PDF using Affinda.

  • 02

    Look at this image of a receipt and give me the JSON for the vendor name and date.

  • 03

    Use Affinda to pull all the contact information from this scanned document.

  • 04

    Read this document and list all the line items in a structured format.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Affinda once, then ask.

Click the link to connect your account. Your credentials stay encrypted, and you can start chatting with your documents immediately.

Connect Affinda to your agent

FAQ

How this task behaves.

  • 01

    Can your agent edit my original PDF files?

    No. Your agent only reads the data from your files; it cannot change or overwrite the original documents.

  • 02

    What happens if the document is blurry?

    If your agent cannot clearly read the text, it will flag the data as uncertain. You will need to review those specific fields manually.

  • 03

    Can I use this to update my database automatically?

    Your agent can prepare the JSON data for your database, but you must use a separate tool or workflow to actually write that data to your database.

  • 04

    Does your agent store my documents?

    No. Your agent uses the documents to perform the extraction task, but it does not keep a permanent storage of your files.

  • 05

    Can your agent extract data from handwritten notes?

    Yes, as long as the handwriting is legible enough for the OCR process to identify the characters.

  • More questions about Affinda? See everything the Affinda Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Affinda to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Affinda plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Affinda to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.