Agentic AI - Technical Support Document

Prev Next

1. Introduction and Purpose

This handbook describes the methodology the Application Support team should follow when reviewing Sestek Agentic AI conversations in the production environment via Kibana and Grafana, the steps they should pay attention to, and common error patterns.

The objective is threefold:
• To track the end-to-end flow of a conversation within the system using the ExternalConversationId and TraceId filters in Kibana.
• To identify erroneous or abnormal conditions in the flow and determine the root cause (our own system, external integration, LLM provider, or configuration).
• To provide concrete solutions or guidance for each identified error.

The document proceeds in the following order: Section 2 explains the basics of reading logs in Kibana; Section 3 demonstrates how to read a trace end-to-end in Kibana APM; Chapter 4—the main body of the document—categorizes both “normal but instructive” workflows and common error patterns using real-world interview examples, along with root causes, system behavior, and recommended solutions; Chapter 5 introduces Grafana Monitoring Dashboards; Chapter 6 concludes with a general checklist.

2. Guide to Log Analysis in Kibana

2.1. Filtering Strategy: ExternalConversationId and TraceId

Filtering by ExternalConversationId: Used to view ALL logs for a conversation (IVR call, webchat session, WhatsApp conversation) from start to finish. In IVR conversations, this is typically a numeric conversation ID (e.g., "111946737"); in webchat, it is a GUID prefixed with "Mobil..."; and in WhatsApp, it follows the "+90phone~sessionGuid" format. This filter is used to understand the general flow of a conversation—which nodes it passed through and how long it stayed at each node.

Filtering by TraceId: This is used to cross-reference which services a single request (e.g., an AI Agent invoke call, a Live Chat Transfer trigger) passed through within the system. Unlike the ExternalConversationId filter, the TraceId filter brings together logs from services that normally appear separate—such as QueueOffloader, STAI AI Module, and CAI Auth Server—all belonging to the SAME request, even outside the CAI Orchestrator.

Practical Use: First, view the general flow using ExternalConversationId and identify a suspicious or erroneous moment (e.g., an “Error” line or an unexpected delay). Find the fields.TraceId value in a log line near that moment, then filter again using that TraceId to see which services processed that specific request and how long it took.

Note: Not every log line may contain a TraceId (e.g., it may only appear in some summary lines at the Information level); the most reliable source is typically external call lines such as “Sending request to...” or “Response from...”.

Image

2.2. The Anatomy of a Node Log Line

Every node operation in Orchestrator is logged in the following format:
"Variable" node with conversation details ConversationItem { Tenant: "ARCELIKVA", ProjectName: "Arcelik_AIAgent", Id: "111946737", ConversationSessionId: "b94b2ceb-..." }, inputs [...] and dialog context { DynamicContext: [...], StaticContext: [...] }

There are three important things: (1) the node name at the beginning of the line (e.g., "Variable," "AI Agent," "RAG Agent," "Live Call Transfer"), (2) the Tenant/ProjectName/ConversationSessionId to which the node belongs (to avoid mixing logs from different projects), (3) the inputs[].ReplacedValue field, if present. The rest of the ConversationItem and DynamicContext are fixed details that repeat for every node (llm_url, API keys, etc.); these can be skipped during review.

In Agentic/LLM-based projects (see Section 4.1), instead of a classic node chain, a single “AI Agent” node and recurring “Sending request to .../v1/invoke” / “Response from .../v1/invoke” pairs of lines are observed; this is normal, and one pair is generated for each user session.

2.3. Roles of Components (ApplicationName) — Quick Reference

Application Name Role
CAI UsherNet Common entry/pod-selection point for synchronous channels (IVR, Webchat).
CAI BotHub Entry point for asynchronous webhook channels (WhatsApp, Facebook).
CAI Orchestrator Core business logic: session/license management, node/AI Agent execution, SR/TTS, HTTP/LLM calls.
CAI NLU Provider Intent prediction from free-form text ("recognize-by-exact-match").
CAI LiveChatHub When a Live Chat or Call Transfer is triggered, it forwards the request to an external platform (Alotech, etc.)
CAI WebChat Manages the SignalR-based real-time connection for the WebChat channel.
CAI Auth Server / STAI Auth Server The OAuth2 token servers for the Virtual Agent and ML layers, respectively.
QueueOffloader The common gateway for all STAI/Core model services, such as SR, TTS, text manipulation, sentiment analysis, redaction, and AI Agent.
STAI AI Module The AI Agent/LLM model server itself; it processes invoke requests, and error/timeout messages are generated here.
CAI Data Service Not part of the conversation; it is a background service for log/trace viewing (Elasticsearch queries) and collecting NLU training data.

2.4. Frequently Recurring and Negligible Log Patterns

Log Template Why is it unimportant
"Context variable name for dynamicValue ..." A separate line is generated for each dynamic variable within a node; the line above it already indicates which node it belongs to.
"Copying body/status code/headers to response" (UsherNet/BotHub) Indicates that the response has been technically sent to the channel; this is repeated in every round.
"Hold message timer started/cancelled" This is the hold/stall message mechanism; it is irrelevant if there are no issues.
"GET /health/live", "GET /metrics" Infrastructure health/metrics scan (liveness probe, Prometheus); seen continuously across all services.
"APM: ... elasticsearch-master ... traces-apm*/filebeat-cai*" (CAI Data Service) Not part of the conversation—this is the tool’s own query used to view these logs (i.e., it’s a trace of the action you’re currently performing).

2.5. Monitoring in Grafana / Dashboard

While Kibana displays the details of a single incident, Grafana/Dashboard shows general trends and aggregate issues. When a support request comes in, checking the Dashboard first allows you to quickly determine whether the issue is isolated or systemic.

