MarketMan and Mailhook: Emailed Vendor Invoice Order Template

This Spojit template turns a supplier's emailed invoice into a structured purchase order in MarketMan, so vendor paperwork lands as a clean inventory record instead of a PDF in someone's inbox.

What It Builds

A Mailhook trigger gives the workflow its own inbound address. When a supplier emails an invoice to it, an Attachment node pulls the PDF, a Knowledge node in Transient mode reads the line items and totals, and a MarketMan Connector node creates a matching order. The result is a vendor invoice captured as a structured purchase record with no manual re-keying.

The Prompt

Paste this into Miraxa and it builds the workflow, connecting the tools for you:

Build a workflow with a Mailhook trigger. When a supplier emails an invoice, read the attached PDF, extract the vendor name, each line item with its quantity and unit price, and the invoice total, then create a matching order in MarketMan with those line items.

Connectors Used

  • Mailhook - the trigger; the workflow gets its own inbound email address that suppliers send invoices to.
  • MarketMan - creates the order from the extracted vendor and line-item data.

Customize It

Change which fields you extract by naming them in the prompt: add an invoice number, expected delivery date, or supplier reference. You can also map a supplier email domain to a specific MarketMan vendor, or add a step to skip invoices below a dollar threshold so only material orders are created.

Tips

  • Make sure your MarketMan connection has permission to create orders before running it live.
  • Use a Human approval node before the MarketMan step if you want a buyer to confirm large invoices first.
  • Reading the PDF works best when invoices come from the same supplier in a consistent layout; for mixed formats, let Miraxa refine the extraction prompt.

Related

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.