Profile Management
Connect and manage social media accounts.
Supported Platforms
- Instagram - Via Facebook Graph API
- Facebook - Pages only
- TikTok - OAuth not yet connected
- YouTube - OAuth not yet connected
Connecting Accounts
- Go to Profiles → Add Profile
- Authorize via Clerk OAuth
- Select accounts to connect
- Profiles auto-populate
Profile Settings
Basic
- Active/Paused - Stop posting without disconnecting
- Display Name - Internal reference only
- Timezone - For scheduling
Generation Settings
Stored in profileGenerationSettings table:
- System prompt override
- Caption style
- Auto-generation enabled/disabled
- Posting frequency
- Preferred posting times
- Default media/post types
Schedule Slots
Individual time slots for posting:
- Day of week (0-6)
- Time (HH:MM:SS)
- Enabled/disabled per slot
Brand Assignment
Profiles can be assigned to brands:
- One profile belongs to one brand only
- Inherits brand generation settings
- Profile settings override brand settings
Publishing Targets
Profiles used as targets for:
- Single content → single profile
- Single content → multiple profiles (multi-platform)
- Platform-specific adaptations
Current Limitations
- No real engagement metrics
- No OAuth token refresh UI
- TikTok/YouTube OAuth not implemented
- No bulk profile management
- Basic connection health only
Database Structure
socialProfiles- Main profile dataprofileGenerationSettings- AI settingsprofileSchedules- Schedule configurationprofileScheduleSlots- Time slotsbrandProfiles- Brand assignments