Tab When to Check
HTTP Metrics If you suspect slowness or errors in external integrations (arc-gw-api, customer web service, etc.), the error rate and response time by endpoint can be viewed here. Available only in environments where Prometheus is installed.
AI Agent If you suspect an increase in the overall error rate, average response time, or token consumption in an LLM/AI Agent-based project, you can use this section to determine whether it’s a single timeout or a general slowdown across the LLM provider.
Intents If there is a sudden increase in the fallback rate (e.g., suspicion of a malfunction in the NLU model or failure to recognize a new phrase pattern).
Business Metrics When measuring business impact, such as an increase in the handoff rate to a live agent or an abnormal prolongation of session duration.

Rule of thumb: If you see a metric anomaly on the dashboard, open 2–3 sample conversations from that time period in Kibana using the ExternalConversationId and compare them to the patterns in Section 4; this allows you to identify the root cause in minutes rather than hours.

Note: The "Dashboard" referred to here is the product’s own monitoring interface (accessible to the tenant). The raw Grafana dashboards used by the Application Support/DevOps team (VA Log Metrics, VA Requests, AI Agents alert dashboard, HTTP Requests, Kubernetes namespace resource usage) are separate and more detailed—see Section 5.

3. APM Trace Analysis (Kibana APM)

Chapter 2 explained how to read log lines using ExternalConversationId/TraceId. This chapter explains how to examine the same trace.id as a visual timeline (waterfall) in Kibana APM’s “Trace sample” panel—ideal for seeing at a glance which services a request passed through and how long it took.

The guide walks through a real trace ID—a rich, educational example that includes 5 services, 2 LLM calls, and a hidden background job lasting over 4 seconds:

Field Value
Trace ID 6e53c12bfa8fd98fcfb0e7a5d7216a20
Root Service CAI UsherNet
Root Operation POST {*path}
Processing time (HTTP response) 97 ms
Total Trace Time 4123 ms
Result 200 OK
Environment development

Note: The panel images in this section are schematic renderings of the actual Kibana screen—the durations, span names, and service names are taken from the trace being examined; they are not pixel-for-pixel screenshots.

3.1. Understanding the Kibana APM Screen

Before opening a trace, you need to understand what the service page you’re viewing is telling you. When you paste a trace ID into the search box, this page narrows down to a single instance associated with that ID.

Figure — Top section of the Kibana APM service page

Image

This top section shows the service’s overall health—it is not specific to a single trace. The actual analysis begins in the Trace Sample panel that opens a bit further down: here, a single instance is selected, and that instance’s entire internal flow is plotted as a waterfall chart.

3.2. Reading the Trace Sample Panel and Waterfall

This panel consists of four parts: the trace selector, the service legend, the “critical path” indicator, and the main waterfall chart. Each answers a different question. Four rules for reading:
• Indentation = parent/child relationship. A line runs within the line above it. A queued request (HandleQueuedRequest) always appears below the call that initiated it.
• Bar position = start time, width = duration. The top ruler (0 ms → 4123 ms) is the same scale for all rows.
• Color = service. The same color means you’ve passed through the same service—service jumps (color changes) indicate network boundaries.
• Icon = span type. An HTTP call ⇄, a database icon represents a Redis command, and a triangle warning indicates an internal warning or retry.

3.3. End-to-End Flow of This Trace

Image

Let’s summarize the rows in the table above in nine stages, in the order they occurred:

1. CAI UsherNet handles the request (0–97 ms): The root transaction POST {*path} begins. First, three short Redis commands (LRANGE, HGET, EXPIRE)—likely for rate limiting or idempotency checking—followed by a 92-ms call that routes the request internally to the CAI Orchestrator.
2. The CAI Orchestrator processes the message (6–94 ms): The MagpieSynchronizerService receives the message, reads the Conversation.ConsumeItemsAsync conversation state from Redis (HMGET/EXPIRE), and initiates a call to the AI-text-sentiment service for sentiment analysis.
3. The queue-offloader kicks in — relay #1 (8–74 ms): The request is not sent directly; it passes through the HandleQueuedRequest → ExecuteQueuedRequest → SendRpcMessage → HttpRequestConsumer chain. This layer is an RPC abstraction that appears as a synchronous HTTP call but is queued in the background.
4. AI-text-sentiment generates the sentiment score (20–68 ms): The text’s sentiment is derived through the steps Inference-Batch-Utterance → Inference-Single-Utterance → Normalization, and the result is returned within 46 ms.
5. A background task is triggered while the response is being returned (94–4,123 ms): The CAI Orchestrator completes the HTTP response in 97 ms—but immediately afterward, a separate task named FlowRunner.ConsumeItemsAsync, lasting 4,028 ms, begins. The user receives the response, but this task must complete before the trace closes.
6. The queue-offloader kicks in—relay #2 (92–4,098 ms): The same relay mechanism this time routes the call to the AI-ai-agents service—but this relay takes 4,006 ms because the other side (the agent service) takes much longer to process the request.
7. AI-ai-agents is executing the graph (103–4093 ms): invoke_execute_graph first reads the agent and guardrail configuration from Qdrant (invoke_create_agents, 9.8 ms), then executes the main agent graph (invoke_graph_ainvoke).
8. First LLM call: response generation (115–2,892 ms): The single_agent_acall → litellm_acompletion → raw_gen_ai_request chain represents the main request sent to the model and takes 2,777 ms—the largest single segment of the trace.
9. Second LLM call: safety check (2900 – 4093 ms): output_safety_llm_check sends the generated response to a guardrail model and receives the result in 1193 ms. Checkpoints are written to Redis, the response travels back through the chain, and the trace closes at 4123 ms with the MagpieSynchronizerService returning "typing."

3.4. Finding the Bottleneck: Where Did the 4,123 ms Go?

Although the root HTTP request was responded to in 97 ms, the trace took a total of 4123 ms. The difference is due to an asynchronous task running in the background that doesn’t keep the user waiting—but still consumes server resources.

