Skip to content

feat: dynamic artist name extraction from Slack prompts#382

Open
recoup-coding-agent wants to merge 1 commit intotestfrom
feature/slack-artist-name-param
Open

feat: dynamic artist name extraction from Slack prompts#382
recoup-coding-agent wants to merge 1 commit intotestfrom
feature/slack-artist-name-param

Conversation

@recoup-coding-agent
Copy link
Copy Markdown
Collaborator

Summary

  • Extracts artist name from Slack prompts using AI (e.g. "generate a video for Mac Miller")
  • Looks up the artist in the account's roster via getAccountArtistIds with case-insensitive + partial matching
  • Falls back to Gatsby Grace (default) when no artist name provided or no match found
  • Adds artistName optional field to contentPromptFlagsSchema
  • New resolveArtistFromName() function for name → artist_id resolution

Test plan

  • 6 unit tests for resolveArtistFromName (exact match, partial match, no match, empty name, empty roster)
  • 2 unit tests for parseContentPrompt artistName extraction
  • 3 unit tests for registerOnNewMention (dynamic artist, fallback on no name, fallback on no match)
  • All 1655 existing tests still pass

🤖 Generated with Claude Code

When a user mentions an artist name in their Slack message (e.g. "generate
a video for Mac Miller"), the content agent now extracts that name via AI,
looks up the matching artist in the account's roster, and uses them for
content creation. Falls back to Gatsby Grace when no artist name is provided
or no match is found.

- Add artistName field to contentPromptFlagsSchema for AI extraction
- Add resolveArtistFromName() to match artist name against account roster
- Update registerOnNewMention to use dynamic artist lookup with fallback
- 12 new tests covering artist name extraction and resolution

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

Warning

Rate limit exceeded

@recoup-coding-agent has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 19 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 16 minutes and 19 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1c8ee7bc-028f-4827-bddd-dc128a9ed36e

📥 Commits

Reviewing files that changed from the base of the PR and between 4afc4cf and fac739f.

⛔ Files ignored due to path filters (3)
  • lib/agents/content/__tests__/parseContentPrompt.test.ts is excluded by !**/*.test.*, !**/__tests__/** and included by lib/**
  • lib/agents/content/__tests__/registerOnNewMention.test.ts is excluded by !**/*.test.*, !**/__tests__/** and included by lib/**
  • lib/agents/content/__tests__/resolveArtistFromName.test.ts is excluded by !**/*.test.*, !**/__tests__/** and included by lib/**
📒 Files selected for processing (3)
  • lib/agents/content/createContentPromptAgent.ts
  • lib/agents/content/handlers/registerOnNewMention.ts
  • lib/agents/content/resolveArtistFromName.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/slack-artist-name-param

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recoup-api Ready Ready Preview Mar 31, 2026 2:36pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant