LogoLogo
  • Introduction
    • What Is an Agent Application?
    • Core Concepts
    • Getting Started
  • GLIK Cloud
    • Getting Started
      • GLIK Cloud vs. GLIK Studio
    • Prompt Orchestration Interface
    • What Is a Workflow?
    • Workflow Editor
    • App Types (Overview)
    • Workspaces & Permissions
    • Enterprise Readiness & Compatibility
    • Security & Data Handling
  • Enterprise SaaS
    • Expense Policy Decision Engine
    • Compliance & Audit Automation
    • Compliance Advisor Copilot
  • App Types
    • Overview
    • Chatbot
    • Agent
    • Advanced Chat
    • Workflow
  • Templates
    • Overview
    • Policy Automation
      • Overview
        • Expense Policy Validator — Summary Sheet
        • Enterprise Policy Intelligence
      • Expense Policy Decision Engine
        • Expense Policy Decision Engine (Starter)
          • Practice Exercises
        • Expense Policy Decision Engine (Threshold Memory)
          • Practice Exercises
          • Threshold Agent Response Tuning Exercises
        • Expense Policy Decision Engine (Policy API Integration)
          • Practice Exercises
        • Expense Policy Decision Engine (Escalation & Conflict Resolution)
        • Expense Policy Decision Engine (Audit & Logging)
    • Compliance and Audit Automation
      • KYC/AML Review Copilot
        • Learning Track
      • Compliance Copilot – MiCA Reporting
        • Workflow Phases
        • Block-by-Block Guide
    • Compliance Advisors
      • Global Control Copilot – Cross-Jurisdiction Policy Interpreter
        • Input Combinations & Workflow Outcomes
        • Reference Input Payloads
        • Policy Retrieval via Input Routing
        • Input Logic & Routing Behavior
        • Predefined Policy Thresholds
    • Knowledge Systems
      • Overview
      • Compliance SOP Agent
    • Process Automation
    • Task Resolution Agents
      • Why Agentify Task Resolution
    • Work Coordination Agents
      • Escrow Agent Orchestration
    • Embedded Operational Copilots
    • Expense & ERP Agents
      • ERP Vendor AI Copilots and Agents
      • Custody Approval Workflow for Token Issuance
    • Inventory & Logistics Agents
    • Sales & Forecasting Agents
    • Plugin-Based Agent Platforms
  • Marketplace
    • Overview
    • Publishing Templates
  • System Architecture
    • Overview
    • Blocks & Nodes
      • Utilities
        • Start Block
        • End Node
        • HTTP Request
        • List Operator
      • Classifier Nodes
        • Question Classifier
      • Logic Blocks
        • IF/ELSE Branch
        • Iteration
        • Loop
      • Transform Blocks
        • Variable Assigner
        • Variable Aggregator
        • Parameter Extractor
        • Data Enrichment
        • Prompt Template
        • Code
      • Input & Extraction
        • Doc Extractor
        • Knowledge Retrieval
        • LLM Block
          • LLM Reasoning
          • Fallback to LLM Reasoning
        • Tool Node
        • Agent
        • Answer
    • GLIK Knowledge
      • Creating & Managing Knowledge
      • GLIK Knowledge Retrieval
      • Writing to Knowledge
      • Scoped Memory & Access Control
      • Injection & Variable Binding
      • Performance & Limits
    • Execution Model
      • Workflow Architecture
      • Flow Engine
      • Node Lifecycle
      • Protocol Compatibility & Schema Interoperability
      • Input Binding & Value Resolution
    • Memory & Variable Scope
      • Conversation Variables
      • Memory Layers (User, App, Org)
      • Memory Slot Injection
      • Memory Retention Policy
    • Decision Routing
      • Conditional Logic Engine
      • LLM Fallthrough Patterns
      • Policy Enforcement & Escalation Paths
    • Enterprise Orchestration
      • Policy-Driven Automation
      • Enterprise Modularity
      • Auditability & Governance
      • Explainability & Decision Transparency
    • Agentifying Legacy Systems
      • Why Legacy Systems Resist Change
      • Best Practices for Agentifying ERP Workflows
      • GLIK’s Wrap-Around Model
      • Agent Surfaces (PDF, OCR, API, UI)
      • No-API Memory-Based Control
      • Compliance & Risk Considerations
    • System Observability
      • Execution Logs
      • Save Points & Snapshots
      • Variable Debugging
      • Session Trace Viewer
  • Developers
    • Overview
    • GLIK Open Core
      • Deployment & Installation
      • CLI Reference
      • Security & Compliance
      • Customization Guide
      • Versioning & Updates
  • GLIK Roadmap
  • Deprecation
    • Orchestration Interface
      • Node Orchestration
        • Node
          • Start
          • End
          • Direct Reply
          • LLM
          • Question Classifier
          • Knowledge Retrieval
          • Code Execution
          • Doc Extractor
          • HTTP Request
          • Conditional Branch IF/ELSE
          • Iteration
          • List Operator
          • Parameter Extraction
          • Template
          • Tools
          • Variable Aggregator
          • Variable Assigner
      • Variables
      • Application Toolkits
      • File Upload
    • Chatbot Features
    • Dataset
      • Dataset Creation
      • Text Preprocessing and Cleaning
        • Advanced Configuration
      • Retrieval Test/Citation
    • Studio
  • Brand Kit & Identity
    • Logos & Visual Assets
    • Typography & Colors
    • Messaging Pillars
    • Product Screenshots
    • Diagrams & Icons
    • Company Boilerplate
    • Downloads (.zip)
  • Legal
    • Terms of Service
    • Privacy Policy
    • Cookie Policy
    • Trademark Notice
    • Acceptable Use Policy
    • Open Core License
