[Backend] Chat Interface + CrewAI Integration #6

Closed
opened 2026-04-06 00:29:22 +02:00 by shoko · 0 comments
Owner

Overview

Implement the chat interface with CrewAI for natural language to strategy config parsing.

Dependencies

  • Requires Bot CRUD (issue #5) to be completed first

Tasks

  • Create MiniMax LLM connector for CrewAI
  • Implement CrewAI crew with trading_designer, strategy_validator, strategy_explainer agents
  • Create strategy parser that converts natural language to strategy_config JSON
  • Implement chat endpoint (POST /api/bots/{id}/chat)
  • Add conversation context management
  • Create strategy validation logic
  • Add explanation generation for user-friendly responses

CrewAI Agents

  1. Trading Strategy Designer - Parse user intent into strategy config
  2. Strategy Validator - Validate feasibility and identify issues
  3. Strategy Explainer - Generate user-friendly explanations

Strategy Config Schema

Supported Conditions (MVP)

  • price_drop - Token price drops by X%
  • price_rise - Token price rises by X%
  • volume_spike - Trading volume increases X%
  • price_level - Price crosses above/below X
## Overview Implement the chat interface with CrewAI for natural language to strategy config parsing. ## Dependencies - Requires **Bot CRUD** (issue #5) to be completed first ## Tasks - [ ] Create MiniMax LLM connector for CrewAI - [ ] Implement CrewAI crew with trading_designer, strategy_validator, strategy_explainer agents - [ ] Create strategy parser that converts natural language to strategy_config JSON - [ ] Implement chat endpoint (POST /api/bots/{id}/chat) - [ ] Add conversation context management - [ ] Create strategy validation logic - [ ] Add explanation generation for user-friendly responses ## CrewAI Agents 1. Trading Strategy Designer - Parse user intent into strategy config 2. Strategy Validator - Validate feasibility and identify issues 3. Strategy Explainer - Generate user-friendly explanations ## Strategy Config Schema ## Supported Conditions (MVP) - price_drop - Token price drops by X% - price_rise - Token price rises by X% - volume_spike - Trading volume increases X% - price_level - Price crosses above/below X
shoko added this to the Phase 1 - Core MVP milestone 2026-04-06 00:29:22 +02:00
shoko added the backendenhancementAI/ML labels 2026-04-06 00:29:22 +02:00
shoko closed this issue 2026-04-08 08:37:59 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/randebu#6