2771 ms + 1187 ms = 3958 ms — 96% of the trace was spent on two sequential (not parallel) LLM calls: first, the call that generated the response (litellm_acompletion, 2777 ms), followed by a safety/guardrail check that validates that response (output_safety_llm_check, 1193 ms). If these could have been run in parallel, the total time would have dropped to ~2800 ms.

How can this be identified?
• In a waterfall chart, the longest bars are always the first place to look—in this trace, FlowRunner.ConsumeItemsAsync (4,028 ms) and the two raw_gen_ai_request bars within it immediately stand out.
• Turning on the "Show critical path" toggle highlights which spans actually contribute to the total time.
• Clicking on a span and looking at the “% of transaction” value breaks down that span’s share into a single number (e.g., the first LLM call accounts for 67% of the total).

3.5. Clicking a Span: Details and Metadata Panel

Clicking any bar in the waterfall chart opens a details panel specific to that span. The two most valuable pieces of information are at the top: total duration and percentage of the trace.

Figure — litellm_acompletion span details panel

Image

The line “service.name: AI-ai-agents” here confirms an important point: although this span appears immediately below the queue-offloader in the waterfall, it actually ran in a completely different service (the AI agent service).

3.6. Metadata at the Transaction Level

The "Metadata" tab lists fields associated not with a single span, but with the root transaction of the selected trace example—such as request/response information, the agent used, and observer (APM server) information.

Figure — HTTP / Event / Agent / Observer metadata at the transaction level
Image

While the root transaction uses opentelemetry/dotnet, the spans from the AI agent service use opentelemetry/python—a hallmark of a polyglot architecture.

3.7. Logs Tab: Verifying Spans with Logs

The “Logs” tab on the same panel lists all log entries (57 documents in this example) that share the same trace.id as the selected trace sample, in chronological order.

Figure — Logs tab: log lines belonging to the same trace.id
Image

The first line is particularly valuable: the log entry independently verifies the duration (~4011 ms) of the POST ai-agents…/v1/invoke span we saw in the waterfall chart.

3.8. What Does “Show Critical Path” Do?

When this option is enabled, the spans in the selected span chain that actually contribute to the total duration are highlighted with a thick border.
• A span’s duration may be long, but it may not be on the critical path—even if the span itself is short, the main delay could occur in another branch.
• The critical path provides a direct answer to the question, “Which optimization actually reduces the total latency?”
• In this trace, the critical path does not consist of short Redis calls; rather, it runs through two LLM calls arranged one after the other.

3.9. Checklist for Analyzing Any Trace

• Check the metadata: total time, HTTP status, environment (development/production)—analyzing in the wrong environment is the most common mistake.
• Read the service legend: how many services it passes through, which color corresponds to which service—map it out in your head before you start scanning the waterfall.
• Find the longest bar: usually a single span accounts for the majority of the total time; open that one first, then its children.
• Distinguish between synchronous and asynchronous operations: the HTTP response returned to the user and the background work usually take different amounts of time — don’t confuse the two.
• Identify the critical path: See which span optimizing will actually make a difference; don’t rely on intuition.
• Verify with the Logs tab: When you see a suspicious duration or error, confirm it by checking the log lines associated with the same trace.id.

4. Sample Interview Analyses (Insightful Findings)

The three conversations in this section contain no errors; however, they are instructive because they demonstrate the system’s normal but lesser-known behaviors. Understanding these examples before reading the error catalog in Section 4 makes it easier to distinguish between “normal” and “abnormal” behavior.

4.1. Example 1 — Agentic/RAG-Based IVR Call (Arçelik)

Field Value
Channel ivr-external
Conversation ID 111946737
Duration ~3 min 51 sec
Subject Washing Machine Installation Appointment

This project uses a fully agentic design that flows through a single "AI Agent" node instead of the classic node chain (Condition → Variable → Ask):

• Each user response flows as a separate "Sending request to .../v1/invoke" → "Response from .../v1/invoke" pair; the intermediate Condition/Variable nodes are not visible.
• Multi-agent handoff: On the first call, a "triage" agent (agent_id: 76bcb069...) determines the intent and hands it off to a "setup" expert agent (agent_id: f7a61b5c...).
• The RAG Agent sends a query to the knowledge base via the "verify_address" subflow to verify the address; when the neighborhood provided by the customer (Altınova) cannot be found, it suggests alternative neighborhoods.
• Since the customer does not approve the suggestion in either of the two attempts, the agent, acting on its own initiative, calls the “live_agent” tool and routes the call to Live Call Transfer—this is not an error, but the agent’s planned fallback decision.
• After the exit, an automatic “Post Session Flow” runs; this bypasses the AI Agent service and sends a chat/completions request directly to litellm.sestek-stai:4000 (likely for the session summary or CRM record).

The diagram below illustrates the end-to-end cross-service flow of a round in the conversation (address verification) using actual log lines:

Figure — Agentic/RAG IVR Round: Address Verification Flow (Conversation 1)

Image

Lesson learned: In Agentic projects, the question “Why can’t I see the Condition/Variable nodes?” is not an error—the AI Agent node manages multi-turn dialogs internally. In Kibana, the lines you should actually be tracking in these types of projects are “Sending request to .../invoke” and “AI Agent Tool Call request received.”

4.2. Example 2 — Webchat: Survey Cannot Be Submitted After Live Agent

Field Value
Channel webchatmobile-voice-support
Conversation ID Mobile076009af-ee60-2d9c-6002-f4ffa028f3fa
Duration ~29 min (including wait time)
Subject Order inquiry → Live Agent

• NLU returns an empty result twice in a row (top prediction: ""); the bot tries the Grispi (ticket) and TıklaGelsin (order) APIs in sequence, and when neither returns a result, it connects to Alotech via Live Chat Transfer.
• Once the live chat ends ("endOfConversation"), the bot attempts to send the customer a satisfaction survey with emojis.

