title | aliases | tags | created | updated | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
AI Game Master Integration |
|
|
2024-12-28 |
2024-12-28 |
The AI Game Master (GM) is the core component of BootHillGM, responsible for creating and managing the game world.
The AI Integration documentation aims to:
- Provide technical implementation details for developers
- Document AI integration patterns and architecture
- Serve as a reference for AI-related components
- Maintain consistency across system integrations
The AI Game Master (GM) is the core component of BootHillGM, responsible for creating and managing the game world, narrating the story, and facilitating player interactions within a simplified Boot Hill RPG framework.
For technical implementation details, see [[../ai/gemini-integration|Gemini API Integration]].
- Generate descriptive text for locations, characters, and events
- Adapt narrative based on player choices
- Theme analysis system for contextual storytelling
- Automatic theme detection from player actions
- Enhanced prompts incorporating Western themes
- Create linear main storyline with minimal branching
For prompt details, see [[../ai/prompt-engineering/storytelling|Storytelling Prompts]].
- Generate NPC dialogues based on personality types
- Process player inputs using pattern matching
- Maintain NPC behavior consistency in sessions
For character creation details, see [[../features/_completed/character-creation|Character Creation]].
- Interpret and apply Boot Hill RPG rules
- Manage skill checks and combat resolution
- Track game state (character stats, inventory, quests)
For combat-specific details, see [[../core-systems/combat-system|Combat System]].
- Maintain small-scale world state (town and surroundings)
- Manage time progression (day/night cycle)
- Generate narrative summaries for player actions
- Create concise 1-2 sentence summaries
- Include contextual details
- Use proper character references
For journal details, see [[../core-systems/journal-system|Journal System]].
- Maintain recent game events and actions context
- Implement summarization for token limit management
- Clear non-essential context data regularly
For context guidelines, see [[../ai/prompt-engineering/core-prompts|Core Prompts]].
- Process player input with keyword matching
- Provide clarification for ambiguous inputs
- Validate AI-generated content
- Use fallback responses when needed
- Handle API timeouts and failures
- Cache frequently used game data
- Optimize prompt construction
- Efficient state storage implementation
- React Context integration for game state
- State updates for game progress
- Next.js API routes for AI communication
For state management details, see [[../core-systems/state-management|State Management]].
- Text-based response rendering
- Formatted output for game data
- Basic caching implementation
For UI details, see [[../architecture/ui-wireframes|UI Wireframes]].
- [[../ai/game-master-logic|AI Game Master Logic]]
- [[../ai/prompt-engineering/combat|Combat Prompts]]
- [[../ai/prompt-engineering/character-creation|Character Creation Prompts]]
- [[../boot-hill-rules/game-overview|Game Rules Overview]]
- [[../features/_current/narrative-formatting|Narrative Formatting]]