feat: pass songs param from Slack bot to content creation
Merged
RE
8mo ago+178+178+012345678901234567890123456789-10-10-01234567890123456789
Summary
- Adds
songsfield to the AI prompt parser schema (contentPromptFlagsSchema) so the agent extracts song names from natural-language Slack mentions - Passes extracted
songsarray fromregisterOnNewMentionhandler through totriggerCreateContentpayload - When a user says "make a lipsync video for the hiccups song", the songs array is now included in the API request
Test plan
- Added test:
parseContentPromptextracts songs when mentioned in prompt - Added test:
parseContentPromptreturns undefined songs when not mentioned - Added test:
registerOnNewMentionpasses songs totriggerCreateContent - Added test:
registerOnNewMentionomits songs when not specified - All 29 tests pass
- Manual: tag the content bot in Slack with "make a lipsync video for the hiccups song" and verify the songs array appears in the Trigger.dev task payload
Closes REC-38
š¤ Generated with Claude Code
Summary by CodeRabbit
-
New Features
- Content prompts now accept optional song entries so users can mention song names in their requests.
-
Refactor
- Caption-length options centralized into a shared constant to ensure consistent "short/medium/long" choices across the app.
-
Validation
- Song input validation improved: provided song entries must be non-empty strings; the field can still be omitted.