Warnings displayed: "Outgoing request sent to http://cai-webchat/webchat/home/push ... returned status code 404" and "No active SignalR connection found... the client may have disconnected."
• The system waits 10 minutes and tries again, receives a 404 again, and finally, the conversation is cleaned up with the message "Timer task is canceled."

The diagram below illustrates the process from the end of the live session to the cleanup of the conversation using actual log lines:

Figure — Webchat: Post-Live Agent Survey Submission Flow (Conversation 2)
Image

Lesson Learned: This is NOT a system error—the customer closed the browser tab, causing WebChat’s real-time SignalR connection to drop. At first glance in Kibana, it appears to be a “404 error,” but the root cause lies on the client side. When compared to the next example (3.3), it becomes clear why this is a situation specific to WebChat.

4.3. Example 3 — WhatsApp: Successful Scoring After Live Agent

Field Value
Channel whatsapp-unifonic
Conversation ID +905346919791~e043931d-7a9d-4811-8894-fb6a2f26c6b0
Duration ~33 min (including 22 min of live conversation)
Subject Order issue → Live Agent → satisfaction rating

• The same NLU-empty-result → Live Chat Transfer pattern is observed here as well.
• The live call lasts 22 minutes; when Alotech sends an “endOfConversation” signal, the bot asks the customer about their experience via WhatsApp.
• When the customer responds, the rating is successfully sent (200 OK) to the “va.tr.knovvu.com/magpie/ext-api/rating” endpoint.
The diagram below shows how the same scenario was successfully completed on WhatsApp using actual log lines; compare with Figure B:

Figure — WhatsApp: Post-Live Agent Rating Workflow (Conversation 3)

Image

Lesson Learned: Survey submission on webhook-based (asynchronous) channels like WhatsApp does not rely on an instant SignalR connection, as is the case with webchat; therefore, the submission issue in Example 3.2 does not occur on WhatsApp. When a support request comes in with the complaint “the survey didn’t go through,” first determining whether the channel is webchat or webhook-based (WhatsApp/Facebook) will lead you to the correct root cause much more quickly.

The examples below catalog seven real-world error cases from a production environment, along with the log signature, root cause, the system’s response, and the recommended action. Each example is taken from an actual support interaction.

# Error Source Typical Outcome
4.4 HTTP Node timeout (external system response delayed) CAI Orchestrator Generally recoverable (retry/fallback)
4.5 AI Agent (LLM) request times out STAI AI Module Fails to transfer to Live Call/Chat
4.6 Incomplete or corrupted response from the LLM service (mid-stream) STAI AI Module (litellm) Fails to transfer to Live Call/Chat
4.7 RAG Agent — content filtering (Azure OpenAI Content Policy) STAI AI Module (litellm) Generally recoverable (alternate flow)
4.8 AI Agent returns "null" (Supervisor/multi-agent) CAI Orchestrator Fails to transfer to Live Call/Chat
4.9 TTS error — "unknown voice name" CAI Orchestrator / TTS Usually recoverable (text is still delivered)
4.10 AI Testing scenario generation returns an empty result CAI Data Service / STAI AI Module 403 after 78+ seconds of waiting

4.4. HTTP Node Timeout (External System Response Delay)

The HTTP Node request sent to "https://arc-gw-api.de-c1.cloudhub.io/1.0/aftersales/asset?...&tel1=5385475070" timed out. Response Time: 45.0005162 seconds. Conversation: "112032303"

Root Cause: The client/integration web service called by an HTTP node in the scenario (in this example, Arçelik’s arc-gw-api) does not respond within the defined timeout period (45 seconds). This is usually not a problem on our end, but rather stems from the other party’s web service being slow or overloaded at that moment.

System Behavior: In the example under review, although the node timed out, the flow continued with “End With Result,” and the next HTTP call a few seconds later (likely a retry of the same operation) was successful; a message was received confirming that the customer record was successfully created. In other words, a one-time delay in the external system does not completely halt the flow, as intended by the design.

Figure — 4.4 HTTP Node Timeout Flow
Image

Recommended Action: If this is an isolated instance and subsequent attempts are successful, no action is required—simply log the event. If it recurs frequently on the same integration endpoint within a short period, check the error/duration trend for that endpoint in the HTTP Metrics tab in Grafana and share it with the other party (the customer team responsible for the integration)—this is not an issue that can be resolved on our end.

Suggested Kibana Query: message: "timed out" AND fields.ApplicationName: "CAI Orchestrator" — search for the domain name within the message to narrow it down to a specific endpoint (e.g., "arc-gw-api").

4.5. AI Agent (LLM) Request Timeout

[AIModule:AIAgents.Invoke.Timeout] Request timeout: Agent invoke exceeded 45.0 seconds and was canceled

Root Cause: The request sent by the AI Agent node to the LLM provider (via litellm) exceeded the 45-second timeout limit. This is typically caused by current traffic or latency on the LLM provider’s side (e.g., Azure OpenAI).

System Behavior: The STAI AI Module reports the error to the CAI Orchestrator; the Orchestrator triggers a specific “AI Agent Error” subflow predefined in the scenario. This subflow directs the call directly to the “Live Agent Transfer” subflow, and the conversation ends with “I am transferring you to a customer service representative; please stay on the line” via Live Call Transfer + Exit.

Figure — 4.5 AI Agent (LLM) Timeout Flow

Image

Recommended Action: This is a built-in self-protection mechanism of the system—no action is required in isolated instances. If a general increase in the error rate is observed for the same project/tenant in Grafana’s AI Agent tab, check whether there is an outage or slowdown on the LLM provider’s side (Azure OpenAI) and, if necessary, consider increasing the timeout duration.

Suggested Kibana Query: message: "AIAgents.Invoke.Timeout" AND fields.ApplicationName: "STAI AI Module"

