Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / AI Agents & Assistants

AI Agents & Assistants

Route vendor invoice approvals with gpt-5.6-terra, Gmail, Google Sheets and Telegram

When an API call/webhook arrives, it runs an AI agent with OpenAI / ChatGPT using Gmail, Google Sheets, Telegram.

What it does

## 08-24-01 automate vendor invoice approvals with AI ### How it works 1. A webhook receives a vendor invoice (vendor name, email, invoice number, amount, currency, category, due date). 2. An AI agent looks the vendor up in the Vendor Master and reads the Approval Policy, then drafts an auto-approve or review decision with a reason. 3. A deterministic engine enforces the policy (amount limit and known-vendor check) so the final call is never left to the model alone. 4. Every invoice is logged to Google Sheets. Auto-approved invoices get a vendor email plus Discord and Telegram notices. Review invoices go to the approver by email with a Discord and Telegram alert. 5. A daily 8am sweep reminds finance about invoices due within 2 days. A monthly report summarizes spend by vendor. ### Setup steps - Share the Google Sheet with the service account and set the Vendor Master and Approval Policy tabs for your business. - Connect your Gmail, Slack and Telegram credentials. - Send a POST request to the webhook path ap/invoice with the invoice fields. ### Customization - Edit the Vendor Master, the approval limit, the AI prompt, or the schedules to match your process.

The steps

  1. When Invoice Received
  2. Normalize Invoice
  3. Validate Invoice Input
  4. AI Invoice Assistant
  5. AP Model
  6. Vendor Master Tool
  7. Approval Policy Tool
  8. Parse Invoice Decision
  9. Route Approval Decision
  10. Log Invoice to Sheet
  11. Reattach Invoice Decision
  12. If Needs Human Review
  13. Email Vendor Auto Approval
  14. Notify Finance Auto Approved

18 steps in total.

Similar automations