Expense Policy Decision Engine (Threshold Memory)

Automates policy-driven expense approvals using structured memory, threshold logic, and LLM reasoning to reduce review costs and ensure compliance.

In Progress

This page is currently under active development. Content may be incomplete, evolving, or placeholder-only. Please check back later for finalized documentation and fully structured examples.

This workshop guides you through the Threshold Memory version of the Expense Policy Decision Engine template — a rules-based workflow for automating expense report approvals using GLIK Cloud.

This version builds upon the Starter template, adding memory-aware decision logic and fallback pathways using LLM reasoning. It demonstrates how policies can be encoded, recalled, and applied using conversation variables, branching logic, and optional escalation.

This diagram shows how GLIK workflows dynamically apply memory-based policy thresholds using conditional logic. If no clear rule matches, fallback to LLM ensures decisions remain explainable.

🧭 What You’ll Learn

How Thresholds Work: This workflow evaluates uploaded invoices against policy thresholds stored in memory (policy_memory). If the invoice exceeds a category-specific limit or the global threshold, the system either rejects or escalates. For unmatched or ambiguous cases, it falls back to LLM reasoning for justification.

  • How to structure a policy-driven approval agent in GLIK Studio

  • How to extract structured data from uploaded files

  • How to apply policy thresholds using IF/ELSE logic blocks

  • How to use conversation memory (policy_memory, invoice_data, etc.)

  • How to handle ambiguity with LLM fallback responses

🛠️ Prerequisites

Topic

🎛️ GLIK Studio Interface

Description

Review the GLIK Studio interface and how app types are structured in GLIK Cloud.

Topic

🧱 Starter Template

Description

Start with the Expense Policy Starter version before continuing with this Threshold Memory variant.

Topic

📂 Sample Files

Description

Have a sample invoice (PDF format) and, optionally, a policy document ready for upload.

🧱 Workshop Sections

  1. Template Overview A summary of all blocks and variables used.

  2. Block-by-Block Walkthrough Detailed breakdown of each node’s purpose and configuration.

  3. Threshold Logic & Memory Usage How policy thresholds are applied using memory variables.

  4. LLM Fallback for Ambiguity How to design graceful degradation to language models.

  5. Deployment & Testing Steps to test the flow and validate decision logic.


📁 Files & Resources

Use these practice files to simulate real-world invoice reviews. Upload them via the Start Block to test dynamic threshold evaluation and LLM fallback behavior.

Last updated

Was this helpful?