4.6. Incomplete or Corrupted Response from the LLM Service (Mid-Stream Error)

[AIModule:AIAgents.LLM.ServiceUnavailable] litellm.MidStreamFallbackError: litellm.APIConnectionError: APIConnectionError: OpenAIException - Response payload is not completed: <TransferEncodingError: 400, message='Not enough data to satisfy transfer length header.'>

Root Cause: The connection is terminated before the response, which is being streamed (in chunks) from the LLM provider, is completed ("Not enough data to satisfy transfer length header"). This is a temporary network/service outage on the LLM provider’s side; it does not originate from our infrastructure.

System Behavior: Exactly the same recovery pattern as in 4.2: The "AI Agent Error" subflow is triggered → "Live Agent Transfer" → Live Call Transfer → Exit.

Figure — 4.6 LLM Mid-Stream Error Flow

Image

Recommended Action: Same as 4.5; monitor if isolated, but if it becomes frequent, check the LLM provider’s status (status page / account manager). Note: If a fallback model group is defined in the litellm configuration, you should also verify whether the system automatically switches to an alternative model during such temporary errors (see the fallback configuration note in 4.7).

Suggested Kibana Query: message: "MidStreamFallbackError" OR message: "AIAgents.LLM.ServiceUnavailable"

4.7. RAG Agent — Content Filtering (Azure OpenAI Content Policy) Error

litellm.BadRequestError: Error code: 400 - {'error': {'message': "...The response was filtered because the prompt triggered Azure OpenAI's content management policy...No fallback model group found for original model_group=azure-gpt-4.1-arcelik-v2. Fallbacks=[{'sestek-pro-zorlu': [...]}]"}}

Root Cause: The RAG Agent’s knowledge base query (retrieve-and-generate) is tripping Azure OpenAI’s content security policy and is being rejected with a 400 error. There is also a notable detail in the log: "No fallback model group found for original model_group=azure-gpt-4.1-arcelik-v2" — meaning that a defined fallback model group for this model cannot be found in the litellm configuration (the list shows groups belonging to other tenants, but none specific to this model).

System Behavior: Unlike in versions 4.2 and 4.3, this error affects only the RAG Agent’s knowledge base query, not the entire AI Agent. The Orchestrator catches the error and continues the flow with "End With Result"; the AI Agent resumes the conversation from where it left off and offers an alternative solution (the "offer_solution" subflow—an SMS link is sent to the customer so they can self-serve). The call does not escalate to a Live Agent.

Figure — 4.7 RAG Agent Content Filtering Error Flow

Image

Recommended Action: If this is an isolated instance, it likely means there is a phrase in the user’s sentence that triggered the filter—no action may be required. However, the “No fallback model group found” line should also be noted: the fact that no fallback group has been defined for this model on the litellm side could cause the system to fail directly in a future scenario where this model becomes completely inaccessible (not just due to content filtering). This should be shared with the platform/DevOps team, and it may be recommended that a fallback group be defined for the relevant model.

Kibana Query Suggestion: message: "content management policy" OR message: "No fallback model group found"

4.8. AI Agent Returned "null" (Supervisor / Multi-Agent Scenario)

AI Agent invocation result returned null: "SupervisorAgent" for "..."

Root Cause: In a multi-agent architecture, a "SupervisorAgent" (router/supervisor agent) returns null without producing the expected result. In this example, there is also a "Warning" immediately preceding it: "Received a report message before any token message from the AI Agent stream... Skipping the message" — meaning the order of messages from the agent service differs from what was expected; a "report" type message arrived first and was skipped; subsequently, the expected main content never arrived.

System Behavior: The Orchestrator interprets the empty result as an error and directly triggers the “Live Agent Transfer” subflow. In this example, a project/tenant-specific “Outside Working Hours” check also intervenes, after which the process concludes with “Live Call Transfer + Exit.”

Figure — 4.8 AI Agent “null” Result Flow

Image

Recommended Action: This error pattern occurs in projects using multi-agent orchestration (see Section 4.1) when the sequence of messaging between agents is disrupted. No action is required in isolated instances. If it recurs frequently, it is recommended that the agent definitions and routing logic of the relevant project be reviewed with the project owner or development team.

Suggested Kibana Query: message: "invocation result returned null" OR message: "before any token message"

4.9. TTS Error — "unknown voice name" (Incorrect Voice Configuration)

[TextToSpeech] The text-to-speech synthesis request failed with a 404 error. ReasonPhrase: "Not Found", Error Code: "http-404", Error Message: "unknown voice name"

Root Cause: The TTS voice name defined in the project is not recognized by the TTS engine being used. This situation is particularly notable in the example under review: the error occurs in a channel with the channelId "TestChat," which is a text-based webchat test channel—meaning the system is attempting to make a TTS call even in a channel where voice is not required at all. This is a configuration issue: either TTS has been left enabled unnecessarily in the channel settings, or the defined voice name is incompatible with the current TTS engine.

System Behavior: The system attempts the operation twice, both attempts failing with a 404 error (“Could not synthesize audio. Check TTS integration settings!”), but the text message is still delivered to the webchat normally (“Sent Activity”). Thus, the user experience is not compromised in this example; it merely generates unnecessary, repetitive error logs.

Figure — 4.9 TTS "unknown voice name" Flow
Image

Recommended Action: Ensure that TTS integration is disabled in non-voice (text-based) channels. If this error occurs in voice channels, verify that the voice name in the project’s TTS settings matches the current voice list of the TTS engine being used—this is typically caused by an outdated voice name remaining after a TTS engine or voice catalog update.

Suggested Kibana Query: message: "unknown voice name" OR message: "Could not synthesize audio"

4.10. Empty Completions in AI Testing Scenario Generation

