How ovotech/genesys-web-messaging-tester works
The repository provides a CLI for testing Genesys Cloud chatbot deployments through scripted dialogues and AI-generated customer conversations, plus a library that manages the Web Messenger guest session and conversation behavior. The main workflow loads and validates a scenario, connects to Genesys, performs dialogue steps, and reports results. The README also documents OpenAI and Google Vertex AI options. Several AI and validation modules are present in the tree but were not excerpted, so their internal wiring is not asserted.
Main entry points: createScriptedTestCommand.ts Scripted runner · WebMessengerGuestSession.ts Guest session · createAiTestCommand.ts AI test command · createCli.ts CLI commands
Components 21
CLI testing
- CLI commands
packages/genesys-web-messaging-tester-cli/src/createCli.ts - Scripted runner
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts - YAML reader
packages/genesys-web-messaging-tester-cli/src/fileSystem/yamlFileReader.ts - Script parsing
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/testScript/parseTestScript.ts - Scenario validation
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/testScript - Results and UI
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/ScenarioResult.ts
AI testing
- AI test command
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/createAiTestCommand.ts - Prompt handling
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/prompt - Completion interface
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/chatCompletionClients/chatCompletionClient.ts - OpenAI client
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/chatCompletionClients/chatGpt/createChatCompletionClient.ts - Vertex client
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/chatCompletionClients/googleVertexAi/createChatCompletionClient.ts - AI output
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/output/saveOutputJson.ts
Messaging runtime
- Conversation logic
packages/genesys-web-messaging-tester/src/Conversation.ts - Guest session
packages/genesys-web-messaging-tester/src/genesys/WebMessengerGuestSession.ts - Message reordering
packages/genesys-web-messaging-tester/src/genesys/message-delayer/ReorderedMessageDelayer.ts - Message types
packages/genesys-web-messaging-tester/src/genesys/StructuredMessage.ts - Transcription
packages/genesys-web-messaging-tester/src/transcribe/Transcriber.ts
External services
- Genesys Web Messenger
- OpenAI API
- Vertex AI API
Other components
- CLI user
Connections 23
- CLI user → CLI commands: runs command
- CLI commands → Scripted runner: registers command
packages/genesys-web-messaging-tester-cli/src/createCli.ts - CLI commands → AI test command: registers command
packages/genesys-web-messaging-tester-cli/src/createCli.ts - Scripted runner → YAML reader: reads script
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts - Scripted runner → Script parsing: extracts scenarios
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts - Scripted runner → Scenario validation: validates input
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts - Script parsing → Conversation logic: generates steps
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/testScript/parseTestScript.ts - Scripted runner → Conversation logic: runs dialogue
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts - Scripted runner → Guest session: creates session
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts - Scripted runner → Results and UI: records outcomes
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts - Conversation logic → Guest session: uses session
packages/genesys-web-messaging-tester/src/Conversation.ts - Guest session → Message reordering: buffers messages
packages/genesys-web-messaging-tester/src/genesys/WebMessengerGuestSession.ts - Message reordering → Message types: orders messages
packages/genesys-web-messaging-tester/src/genesys/message-delayer/ReorderedMessageDelayer.ts - Guest session → Message types: processes messages
packages/genesys-web-messaging-tester/src/genesys/WebMessengerGuestSession.ts - Guest session → Genesys Web Messenger: connects and exchanges
packages/genesys-web-messaging-tester/src/genesys/WebMessengerGuestSession.ts - Scripted runner → Transcription: transcribes messages
packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts - AI test command → Prompt handling: uses prompts
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/createAiTestCommand.ts - AI test command → Completion interface: requests completions
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/createAiTestCommand.ts - Completion interface → OpenAI client: implemented by
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/chatCompletionClients/chatGpt/createChatCompletionClient.ts - Completion interface → Vertex client: implemented by
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/chatCompletionClients/googleVertexAi/createChatCompletionClient.ts - OpenAI client → OpenAI API: calls API
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/chatCompletionClients/chatGpt/createChatCompletionClient.ts - Vertex client → Vertex AI API: calls API
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/chatCompletionClients/googleVertexAi/createChatCompletionClient.ts - AI test command → AI output: saves results
packages/genesys-web-messaging-tester-cli/src/commands/aiTest/createAiTestCommand.ts