Skip to main content

2 posts tagged with "decision-making"

View All Tags

AI Makler — Intelligent Financial Agent With Memory and Multi-Workflow Orchestration

· 5 min read
ApudFlow OS
Platform Updates

Markets move fast, and making sense of them requires not just data but context — what happened yesterday, what decisions you made, how conditions have changed. The AI Makler worker brings that context to life: an intelligent financial agent that remembers past sessions, makes decisions, manages positions, and can even trigger other workflows.

Think of it as a tireless trading assistant that keeps notes on every session and gets smarter the more you use it.

What Is AI Makler?

AI Makler (Polish for "broker") is an AI-powered financial agent that lives in the AI category of the left sidebar. Unlike stateless AI workers that process one request at a time, AI Makler remembers its past analyses, decisions, and market observations across multiple runs within the same workflow.

This makes it ideal for:

  • Continuous market monitoring — the agent knows what it saw yesterday
  • Trading signal generation — it tracks its own accuracy over time
  • Portfolio management — it remembers open positions and reviews them
  • Multi-step workflows — it can trigger other workflows based on analysis

Key Features

🧠 Persistent Memory

  • One MongoDB document per workflow — all runs share the same memory
  • Remembers: market state, analysis, orders, triggered workflows
  • Configurable history (1–100 iterations, default 20)
  • No raw prompts saved — just the meaningful context and decisions

📊 Two Processing Modes

ModePurpose
AnalysisExamine market data and news, identify trends, assess risk
DecisionMake concrete trading calls: buy, sell, close, or hold

📈 Structured Orders

When the agent decides to trade, it returns proper order objects:

{
"action": "buy",
"symbol": "BTCUSD",
"entry_price": 86500.00,
"target_price": 92000.00,
"stop_loss": 84000.00,
"position_size": 0.5,
"order_type": "market",
"reason": "Bullish flag breakout on above-average volume",
"certainty_pct": 82
}

The agent only generates orders when certainty > 60%. If it's not confident, it just returns analysis — no false signals.

🔗 Workflow Orchestration

AI Makler can trigger other workflows to perform complex tasks. List the allowed workflow IDs in the configuration, and the agent will decide when to run them, passing data along. Triggered runs are fire-and-forget via the same Redis queue as manual runs.

💼 Position Management

Pass your current open positions as a JSON array, and the agent will review each one — deciding whether to close, hold, or modify based on current market conditions.

How to Use It

Adding the Worker

  1. Drag AI Makler from the AI category onto your canvas
  2. Connect it after your data sources (or trigger it on a schedule)
  3. Configure the parameters

Configuration

ParameterTypeDescription
modeselectanalysis (default) or decision
datamarkdownMarket data — prices, indicators, volumes
newsmarkdownNews and events
allowedWorkflowstextWorkflow IDs the agent may trigger (one per line)
investorTypeselectaggressive, moderate (default), conservative
instrumentTypesselectall, crypto, forex, stocks, commodities
orderTypesselectmarket, limit, stop-loss, take-profit
currentPositionshiddenJSON array of open positions
maxHistoryIterationsnumber1–100, default 20

Output Fields

FieldTypeWhat it contains
resultsstringFull analysis or decision reasoning
marketStatestringBrief market summary
ordersarrayTrading orders (empty if no decisions)
ordersCountnumberNumber of orders
triggeredWorkflowsarrayWorkflows that were triggered
triggeredCountnumberNumber of workflows triggered
memorySizenumberCurrent history depth
latestActionstringLast order's action (buy/sell/close/hold)
latestSymbolstringLast order's symbol
latestCertaintynumberLast order's confidence

Use Cases

1. Market Monitor With Memory

[Schedule Trigger] → [Fetch Market Data] → [AI Makler: analysis] → [Condition: alert?] → [Telegram Notify]

AI Makler runs every hour, sees how conditions evolved, and sends alerts when patterns change.

2. Signal Generator With Position Tracking

[Schedule] → [Fetch Data + News] → [AI Makler: decision] → [Save Orders to User List]

Agent analyses market data and news, returns buy/sell signals with targets and stop-losses.

3. Portfolio Manager

[Trigger] → [Fetch Positions + Market Data] → [AI Makler: decision] → [Run Workflow "Execute Orders"]

Agent receives current open positions, reviews each one, and decides what to do. The execution workflow handles the actual order placement.

4. Multi-Strategy Coordinator

[Trigger] → [AI Makler: analysis]
→ [Trigger: Run Backtest Workflow]
→ [Trigger: Run Risk Analysis Workflow]

Agent decides which analysis workflows to run based on market conditions, passing relevant data to each.

Memory in Action

When AI Makler runs for the first time, it has clean memory. After each session, it saves:

  • What the market looked like
  • What analysis it produced
  • What orders it generated
  • What workflows it triggered

On the next run, it gets a summary of previous sessions:

PREVIOUS SESSIONS (most recent first):
[1] 2026-06-21T08:00:00 | BTCUSD: Bullish, ETHUSD: Neutral | Orders: 2
[2] 2026-06-20T20:00:00 | BTCUSD: Ranging, high volume | Orders: 1 | Triggered: 1
[3] 2026-06-20T12:00:00 | BTCUSD: Bearish rejection at 88k

This context lets the agent spot trends in its own decision-making and adapt.

This is not financial advice. Trading involves substantial risk of financial loss. The AI Makler worker is a tool for analysis and automation — all trading decisions should be reviewed by a qualified professional. Past performance in memory does not guarantee future results.

AI Classifier - Intelligent Decision Making for Your Workflows

· 5 min read
ApudFlow OS
Platform Updates

