Agent.ai Documentation home page
Search...
⌘K
Ask AI
Support
Platform
Platform
Search...
Navigation
Get Variable from Database
Guides
API Reference
Recipes
Get Variable from Database
Overview
Retrieve stored variables from the agent’s database for use in workflows.
Use Cases
Data Reuse
: Leverage previously stored variables for decision-making.
Trend Analysis
: Access historical data for analysis.
Configuration Fields
Variable
Description
: Specify the variable to retrieve from the database.
Example
: “user_input” or “order_status.”
Required
: Yes
Retrieval Depth
Description
: Choose how far back to retrieve the data.
Options
: Most Recent Value, Historical Values
Example
: “Most Recent Value” for the latest data.
Required
: Yes
Historical Data Interval (optional)
Description
: Define the interval for historical data retrieval.
Options
: Hour, Day, Week, Month, All Time
Example
: “Last 7 Days” for weekly data.
Required
: No
Number of Items to Retrieve (optional)
Description
: Enter the number of items to retrieve from historical data.
Example
: “10” to fetch the last 10 entries.
Required
: No
Output Variable Name
Description
: Assign a variable name to store the retrieved data.
Example
: “tracked_values” or “historical_data.”
Validation
: Only letters, numbers, and underscores (_) are allowed.
Required
: Yes
Assistant
Responses are generated using AI and may contain mistakes.
On this page
Overview
Use Cases
Configuration Fields
Variable
Retrieval Depth
Historical Data Interval (optional)
Number of Items to Retrieve (optional)
Output Variable Name
Documentation
Community
Recipes
Overview
Call Agents from SFDC
Company Research Agent
LinkedIn Research Agent
Executive News Agent
Executive Tweet Analyzer Agent
Get Variable from Database
Overview
Retrieve stored variables from the agent’s database for use in workflows.
Use Cases
Data Reuse
: Leverage previously stored variables for decision-making.
Trend Analysis
: Access historical data for analysis.
Configuration Fields
Variable
Description
: Specify the variable to retrieve from the database.
Example
: “user_input” or “order_status.”
Required
: Yes
Retrieval Depth
Description
: Choose how far back to retrieve the data.
Options
: Most Recent Value, Historical Values
Example
: “Most Recent Value” for the latest data.
Required
: Yes
Historical Data Interval (optional)
Description
: Define the interval for historical data retrieval.
Options
: Hour, Day, Week, Month, All Time
Example
: “Last 7 Days” for weekly data.
Required
: No
Number of Items to Retrieve (optional)
Description
: Enter the number of items to retrieve from historical data.
Example
: “10” to fetch the last 10 entries.
Required
: No
Output Variable Name
Description
: Assign a variable name to store the retrieved data.
Example
: “tracked_values” or “historical_data.”
Validation
: Only letters, numbers, and underscores (_) are allowed.
Required
: Yes
Assistant
Responses are generated using AI and may contain mistakes.
On this page
Overview
Use Cases
Configuration Fields
Variable
Retrieval Depth
Historical Data Interval (optional)
Number of Items to Retrieve (optional)
Output Variable Name