Creating a project workflow using a voice assistant and converting it into an approval card.

This commit is contained in:
2026-09-23 15:49:44 +03:30
parent 99df327ded
commit 7dc4344e0e
5 changed files with 424 additions and 7 deletions
+6 -1
View File
@@ -3,7 +3,7 @@ import { JwtAuthGuard } from '../auth/jwt-auth.guard';
import { CurrentUser } from '../auth/current-user.decorator';
import type { Actor } from '../common/record-scope';
import { AiAskService } from './ai-ask.service';
import { AskMentoDto } from './dto';
import { AskMentoDto, VoiceCommandDto } from './dto';
import { AiService } from './ai.service';
@Controller('ai')
@@ -19,6 +19,11 @@ export class AiController {
return { enabled: this.ai.isEnabled() };
}
@Post('voice-command')
voiceCommand(@CurrentUser() user: Actor, @Body() dto: VoiceCommandDto) {
return this.ask.parseVoiceCommand(user, dto.text);
}
@Post('ask')
askMento(@CurrentUser() user: Actor, @Body() dto: AskMentoDto) {
return this.ask.ask(user, dto.question, dto.personId);