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
  • 🧩 What This Pattern Enables
  • πŸ” High-Level Pattern
  • πŸ–ΌοΈ Example Logic (Visual from Studio)
  • πŸ“‚ Example Policy Files
  • πŸ’‘ Tips for Builders
  • πŸ›‘οΈ Fallback Handling
  • πŸ” Dataset Access & Security
  • πŸ”„ Common Questions (and Clear Answers)

Was this helpful?

  1. Templates
  2. Compliance Advisors
  3. Global Control Copilot – Cross-Jurisdiction Policy Interpreter

Policy Retrieval via Input Routing

Definitive, no-guessing-needed guide for builders using GLIK Studio to dynamically fetch policy files based on user context.

This page explains how to dynamically retrieve the correct policy file (e.g., .docx, .json, or .yaml) based on user-provided context like user_region, submission_type, and user_role.

This is a core pattern in the Global Control Copilot template, where logic and validation depend on loading the right ruleset for the right user at the right time.

Whether you're pulling from a static dataset, using in-memory config, or accessing GLIK Knowledge, this page shows you exactly how to route logic and retrieve the right file β€” without hardcoding anything.


🧩 What This Pattern Enables

  • βœ… Load MiCA, SOX, or fallback policies based on user_region

  • βœ… Adjust document-based compliance logic dynamically per session

  • βœ… Inject policy text into downstream LLM blocks, classifiers, and decisions

  • βœ… Enable jurisdiction-aware automation at runtime

  • βœ… Keep workflows modular, reusable, and future-proof


πŸ” High-Level Pattern

IF/ELSE β†’ SET VARIABLE β†’ GET POLICY β†’ (use in logic / LLM)

This means:

  1. You detect the input conditions

  2. You set a policy key (e.g., policy_reference = "SOX")

  3. You fetch the associated file or memory chunk using that key

  4. You inject the contents downstream


πŸ–ΌοΈ Example Logic (Visual from Studio)

IF/ELSE Conditions:

  • region == EU

  • submission_type == Disclosure

  • user_role == Finance Manager β†’ then SET policy_reference = "MiCA"

GET POLICY Block:

  • File name or memory key: {{policy_reference}}.docx


πŸ“‚ Example Policy Files

These files live in your GLIK Cloud Dataset or are registered in memory/knowledge.

policy_reference
File Name
Source Type

MiCA

MiCA_EU.docx

Dataset

SOX

SOX_Controls_2025.json

Dataset or Memory

GDPR

GDPR-Disclosure.yaml

Knowledge

Fallback_Policy

InternalPolicy.pdf

Static default

Best practice: Keep the file name aligned with the variable (e.g., policy_reference = SOX β†’ SOX.docx).


πŸ’‘ Tips for Builders

βœ… Save Point Logging

Always log the policy name for auditability and traceability.

{
  "user_region": "US",
  "submission_type": "Attestation",
  "user_role": "Legal Counsel",
  "policy_reference": "SOX"
}

βœ… Add session_label or policy_source tags in memory:

session_label: "SOX US Submission"
policy_source: "Dataset"

πŸ›‘οΈ Fallback Handling

If no policy matches the user's inputs:

  1. Use a default case in your IF/ELSE block:

ELSE β†’ SET policy_reference = "Fallback_Policy"
  1. Add a logic check before GET POLICY:

IF policy_reference == null β†’ route to escalation or system error handling

πŸ” Dataset Access & Security

βœ… Public or Shared Dataset Policies:

  • Easy to reuse

  • Visible across workspaces (read-only recommended)

βœ… Private Dataset Policies:

  • Best for sensitive rules

  • Assign roles in the GLIK Workspace permissions

βœ… In-Memory Policies:

  • Fastest for demos

  • Good for SDK-based dynamic injection


πŸ”„ Common Questions (and Clear Answers)

❓ What if I want to store the policy in memory instead of a dataset?

You can. Just assign policy_reference = "MiCA" and use the Memory Get or direct memory block instead of GET POLICY. Same pattern applies.


❓ Can I use Knowledge Retrieval instead of GET POLICY?

Yes. If your policies are stored as chunks in GLIK Knowledge, use the Knowledge Retrieval block and query by policy_reference.

retriever_query:
  policy_name: {{policy_reference}}

❓ What if my file isn’t found?

Handle this gracefully with a fallback route:

IF policy_reference == null OR file not found:
  escalate = true
  error_message = "Policy not found for session"

❓ Can I pass the full contents of the file into the LLM?

Yes. After GET POLICY, pipe the output into your LLM block prompt like:

Here is the policy content:
{{policy_document.text}}

Review this submission against the rules above...

PreviousReference Input PayloadsNextInput Logic & Routing Behavior

Last updated 2 days ago

Was this helpful?