Add tailored suggested prompts per sport in AgentChatPanel#101
Merged
Bitpass-dev merged 2 commits intomainfrom Mar 15, 2026
Merged
Add tailored suggested prompts per sport in AgentChatPanel#101Bitpass-dev merged 2 commits intomainfrom
Bitpass-dev merged 2 commits intomainfrom
Conversation
Co-authored-by: Bitpass-dev <186615221+Bitpass-dev@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add tailored suggested prompts for each sport in AgentChatPanel
Add tailored suggested prompts per sport in AgentChatPanel
Mar 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUGGESTED_PROMPTShad generic horse-racing-flavoured prompts for every sport. This replaces them with sport-specific prompt sets for soccer, golf, rugby, NFL, NBA, MMA, boxing, and darts, and updates the default fallback to four genuinely generic prompts.Changes
SUGGESTED_PROMPTS— expanded from 3 keys (soccer/golf sharing racing copy) to 9 sport-specific entries:horse_racing— unchangedsoccer,golf,rugby,nfl,nba,mma,boxing,darts— each with 4 prompts using sport-appropriate terminologygetSuggestedPrompts— replaced racing-specific copy with neutral betting promptsgetSuggestedPromptslogic — no structural change; existingstartsWithloop already handles sub-sport keys (e.g.horse_racing_uk_jumps)Original prompt
Add tailored suggested prompts for each sport in AgentChatPanel
File:
AI-Sports-Almanac/frontend/components/AgentChatPanel.tsxCurrently
SUGGESTED_PROMPTSonly has entries forhorse_racing,soccer, andgolf, all with the same 4 generic prompts. We need to:getSuggestedPromptsfunction to match all the new sport keys usingstartsWithlike it already does for horse_racingCurrent
SUGGESTED_PROMPTSobject:Replace with this updated
SUGGESTED_PROMPTS:Update the
getSuggestedPromptsfunction:The current function uses a
for...ofloop withsport.startsWith(key). This already handles sub-sports likehorse_racing_uk_jumpsmatchinghorse_racing. No structural changes needed to the function — just make sure it stays as-is since it already handles all the new keys correctly viastartsWith.Also update the default fallback (returned when no key matches) to these 4 generic prompts:
Summary of changes:
horse_racing— unchanged (keep the 4 racing-specific prompts)soccer— tailored to football/soccer betting languagegolf— tailored to golf tournament betting languagerugby— NEW: tailored to rugby betting languagenfl— NEW: tailored to NFL betting languagenba— NEW: tailored to NBA betting languagemma— NEW: tailored to MMA betting languageboxing— NEW: tailored to boxing betting languagedarts— NEW: tailored to darts betting languageThat's the only file that needs to change.
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: ok is it ready
Assistant: ✅ Yes, it's ready! PR #99 is open and waiting for you:
What's in it:
sport:date:2026-03-15T15:message— no more stale races from earlier in the dayGo merge it: ht...
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.