{"model":"gpt-5.4-2026-03-05","choices":[{"finish_reason":"length","message":{"content":"","role":"assistant"}}],"usage":{"completion_tokens":8000,"reasoning_tokens":8000,"accepted_prediction_tokens":0}}

Root Cause: The "generate scenarios" function of the AI Testing feature (POST /api/app/ai-testing-definitions/generate-scenarios) sends a request to a reasoning model (gpt-5.4) in the background. All 8,000 completion tokens allocated to this model are consumed by internal reasoning, leaving no tokens for the actual/visible response (finish_reason: "length", content: ""). The HTTP layer treats this as "successful" (200 OK) because the connection completes properly; the actual error occurs only at the application level, where the returned content is empty.

System Behavior: CAI Data Service retrieves a token from STAI Identity and sends a scenario generation request to the AI Agent service (ai-agents.sestek-stai). The response returns as 200 OK exactly 78.685 seconds later, but the content is empty. CAI Data Service detects this and logs the error message “AI testing scenario generation returned an empty completion.” It then throws a BusinessException with code Raven:0100398 (“Test scenarios could not be generated. Please try again.”) and returns a 403 to the caller 78,826 ms later.

Figure — 4.10 Empty Response Flow in AI Testing Scenario Generation

Image

Lesson Learned: This error pattern is not visible in either the HTTP status code (200 OK) or the network layer—it can only be detected through the application-level “Error” log and the final 403 response. Additionally, even though the user waited over 78 seconds, they ultimately receive a meaningless 403; this inconsistency between the wait time and the error code can be confusing at first glance. This risk (the entire token budget being consumed by reasoning) must be kept in mind in all integrations using reasoning models.

Recommended Action: If this is an isolated instance, the user can be prompted to try again with a “please try again” message. If this occurs frequently, increasing the completion/max_token limit for the relevant model or lowering the reasoning_effort setting should be evaluated with the platform/DevOps team. Additionally, ensure that such “200 OK but empty content” scenarios continue to be logged at the Error level, as the HTTP Metrics in the Dashboard may display this error as a 200 and hide it.

Suggested Kibana Query: message: "returned an empty completion" OR message: "Raven:0100398" OR (message: "finish_reason" AND message: "length")

5. Grafana Knovvu VA Monitoring Dashboards

While Kibana and Kibana APM (Sections 2–3) drill down into the details of a single session or request, Grafana is used to monitor the Knovvu VA platform and the Kubernetes infrastructure that supports it in real time and at an aggregate level. The dashboards are divided into two main layers:

• Application/business layer (Knovvu VA folder): VA Log Metrics, VA Requests, AI Agents, and HTTP Requests dashboards — these display the logs generated by services, incoming request volume, error/latency status, and health by tenant (customer).
• Infrastructure layer (Kubernetes folder): Compute Resources / Namespace (Pods) dashboard — this shows how much server resources (CPU, memory) are being used by these services on a namespace-by-namespace basis.

When a support request comes in, checking Grafana allows you to determine within seconds whether the issue is specific to a single instance or represents a systemic/tenant-wide trend; once a suspicious time range has been identified, you can drill down to the relevant instance in Kibana using the methods described in Sections 2 and 3.

5.1. VA Log Metrics

This dashboard monitors the log entries generated by Knovvu VA services by counting them in 5-minute windows. You can focus on a specific microservice or log level (Error, Information, Warning) using the “service” and “loglevel” filters at the top.

Figure — VA Log Metrics dashboard
Image

The graph displays a separate line for each log level for the cai-magpie-api, cai-nlu-provider, cai-raven-api, cai-raven-identity, cai-webchat, and cai-outbound-manager-api services. Sudden spikes indicate an increase in errors or transaction volume in the relevant service during that time interval; therefore, the dashboard is primarily used to detect sudden spikes in errors (log level = Error) and quickly identify which service is experiencing issues.

5.2. VA Requests

This dashboard is used to monitor real-time traffic to the Knovvu VA Orchestrator service on a customer/tenant basis

Figure — VA Requests dashboard

Image

Panel What It Shows Purpose
Orchestrator API requests per minute (SYNC) Synchronous API call volume, requests per minute To view the real-time load of synchronous API traffic on a tenant-by-tenant basis
Orchestrator API message requests per minute (ASYNC) Volume of asynchronous message requests Monitor message traffic processed in the background
Orchestrator SR requests per minute (SYNC and ASYNC TOTAL) Total volume of Speech Recognition requests Monitoring the load on the speech recognition service by tenant
Orchestrator TTS requests per minute (SYNC and ASYNC TOTAL) Text-to-Speech request volume, total Track TTS service usage by tenant
Active Sessions (Sum of all tenants) Current total number of active sessions View the concurrent active speech/session load in the system

This dashboard is specifically used for capacity planning, detecting abnormal traffic spikes or drops by customer, and verifying that SR/TTS integrations are functioning properly.

5.3. AI Agents

Unlike the others, this dashboard is an alerting dashboard: It monitors the health status of AI Agent services by tenant and agent; you can focus on a specific customer or agent using the Tenant ID and AI Agent Name (drill-down) filters at the top.

Figure — AI Agents alerting dashboard

Image

The top-level overview row consists of four summary cards: Overall Error Rate, Overall p95 Latency, Total Traffic (total requests per second), and Active Tenants (number of active tenants with traffic). The cards summarize the status using green, yellow, and red colors. Below that, there are four sections, each corresponding to a defined alarm rule:

Section Alarm Rule Threshold / Duration Severity What it monitors
1. Error Rate AiAgentErrorRateHigh Error rate > 5%, 5 min Critical Error rate percentage per tenant
2. Latency AiAgentLatencyP95High P95 > 8,000 ms, 10 min Warning P95 latency by tenant/channel (Voice/other)
3. Token Usage AiAgentTokenUsageSpike 2x increase compared to yesterday, 30 min Warning Token usage by tenant (today/yesterday)
4. Traffic Anomaly AiAgentTrafficDrop Traffic < 0.1 req/s, 15 min Warning Traffic has dropped compared to the same time yesterday

