Skip to main content

Recipe: process an inbox

Turn a shared mailbox into a process: every document that arrives is read, checked, sent to the right person to sign when needed, and passed on. For operations and finance teams whose agent can build processes.

Before you start

  • Your role can see and build processes (the process tools are listed in your session).
  • The mailbox is connected in the Talonic web app. Connecting a mailbox and storing passwords happen in the web app, never through the agent.

Tell your agent

"Set up a process for ap@ourcompany.com: read each invoice, check the total against the purchase order, have Finance sign anything over 10,000 EUR, and send approved invoices to accounting@ourcompany.com. Test it on last week's invoices before it goes live."

What the agent does

  1. See what's available. talonic_process_setup lists connected mailboxes, who steps can wait for, and the data a look-up step can read.
  2. Draft. talonic_process_create with your description. Nothing runs yet. The answer lists what a person still has to choose (stillOpen, questions); the agent asks you.
  3. Adjust. talonic_process_change for each answer ("Finance means the Finance group"). If a change means fewer checks, the agent must ask you before it confirms.
  4. Check. talonic_process_check shows what the draft still needs and what publishing would change.
  5. Test. talonic_process_test_run on a few real invoices (document_ids) in a test copy: nothing is sent. talonic_process_status on the test copy shows each item's path.
  6. Publish. Only when you say so: talonic_process_publish with a reason. From now on new mail starts runs.
Test on real documents
{
  "process_id": "<from talonic_process_create>",
  "document_ids": ["<invoice 1>", "<invoice 2>", "<invoice 3>"]
}

Every day after

Limits and cost

  • Drafting, checking and reading status are free; each document a run reads uses credits, including test runs.
  • Signing and sending back are allowed only where you are assigned to the step, exactly as in the web app.
  • talonic_process_rollback makes an earlier version live again if a change misbehaves.

Frequently asked questions

Can the agent publish a process on its own?+
It can call publish, but it is told to do so only after you say so and after showing you the check. Publishing is checked against your role every time.