Feedloop AI
  • GETTING STARTED
    • Discover Feedloop AI
    • Authentication
      • Sign Up
      • Login
    • Platform
      • Workspace
      • Project
      • People
      • Usage
  • WHAT IS AGENT
    • What is Agent
      • ⚪Manage Agent
    • Basic Agent
      • ⚪Instruction
        • Who
        • What
      • ⚪Training
        • Rules
        • Example
      • ⚪Skill
        • Knowledge
        • Analys
      • ⚪Style
    • Procedures
    • Advance Reasoning
      • ⚪Creating New Agent
      • ⚪Advance Agent Activation
      • ⚪Deleting Agent
      • ⚪Advance Agent Managing Existing
  • AGENT SETTINGS
    • Instruction
      • Who
      • What
      • Additional Instruction
    • Training
      • Chat Rules
      • Retrieval
      • Answering
    • Context
      • Primitive Context
      • Array
    • Tools
      • Knowledge
      • API - Call
        • Manage API Call
        • Basic Configuration
        • Header
        • Body Field
          • Input Binding
            • Page 2
          • Output Binding
        • Testing API Call
        • Trouble Shooting
        • Example Implementation
          • API Call Covid
      • Data Connector
    • Card
      • Intro & Summary Text
      • Data Visualization Card
      • Analyze Card
    • Procedure Basic Info
      • Activation Condition
      • Goal
      • Action
    • Procedures Interaction
      • Procedures Step
      • Procedures Context
      • Procedures Tools
  • AGENT UTILITY
    • Resource
      • Document PDF
        • Preparing your PDF
      • Data Connector
        • Create new data connector
        • Configure dataset, table, and column
        • Using Data Playground
        • Dataset in Data Playground
        • Training in Data Playground
        • SQL generation and modification
        • SQL Execution
    • Apps
      • Chat Widget
      • Web App
    • Testing
    • Monitoring
      • Customer Chat
      • Context
      • Document
  • TASK
    • ⚪Image Analyzer
      • Building Analyzer
      • ID Identifier
    • ⚪Document Analyzer
      • Contractual Document Analyzer
    • ⚪Database Analyzer
    • ⚪Additional Solution
      • Text Sentiment Analyzer
      • Customer Complaint Analyzer
  • For Developer
    • API Chat
      • Chat Initialization
      • Chat Message
      • Chat History
      • Error Handling
    • Embed Widget
      • Embedding the Widget
      • Identity Attributes
      • Widget Attribute Details
Powered by GitBook
On this page
  • Prerequisites
  • Global Context and Procedure Context
  • Accessing Procedure Context
  • Context Immutability
  1. AGENT SETTINGS
  2. Procedures Interaction

Procedures Context

PreviousProcedures StepNextProcedures Tools

Last updated 6 months ago

Procedure Context stores and updates data specifically tied to a particular procedure. This enables the system to keep track of dynamic data within a structured workflow or operation without impacting global settings or contexts. Users can create, update, or delete context variables for a procedure, ensuring the information adapts based on user interactions or system events.

Prerequisites

To effectively use the Procedure Context, it’s essential to first understand how procedures operate within the system. Familiarizing yourself with procedures will give you a clear foundation for using context variables effectively.

👉 Learn about procedures here: link to procedures documentation

Global Context and Procedure Context

  • Global Context:

    • Definition: Holds key information shared across all procedures, originating from the main agent.

    • Display in Procedure: Visible in read-only mode within each procedure. This means that while Global Context data is accessible, it cannot be directly modified in the procedure.

    • Editing: To change any data in the Global Context, you must edit the main agent. Any updates made here will reflect in all related procedures automatically.

  • Procedure Context:

    • Definition: Stores data specific to each individual procedure. Variables in the Procedure Context are independent of other procedures, allowing unique configurations per workflow.

    • Customizability: You can create, update, or delete Procedure Context variables directly within each procedure, ensuring flexibility and relevance for the current task.

Accessing Procedure Context

Creating a New Context Variable

  1. Click on Add Context Variable: Under the Step Section in Interaction, click the Add button to create a new context variable.

  2. Define the Contexts :

    • Data Type: Specify the data type (e.g., String, Integer, Date) to ensure correct data handling.

    • Name: Provide a unique, descriptive name for easy identification (e.g., user_location, order_id).

    • Description :Provide a clear, detailed description of the context variable to help the AI understand the type of data it will retrieve or store.

    👉 Learn about how to add context here : Context

  3. Save the Variable: Click Save to add the variable to the procedure context.

Context Immutability

  • Context Variables Cannot Be Edited: Once a context variable is created, it is immutable, meaning it cannot be modified. If a different context or an update is required, you must add a new variable instead of editing an existing one. Editing an existing context variable could lead to inconsistencies, as previously stored data may not align with the new name or description.

    • Example:

      • Original: nama – "The name of the user"

      • Attempted Change: nama → nama_lengkap – "The full name of the user"

    • Changing nama to nama_lengkap may cause inconsistencies in the procedure, as historical references to nama may no longer be accurate with the new description of nama_lengkap.

By ensuring that context variables are immutable, data remains consistent and reliable throughout the procedure, maintaining the integrity of the information stored.

Context
Global Context and Procedures Context
Add Procedures Context
Add Context in Procedures