Introducing the AI Classifier worker - a powerful new addition to the ApudFlow platform that brings intelligent decision-making capabilities to your workflows. Using advanced AI models, this worker can analyze complex data patterns and make classification decisions that drive your automated processes.

What is AI Classifier?

The AI Classifier worker leverages large language models to analyze data and classify it according to your specific instructions. Unlike traditional rule-based classifiers, AI Classifier can understand context, recognize patterns, and make nuanced decisions based on natural language prompts.

Key Features

  • Flexible Classification: Define your own classification criteria and options
  • Context-Aware Analysis: Processes complex data structures and understands relationships
  • Multiple AI Models: Choose from various AI models for different use cases
  • Workflow Integration: Seamlessly integrates with existing workflow logic
  • Real-time Processing: Fast classification for time-sensitive decisions

Financial Markets Applications

AI Classifier excels in financial data analysis and automated trading scenarios. Here are some powerful use cases:

1. Stock Market Classification

Automatically classify stocks based on their characteristics:

Prompt: "Classify this stock data as: gold, nasdaq, crypto, forex, commodities"

Use Case: Route different types of financial instruments to specialized analysis workflows.

2. Market Sentiment Analysis

Analyze news articles and social media sentiment:

Prompt: "Analyze the sentiment of this financial news: bullish, bearish, neutral"

Use Case: Automatically adjust trading strategies based on market sentiment.

3. Trading Signal Generation

Generate buy/sell/hold signals from technical indicators:

Prompt: "Based on RSI, MACD, and volume indicators, generate signal: buy, sell, hold"

Use Case: Create automated trading systems that respond to technical analysis.

4. Risk Assessment

Evaluate investment risk levels:

Prompt: "Assess risk level based on volatility, beta, and Sharpe ratio: low, medium, high, extreme"

Use Case: Implement dynamic risk management in investment portfolios.

5. Market Regime Detection

Identify current market conditions:

Prompt: "Classify current market regime: trending_bullish, trending_bearish, ranging, volatile, calm"

Use Case: Switch between different trading strategies based on market conditions.

6. News Impact Classification

Determine the significance of financial news:

Prompt: "Classify the impact of this news on markets: major, moderate, minor, irrelevant"

Use Case: Filter and prioritize news feeds for faster decision making.

7. Asset Allocation Recommendations

Suggest portfolio allocations:

Prompt: "Recommend asset allocation based on risk profile: conservative, balanced, aggressive"

Use Case: Automate portfolio rebalancing based on changing market conditions.

How to Use AI Classifier

Basic Setup

  1. Add AI Classifier to your workflow canvas
  2. Configure the prompt with your classification instructions
  3. Specify data source using the dataExp field
  4. Connect to decision branches based on classification results

Example Workflow: Stock Analysis Pipeline

[Data Fetcher] → [AI Classifier: "gold, nasdaq, crypto"]

┌─────────┴─────────┐
│ │
[Gold Analysis] [Stock Analysis]
↓ ↓
[Gold Strategies] [Tech Strategies]

Advanced Configuration

Prompt Engineering Tips:

  • Be specific about classification criteria
  • Include examples in your prompts
  • Define clear decision boundaries
  • Test with sample data before deployment

Data Input Options:

  • Direct data objects
  • Context expressions (data.price, vars.indicators)
  • Complex nested structures
  • Real-time market data feeds

Technical Implementation

The AI Classifier uses OpenRouter's API to access multiple AI models including:

  • Meta Llama 3.1 (recommended for financial analysis)
  • GPT-4 (for complex reasoning)
  • Claude (for nuanced decision making)
  • Other specialized models

Response Processing:

  • Automatic extraction of clean decisions
  • Removal of AI explanations and reasoning
  • Consistent output format for workflow integration

Performance & Reliability

  • Low Latency: Optimized for real-time decision making
  • Error Handling: Graceful fallbacks and error reporting
  • Cost Effective: Efficient token usage and model selection
  • Scalable: Handles high-frequency trading scenarios

Real-World Success Stories

Automated Trading Bot

A quantitative trading firm implemented AI Classifier to automatically categorize incoming market data and route it to specialized analysis engines, reducing manual classification time by 95%.

Risk Management System

An investment bank uses AI Classifier to assess risk levels of new positions in real-time, ensuring compliance with regulatory requirements and internal risk policies.

News-Driven Trading

A hedge fund employs AI Classifier to analyze breaking financial news and automatically adjust portfolio positions based on sentiment and impact analysis.

Getting Started

Ready to add intelligent decision-making to your workflows?

  1. Access AI Classifier in your ApudFlow workspace
  2. Start with simple classifications to understand the capabilities
  3. Gradually increase complexity as you become familiar with prompt engineering
  4. Integrate with existing workflows for enhanced automation

Future Enhancements

We're continuously improving AI Classifier with:

  • Custom model fine-tuning options
  • Batch processing capabilities
  • Advanced prompt templates
  • Integration with more AI providers
  • Specialized financial analysis models

Important Disclaimer: AI Classifier is a tool for automated decision-making and classification. The classifications and decisions generated by this tool should not be considered as professional financial, investment, or trading advice. All investment decisions should be made based on your own research, risk tolerance, and consultation with qualified financial professionals. Past performance does not guarantee future results. Use this tool at your own risk and responsibility.

AI Classifier represents the next evolution in workflow automation, bringing AI-powered intelligence to decision-making processes. Whether you're building trading systems, risk management platforms, or automated data processing pipelines, AI Classifier provides the intelligent routing capabilities you need.

Have questions or need help implementing AI Classifier in your workflows? Reach out to our support team!