Agent.ai Documentation home page
Search...
⌘K
Ask AI
Support
Platform
Platform
Search...
Navigation
Actions
Get Variable from Database
Guides
API Reference
Recipes
Documentation
Community
Using Agent.ai
Welcome
AI Agents Explained
Security & Privacy
Marketplace Credits
Rate Limits
Profile
Settings
Integrations
Agent Team
Agent Runs
Agent Requests
For Builders
Builder Overview
Public Agent Policy
LLM Models
Action Availability
Knowledge Base
Secrets
Serverless Functions
Snippets
Clone an Agent
MCP Server
Lists in For Loops
Output Formatting
Actions
Get User Input
Get User File
Get User List
Get User KBs and Files
Click Go to Continue
Wait for User Confirmation
Get Bluesky Posts
Enrich with Breeze Intelligence
Get Data from Builder's Knowledge Base
Get Data from User's Uploaded Files
Get Instagram Followers
Get Instagram Profile
Get LinkedIn Activity
Get LinkedIn Profile
Get Twitter Users
Get Recent Tweets
Google News Data
Search Bluesky Posts
Search Results
Web Page Content
Web Page Screenshot
YouTube Channel Data
YouTube Search Results
Get HubSpot CRM Object
Add HubSpot CRM Object
Update HubSpot CRM Object
Get HubSpot Owners
Get HubSpot Object Properties
Get Assigned Company
Use GenAI (LLM)
Generate Image
Set Variable
Add to List
Continue or Exit Workflow
If/Else Statement
For Loop
End If/Else/For Statement
Show User Output
Send Message
Create Blog Post
Save To Google Doc
Format Text
Post to Bluesky
Save To File
Convert File
Call Serverless Function
Invoke Web API
Invoke Other Agent
Store Variable to Database
Get Variable from Database
On this page
Overview
Use Cases
Configuration Fields
Variable
Retrieval Depth
Historical Data Interval (optional)
Number of Items to Retrieve (optional)
Output Variable Name
Actions
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
Store Variable to Database
Assistant
Responses are generated using AI and may contain mistakes.