Skip to content

Add tailored suggested prompts per sport in AgentChatPanel#101

Merged
Bitpass-dev merged 2 commits intomainfrom
copilot/add-tailored-sport-prompts
Mar 15, 2026
Merged

Add tailored suggested prompts per sport in AgentChatPanel#101
Bitpass-dev merged 2 commits intomainfrom
copilot/add-tailored-sport-prompts

Conversation

Copy link

Copilot AI commented Mar 15, 2026

SUGGESTED_PROMPTS had 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 — unchanged
    • soccer, golf, rugby, nfl, nba, mma, boxing, darts — each with 4 prompts using sport-appropriate terminology
  • Default fallback in getSuggestedPrompts — replaced racing-specific copy with neutral betting prompts
  • getSuggestedPrompts logic — no structural change; existing startsWith loop already handles sub-sport keys (e.g. horse_racing_uk_jumps)
// Before: every sport showed racing prompts
soccer: [
  'What\'s the best bet today across all cards?',
  'What\'s your top pick for the next race?',   // ← wrong sport
  ...
],

// After: sport-contextual prompts
soccer: [
  'Who wins the big match today?',
  'Best accumulator picks right now?',
  'Any value bets today?',
  'Who\'s in form this week?',
],
Original prompt

Add tailored suggested prompts for each sport in AgentChatPanel

File: AI-Sports-Almanac/frontend/components/AgentChatPanel.tsx

Currently SUGGESTED_PROMPTS only has entries for horse_racing, soccer, and golf, all with the same 4 generic prompts. We need to:

  1. Keep the horse racing prompts exactly as they are (they are perfect)
  2. Add tailored prompts for each sport so every sport feels purpose-built
  3. Update the getSuggestedPrompts function to match all the new sport keys using startsWith like it already does for horse_racing

Current SUGGESTED_PROMPTS object:

const SUGGESTED_PROMPTS: Record<string, string[]> = {
  horse_racing: [
    'What\'s the best bet today across all cards?',
    'Give me your top five selections for today',
    'Any market movers today?',
    'What\'s your top pick for the next race?',
  ],
  soccer: [
    'What\'s the best bet today across all cards?',
    'Give me your top five selections for today',
    'Any market movers today?',
    'What\'s your top pick for the next race?',
  ],
  golf: [
    'What\'s the best bet today across all cards?',
    'Give me your top five selections for today',
    'Any market movers today?',
    'What\'s your top pick for the next race?',
  ],
};

Replace with this updated SUGGESTED_PROMPTS:

const SUGGESTED_PROMPTS: Record<string, string[]> = {
  horse_racing: [
    'What\'s the best bet today across all cards?',
    'Give me your top five selections for today',
    'Any market movers today?',
    'What\'s your top pick for the next race?',
  ],
  soccer: [
    'Who wins the big match today?',
    'Best accumulator picks right now?',
    'Any value bets today?',
    'Who\'s in form this week?',
  ],
  golf: [
    'Who\'s the favourite this week?',
    'Best each-way picks for the tournament?',
    'Any dark horses worth backing?',
    'Who\'s in form on this course?',
  ],
  rugby: [
    'Who wins today\'s big game?',
    'Best try scorer bets?',
    'Any value in the handicap markets?',
    'Who\'s the form team right now?',
  ],
  nfl: [
    'Who wins the big game today?',
    'Best player prop bets?',
    'Any value spreads this week?',
    'Who\'s the form team right now?',
  ],
  nba: [
    'Who wins tonight\'s game?',
    'Best player prop bets tonight?',
    'Any value in the totals market?',
    'Who\'s on a hot streak?',
  ],
  mma: [
    'Who wins the main event?',
    'Best method of victory bet?',
    'Any value underdogs on the card?',
    'Who has the momentum going in?',
  ],
  boxing: [
    'Who wins the main event?',
    'Best method of victory bet?',
    'Any value underdogs on the card?',
    'Who has the momentum going in?',
  ],
  darts: [
    'Who wins today\'s match?',
    'Best checkout bet?',
    'Any value underdogs today?',
    'Who\'s in the best form?',
  ],
};

Update the getSuggestedPrompts function:

The current function uses a for...of loop with sport.startsWith(key). This already handles sub-sports like horse_racing_uk_jumps matching horse_racing. No structural changes needed to the function — just make sure it stays as-is since it already handles all the new keys correctly via startsWith.

Also update the default fallback (returned when no key matches) to these 4 generic prompts:

  return [
    'What\'s your top prediction today?',
    'Any high confidence picks?',
    'What markets do you recommend?',
    'What\'s the best value bet right now?',
  ];

Summary of changes:

  • horse_racing — unchanged (keep the 4 racing-specific prompts)
  • soccer — tailored to football/soccer betting language
  • golf — tailored to golf tournament betting language
  • rugby — NEW: tailored to rugby betting language
  • nfl — NEW: tailored to NFL betting language
  • nba — NEW: tailored to NBA betting language
  • mma — NEW: tailored to MMA betting language
  • boxing — NEW: tailored to boxing betting language
  • darts — NEW: tailored to darts betting language
  • Default fallback — updated to 4 generic but still useful prompts

That'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:

data:
- url: "https://github.com/Bitpass-dev/awesome-intercom/pull/99"
  repository: "Bitpass-dev/awesome-intercom"
  state: "open"
  draft: true
  title: "Fix stale race cache and update agent suggested prompts"
  number: 99
  created_at: "2026-03-15T15:30:00Z"
  author: "Copilot"

What's in it:

Fix Detail
🕐 Cache key includes current hour sport:date:2026-03-15T15:message — no more stale races from earlier in the day
⏱️ TTL reduced 60min → 10min Horse racing answers refresh every 10 mins max
💬 New suggested prompts All 3 your new questions across every agent

Go 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.

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
Copilot AI requested a review from Bitpass-dev March 15, 2026 16:33
@Bitpass-dev Bitpass-dev marked this pull request as ready for review March 15, 2026 16:35
@Bitpass-dev Bitpass-dev merged commit a4ae38a into main Mar 15, 2026
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.

2 participants