This dashboard is used to detect early signs of potential issues in AI Agent services, such as an increase in errors, slowdowns, unexpected token/cost increases, or traffic interruptions; this allows the operations team to quickly identify the relevant tenant/agent when an alert threshold is approached or exceeded.

5.4. HTTP Requests

This dashboard tracks HTTP requests received by Knovvu VA based on tenant (customer) ID at a lower level (API/infrastructure level); unlike the human-readable names in the VA Requests dashboard, the tenant values here are in GUID format. You can focus on a single customer using the tenant filter at the top.

Figure — HTTP Requests dashboard
Image

Panel What It Shows Purpose
1 – Average Response Time Average response time per tenant (ms) To identify overall performance and slow-performing customers
2 – p95 Delay p95 delay per tenant (worst 5%) To identify outlier (queue/abnormal) delays
3 – Tenant & Status Code Number of requests broken down by tenant and HTTP status code Compare which tenants generated how many successful/failed requests
4 – Error Rate % Error rate percentage per tenant Quickly identify a customer with a rising error rate

Note: statusCode=200 indicates a successful request; statusCode=0 indicates a failed or incomplete request.

This dashboard is used to monitor performance and error status at the HTTP layer on a tenant-by-tenant basis—complementing the VA Requests dashboard—to quickly identify customers experiencing slowdowns or an increase in errors.

5.5. Kubernetes / Compute Resources / Namespace (Pods)

This is a standard Kubernetes-mixin infrastructure dashboard, not specific to Knovvu VA; it displays the CPU and memory usage of all pods in a selected Kubernetes namespace. You can switch between different service groups using the namespace filter at the top. The same eight panels are repeated for each namespace: four summary cards at the top (CPU/Memory Utilization — from requests / from limits), followed by a CPU Usage chart, a CPU Quota table, a Memory Usage (w/o cache) chart, and a Memory Quota table (comparison of usage, requests, and limits per pod).

Figure — sestek-cai namespace view

Image

Figure — View of the sestek-stai namespace
Image

Figure V — sestek-core namespace view
Image

This dashboard is used to see how much resources services in a namespace are consuming relative to their allocated resources (request/limit), to identify resource waste or the risk of bottlenecks (e.g., pods operating near their limit), and to perform capacity planning. The three namespaces under review can be summarized as follows:

Namespace CPU (request/limit) Memory (request/limit) Major Pods Contained Purpose
sestek-cai 4.30% / 0.89% 215% / 44.2% cai-bothub-* (7+ replicas), cai-raven-web, cai-raven-identity, rabbitmq-0, redis-master-0 Conversational AI (Knovvu VA) runtime services
sestek-stai 9.27% / 3.13% 51.7% / 36.5% ai-agents-* (5 replicas), audio-emotion-*, qdrant-0, presidio-anonymizer, presidio-analyzer, sentence-embedding, text-embedding Agent orchestration, audio emotion analysis, vector database (Qdrant), PII anonymization (Presidio)
sestek-core 17.4% / 17.6% 33.5% / 19.9% core-backend-api, core-identity, core-hound, core-sr-, core-tts-, rabbitmq-2 Authentication, multilingual SR engines, TTS engines with different voices

Important Note: If the Memory Utilization (from requests) value exceeds 100% (e.g., 215% for sestek-cai), this indicates that the pods in that namespace are using more memory than requested, suggesting that the requested values may be set too low relative to actual usage. This is not an error, but it is an observation that should be shared with the platform/DevOps team for resource planning purposes.

6. DevOps Checks (Kubernetes Environment)

This section contains the DevOps controls and commands that the Application Support team can use to manage, monitor, and troubleshoot the Kubernetes environment where Sestek applications run. The content is compiled from internal resources prepared by the DevOps team.

6.1. Basic Tools and Access

Terminal Server: This is the central server used to manage applications in the Kubernetes environment. An SSH client must be installed; Windows Terminal, Postman, SQL Server Management Studio (if using MS SQL), and pgAdmin 4 (if using PostgreSQL) are optional tools.

Once you have accessed the terminal server (or any server with kubectl access), you have access to the cluster. The correct kubeconfig file must be provided for kubectl to function.

Note: Since the DevOps team has previously accessed the relevant environments, support regarding the kubeconfig file is available. On the master server, you can access that environment’s kubeconfig by running the command "cd ~/.kube/config".

K9S: A terminal tool that provides a visual/interactive alternative to kubectl. Common shortcuts: ":namespace", ":ingress", ":pods", ":sts" (lists StatefulSets). For example, you can select the core-sr pod and click "Edit" to set the log level to "debug."

$ kubens sestek-stai # Sets the default namespace to sestek-stai

6.2. Basic kubectl Commands

Once you have access to the Kubernetes cluster, you can use the following commands to get information about the resources in the cluster:

kubectl get pods - Lists the pods in the cluster
kubectl get pods -A -o wide - Lists pods with all details, including IP addresses
kubectl get deployments - Lists deployments in the cluster
kubectl get services - Lists services in the cluster
kubectl get configmaps - Lists configmaps in the cluster
kubectl get secrets - Lists secrets in the cluster
kubectl get namespaces - Lists the namespaces in the cluster
kubectl get nodes - Lists the nodes in the cluster
kubectl get pv - Lists persistent volumes in the cluster
kubectl get pvc - Lists persistent volume claims in the cluster
kubectl get endpoints -A - Lists the endpoint IP addresses used by pods

For more detailed information, use the kubectl describe command:
kubectl describe pod - Retrieves detailed information about the specified pod
kubectl describe deployment - Retrieves detailed information about the specified deployment

Additional commonly used commands:
# Force-delete a pod — used for stuck pods
kubectl delete pod -n --grace-period=0 --force