Powered by GitBook

Platform

  • Open GLIK Cloud
  • Getting Started
  • Templates

Documentation

  • Core Concepts
  • GLIK Open Core
  • Security & Data Handling
  • Workspaces & Permissions

Company

  • RIvalz AI
  • Contact Support
  • Status Page

© 2023–2025 Rivalz Technologies Ltd.

On this page
  • Objectives
  • Blocks to Explore
  • Exercise 1: Change How Violations Are Explained
  • Exercise 2: Tone Tuning in the Fallback Reasoning Block
  • Exercise 3: Add Logic to Escalate Alcohol Violations
  • Success Criteria

Was this helpful?

  1. Templates
  2. Policy Automation
  3. Expense Policy Decision Engine
  4. Expense Policy Decision Engine (Threshold Memory)

Threshold Agent Response Tuning Exercises

PreviousPractice ExercisesNextExpense Policy Decision Engine (Policy API Integration)

Last updated 8 days ago

Was this helpful?

These hands-on exercises help learners understand how to modify and tune assistant behavior in the Threshold Memory template by editing key blocks. You'll learn how to change how the agent evaluates, explains, and responds to policy violations.

Objectives

  • Learn which blocks control logic, memory, and response formatting

  • Customize fallback behavior and explanation style

  • Practice modifying output to match business tone or policy emphasis


Blocks to Explore

Block Name
Role in the Workflow
Tips for Editing

Metadata Assigner

Sets key memory variables and conversation metadata

Add tags like review_required or flagged

Expense Evaluation

Runs comparison logic (amount vs. threshold, vendor checks)

Modify IF/ELSE branches or add filters

Fallback Reasoning

LLM-based explanation block for ambiguous or missing logic

Change prompt tone or level of formality

Final Decision

Outputs APPROVED, REJECTED, ESCALATE with reason

Customize wording or formatting

Exercise 1: Change How Violations Are Explained

🎯 Goal: Make fallback explanations more formal, structured, and compliance-focused — especially when policy violations are detected.

