Strategy Worker
Manages user strategy resources, authentication, and search for SocialTwin platform.
Overview
The Strategy Worker manages user strategies, brand voice, content pillars, and mission statements. It provides vector search capabilities for semantic strategy retrieval and is responsible for social twin profile management.
Features
- Strategy management (create, update, delete, retrieve)
- Vector search for semantic strategy retrieval
- Social twin profile management
- CV parsing and analysis
- Google Cloud integration (Gmail, Drive)
- Personality assessment
- Communication style synthesis
API Endpoints
Strategy Management
POST
/api/strategy Create/update strategy GET
/api/strategy/:userId Retrieve strategy DELETE
/api/strategy/:userId Delete strategy Database Schema
CREATE TABLE strategies (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id TEXT NOT NULL,
mission TEXT NOT NULL,
content_pillars TEXT NOT NULL,
brand_voice TEXT NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
); Vector Storage
- Index: amplifier-strategy-vectors
- Embedding Model: @cf/baai/bge-base-en-v1.5
- Dimensions: 768
- Metadata: user_id, source_type, chunk_index