DOCUMENT OPS

Inbound email contract attachment to Salesforce

Catches signed contract PDFs that arrive as Gmail attachments, extracts the parties and terms.

CategoryDocument Ops
Enginesim
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNew Gmail email with contract PDF attachedGmailGmail
  • ActionRead attachment and extract terms with OpenAIOpenAI
  • LogicMatch counterparty to Salesforce opportunitySalesforce
  • ActionAttach summary and file to opportunitySalesforce
  • OutputAlert Slack when no match is foundSlack

What it does

Monitors a Gmail inbox for incoming contract attachments, pulls the structured terms from each PDF, matches it to the right Salesforce opportunity by counterparty, and posts the summary plus the file there.

When to use it

Use this when signed agreements come back by email and reps have to manually find the opportunity, type in the terms, and upload the document. Best for sales teams running deals in Salesforce.

How it works

  1. 1A new Gmail message with a PDF attachment matching the contract filter fires the trigger.
  2. 2The attachment is read and OpenAI extracts counterparty, signed date, contract value, and term.
  3. 3A logic step looks up the matching open opportunity in Salesforce by counterparty name.
  4. 4If a match is found, the extracted summary is logged to the opportunity and the PDF is attached.
  5. 5If no match is found, a Slack alert flags it for manual linking so nothing is silently lost.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GmailRead, draft, send, label.
  2. 2
    Connect OpenAIModels, embeddings, files.
  3. 3
    Connect SalesforceAccounts, opportunities, cases.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.