✅ Steps

  1. Open the LLM Block (currently titled "LLM")

  2. Locate the SYSTEM message under the Context section

  3. Modify the final explanation sentence of the <Example> block to read:

    Reason: This expense violates policy due to exceeding the threshold without an exception rule. A formal review is required for compliance logging.

    (This replaces the current: “No exception rule found. Logged for escalation or review.”)

  4. Optionally, tweak the opening sentence of the SYSTEM prompt to reinforce tone:

    You are a compliance-focused corporate accountant. Review the receipt and policy to determine validity using formal, transparent justifications.
  5. Save and re-test using: Receipt_4_Only.pdf (This file contains a suspicious invoice split pattern and exceeds the global threshold)

The LLM is used here as a fallback explanation agent, especially when the IF/ELSE blocks don’t capture ambiguous or edge-case logic. This edit lets learners experiment with output tone, formality, and compliance narrative structure — without altering business logic.

Exercise 2: Tone Tuning in the Fallback Reasoning Block

Goal

Teach users how to modify the fallback LLM block’s response tone when no policy match is found or ambiguity arises (e.g. split invoices, unclear categories).


Why This Matters

  • Helps enterprise users adjust how AI communicates policy enforcement (e.g. strict vs supportive tone)

  • Ensures responses align with internal brand or compliance voice

  • Enables better UX when agents must reject or escalate expenses

Steps

  1. Open the LLM Fallback Block

    • Locate the block that handles ambiguous or missing-policy cases (typically tagged <policy> and <receipts>)

  2. Identify the Current Prompt

    • Look for something like:

      Please review the following receipt in the context of the policy:
      <policy>{{policy_memory}}</policy>
      <receipts>{{receipt_text}}</receipts>
  3. Modify the Tone

    • Try rewriting the prompt in one of the following styles:

      • 🔍 Strict:

        “This expense appears to violate corporate policy and will be flagged for immediate rejection.”

      • 💼 Professional:

        “Based on the provided policy, this expense may not be compliant. Please advise.”

      • 🤝 Supportive:

        “This expense might fall outside standard policy. Would you like me to escalate for review?”

  4. Save and Re-run a Test

    • Use a borderline case like Receipt_4_Only.pdf

    • Observe how the assistant’s tone changes based on the new prompt


✅ Success Criteria

  • Output clearly reflects new tone

  • System still uses memory-driven policy context

  • Learner understands where and how to control fallback behavior


Exercise 3: Add Logic to Escalate Alcohol Violations

Goal

Escalate receipts that include alcohol, even if thresholds are not exceeded.

Steps

  1. Open Expense Evaluation

  2. Add a condition:

    If invoice_data.contains_alcohol == true
      → Set `approval_result = ESCALATE`
  3. Upload Receipt_3.pdf and confirm escalation


Success Criteria

  • Agent response is visibly changed (different tone, tags, or decision path)

  • conversation_notes reflect updated explanations

  • Output is aligned with edited logic and assistant behavior

Try adjusting block logic to fit different organizational policies or tone-of-voice standards!

Implementation Support & Expert Guidance

Need assistance deploying or customizing this GLIK template for your organization?

Our team offers dedicated coaching and technical walkthrough sessions to ensure successful adoption and alignment with enterprise requirements.

Typical areas of support include:

  • Template onboarding and orchestration strategy

  • Workflow configuration and logic review

  • Memory variable setup and session handling

  • Custom integration guidance (e.g. plugins, APIs)

This block is responsible for explaining whether a receipt is approved or rejected based on policy thresholds. To modify how violations are communicated, click into PROCESS REQUEST and edit the SYSTEM prompt tone — make it more formal, friendly, or tailored to your organization’s communication style.
To customize how the assistant responds in ambiguous or policy-missing cases, click into this block and edit the system prompt tone. Try adjusting language for different enterprise communication styles (e.g. formal, supportive, strict).
Request a Session