AI Service Architecture
Provides AI-powered features using AWS Bedrock (Amazon Nova models).
Key Responsibilities
- Mock response generation from schemas
- Natural language to configuration
- Smart suggestions for routes and responses
- Test data generation
- Protocol mock definition generation (30+ protocol types)
Architecture
The AI Service is largely stateless - it receives requests, calls AWS Bedrock, and returns results. No database is required.
Integration Points
Other services call the AI Service internally for:
- Response body generation (Mock Engine)
- Schema analysis (Platform Service)
- Import enhancement (Platform Service)
- Protocol definition generation (Frontend MockDefinitionEditorModal)
Protocol Definition Generation
The AI Service generates complete protocol mock definitions for all 30+ protocol types:
Protocol Prompt Registry: Each protocol type has a registered TypeScript interface definition and protocol-specific generation instructions. The registry ensures AI generates structurally valid definitions for each protocol type.
Supported action types:
protocol_generate— Generate a full mock definition from a user prompt