Procedures Context
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
ContextGlobal 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
Click on Add Context Variable: Under the Step Section in Interaction, click the Add button to create a new context variable.
Add Procedures Context 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.
Add Context in Procedures
👉 Learn about how to add context here : Context
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
tonama_lengkap
may cause inconsistencies in the procedure, as historical references tonama
may no longer be accurate with the new description ofnama_lengkap
.
By ensuring that context variables are immutable, data remains consistent and reliable throughout the procedure, maintaining the integrity of the information stored.
Last updated