# Save a pod’s PREVIOUS (pre-crash) logs to a file
kubectl logs --previous > pod_log.txt

# Find out which node a specific image is running on
kubectl get nodes -o custom-columns='NODE:.metadata.name,IMAGES:.status.images[].names[]' | grep

# List all pods on a node (including all namespaces)
kubectl get pods --all-namespaces --field-selector spec.nodeName=<NODE_NAME>

Note: The command "kubectl get ingress -n sestek-core" displays the IP addresses and DNS names of the Nginx ingress nodes in the specified namespace; this is the general method for finding interface addresses (see 6.3 and 6.4).

6.3. Credential Management (Vault)

Every credential on the Knovvu platform is located in the Vault interface.
$ kubectl get ingress -n sestek-common

You can access the Vault interface by pasting the address and port number from the ADDRESS field in the output of this command into your browser.
To access the Vault interface’s password or token, connect to the sestek-cockpit-0 pod:
vault

Sample output:
No resources found in the sestek-knovvu-common namespace.
https://vault.customeraddress.com
hvs.q0VLgEyxgMysLN7zmzKsiPAA

After logging into Vault, you can view your credentials by clicking the "kv" tab on the Vault homepage and copy them from there for use.

Note: "sestek-common" is the default name; this name may differ for some customers. In this case, you can list the namespaces using the "kubectl get namespaces" command and use the namespace whose name contains "common."

6.4. Accessing the Jenkins, Grafana, and Kibana Interfaces

Just as with Vault, the same method is used to find the addresses of the Jenkins, Grafana, and Kibana interfaces:
$ kubectl get ingress -n sestek-common

Paste the address and port number from the resulting ADDRESS field into your browser to access the relevant interface (Jenkins, Grafana, or Kibana). For detailed instructions on using Grafana dashboards, see Chapter 5; for Kibana log analysis methods, see Chapters 2–3.

6.5. Application Monitoring

6.5.1. Health Check (Pod Statuses)

To verify that applications are running properly, first check the status of the pods in the relevant namespace. Knovvu applications typically run in the sestek-cai, sestek-stai, and sestek-core namespaces (these names are defaults and may vary by customer):

$ kubectl get pods -n sestek-common
NAME READY STATUS RESTARTS AGE
jenkins 1/1 Running 0 1d
grafana 1/1 Running 0 1d
kibana 1/1 Running 0 1d
vault 1/1 CrashLoopBackOff 0 1d

In the example above, since the vault pod is in the CrashLoopBackOff state, you need to review the error messages: You can use the "kubectl describe pod " command.

Status Meaning
Running The pod is running
CrashLoopBackOff The pod is constantly crashing and restarting
Pending Pod is waiting to be started
Terminating Pod is being deleted
Completed The pod has completed its task and stopped
Error The pod encountered an error and has stopped

Rescuing a pod stuck in the "Pending" state: If a pod belonging to a deployment remains in the "Pending" state for an extended period, temporarily reducing the deployment to 0 replicas and then increasing it back to 1 may trigger the pod to be rescheduled:
kubectl scale deployment cai-raven-api --replicas=1 -n sestek-cai

6.5.2. Log Review

Kibana can be used to review application logs, or you can access pod logs directly (see Chapters 2 and 3 for detailed log and trace analysis methods via Kibana/APM).

Using Kibana: Paste the address obtained from the "kubectl get ingress -n sestek-common" command into your browser to access the Kibana interface.

Direct access to pod logs:
$ kubectl logs -n

# Example:
$ kubectl logs vault-0 -n sestek-common

6.5.3. DB, MinIO, RabbitMQ Access Control

To control access to services such as DB, MinIO, and RabbitMQ accessed from outside the cluster, you can use the connection-checker.sh tool located inside the sestek-cockpit pod. For usage details, refer to the DevOps team’s “Third-Party Connection Checker Tool” documentation.

6.6. Service-Based Debugging (Example: Redis)

Steps to follow when investigating why a service (e.g., Redis) is inaccessible or not functioning as expected:

Check Command
List services kubectl get svc -n
View service details kubectl describe svc redis-master -n sestek-stai
View the service YAML configuration kubectl get svc redis-master -n sestek-stai -o yaml
Check the pods associated with the service kubectl get endpoints redis-master -n sestek-stai
Verifying that the service is selecting the correct pods kubectl get pods -l app=redis -n sestek-stai -o wide
Check whether the service is exposed externally kubectl get svc redis-master -n sestek-stai
Retrieve the external access IP kubectl get svc redis-master -n sestek-stai -o jsonpath='{.status.loadBalancer.ingress[0].ip}'

The same approach (get svc → describe svc → get endpoints → get pods -l) applies to services other than Redis (RabbitMQ, PostgreSQL, etc.); only the service/label name changes.

6.7. Querying Resource Usage and Scalability

To list CPU and memory request and limit values:
kubectl get pods -A -o=custom-columns=
NAMESPACE:.metadata.namespace,
POD:.metadata.name,
CPU_REQUEST:.spec.containers[].resources.requests.cpu,
MEM_REQUEST:.spec.containers[
].resources.requests.memory,
CPU_LIMIT:.spec.containers[].resources.limits.cpu,
MEM_LIMIT:.spec.containers[
].resources.limits.memory

List the replica status of an HPA (Horizontal Pod Autoscaler):
kubectl get hpa -A -o=custom-columns=
NAMESPACE:.metadata.namespace,
HPA_NAME:.metadata.name,
MIN_REPLICAS:.spec.minReplicas,
MAX_REPLICAS:.spec.maxReplicas,
CURRENT_REPLICAS:.status.currentReplicas

These two commands are used to verify the resources requested/used by a service and its autoscaling status from the command line, complementing the Grafana Kubernetes namespace dashboard described in Section 5.5.