Loading

Troubleshooting Agentforce Latency: A Self-Service Guide

Julkaisupäivä: Aug 20, 2026
Kuvaus

A slow-feeling agent is rarely one single thing running slowly — a response passes through several steps (routing, safety checks, reasoning, actions, generation, validation) before it reaches the user, and any one of them can add noticeable time. This guide helps you:

  1. Understand what “slow” actually means for a conversational agent, and what’s typical
  2. See where the time is actually going, instead of guessing
  3. Go straight to the fix that matches what you’re seeing
  4. Know what to capture if you need to bring in Support
Ratkaisu

Step 1: Know what you’re measuring

Three numbers matter, and they tell you different things:

MetricWhat it measuresWhy it matters
Time to First Token (TTFT)How long before the response starts appearingDrives how responsive the agent feels — this is what a user notices while waiting
Time to Last Token (TTLT)How long until the full response finishesMatters most for longer answers and for anything downstream that waits on the complete response
End-to-end latencyTotal time from the user’s message to a fully delivered response, including everything the platform does around the model callThe number that best reflects the user’s actual experience

As a rough rule of thumb for text/chat experiences: under ~5 seconds generally feels fine, 6–10 seconds is usually acceptable for a more complex request, 10–20 seconds starts to feel slow, and beyond ~20 seconds most users assume something is wrong. Voice is much less forgiving — anything much past ~5 seconds breaks the feel of a real-time conversation. These are general guidelines, not a guaranteed response-time SLA, and complex, multi-step requests will legitimately take longer than simple ones.

Step 2: Understand the pipeline a message travels through

A single turn typically passes through a sequence like this before the user sees anything:

  1. Channel delivery — the message reaches Agentforce from wherever it originated (web chat, Messaging, voice, Slack, etc.)
  2. Session routing — the platform sets up or resumes the conversation session
  3. Trust Layer safety check — an input-side safety/policy check runs before reasoning begins
  4. Topic/agent routing — the request is classified to the right topic or subagent
  5. Reasoning and planning — the agent decides what to do, including which action(s), if any, to call
  6. Action execution — any Flow/Apex/API actions run, including calls to external systems
  7. Response generation — the model generates the response text
  8. Grounding/accuracy validation — the response is checked against your data and instructions before delivery
  9. Delivery — the response is sent back through the originating channel

Every one of these steps takes some amount of time. Diagnosing slowness means finding out which step is taking longer than expected — not assuming it’s the model.

Step 3: See where the time is actually going

Don’t guess — Agentforce Observability is a built-in feature that gives you visibility into this directly:

  • Setup → search “Einstein Generative AI” → open Einstein Audit, Analytics, and Monitoring Setup → make sure Audit and Feedback and Agentforce Session Tracing are turned on.
  • Once enabled, session data (including step and turn duration) becomes queryable, and the built-in Agent Analytics dashboards surface agent-level performance and effectiveness metrics.

See Learn About Agentforce Observability and Troubleshoot Agentforce Agent Behavior Using Session Tracing Data Model for setup details. Step duration and turn duration data specifically are what you want for performance investigations — they tell you how long each part of a session actually took, rather than leaving you to infer it from how long a conversation felt.

A quick way to read the signal once you have it:

What you observeWhat it usually points to
Time to first token is slow, and it’s consistent across most requestsModel choice, instruction length, or topic/action count for that agent (Step 4, fixes 1 and 2)
Time to first token is fast, but the full response takes a while to completeResponse length, model choice, or lack of streaming (Step 4, fixes 1 and 3)
Slowness is concentrated around specific action callsThat action’s underlying Flow/Apex logic or the external system/API it calls (Step 4, fix 4)
Slowness is concentrated around knowledge/data retrieval stepsKnowledge base size, chunking, or an overly broad grounding scope (Step 4, fix 5)
Slowness appears mainly when a request crosses between topics/subagentsHandoff overhead between topics or subagents (Step 4, fix 6)
Slowness only shows up on one channel (e.g., voice, but not web chat)Channel-specific overhead rather than the agent’s reasoning itself (Step 4, fix 7, and see Step 5 for voice)
Slowness is broad, not tied to a specific topic/action, and doesn’t match any of the aboveWorth raising with Support — see Step 6


Step 4: Match the fix to what you found

#FixWhen it applies
1Match the model to the taskIf a topic only needs simple lookups or short factual answers, a faster/lighter model is often enough — reserve the most capable model for genuinely complex reasoning
2Shorten and simplify instructionsLong, paragraph-style instructions take longer for the model to process on every single turn. Instead of “Please make sure to always check with the customer about their device type before helping with any troubleshooting steps, since this affects what advice is relevant,” try “Before troubleshooting, identify the device type (iOS or Android) and include it in the search query.” Shorter, direct instructions are both faster and more reliable.
3Turn on streaming where supportedStreaming doesn’t reduce total processing time, but it gets the first part of the response in front of the user much sooner, which significantly improves how fast the interaction feels. Note this generally isn’t available for voice, where the full response is usually needed before it can be spoken.
4Reduce and parallelize action callsIf a turn depends on multiple sequential actions, check whether any can run in parallel instead of one-after-another, and check the response time of any external system/API an action calls — a slow downstream integration will make the agent look slow even when the agent itself is fine
5Optimize knowledge retrievalNarrow the grounding scope for a topic to what’s actually relevant, and check that knowledge content is chunked into reasonably sized, well-structured pieces rather than a few very large documents
6Minimize multi-agent/topic handoffsEach handoff between topics or subagents adds a processing step; keep the structure as shallow as the use case allows rather than routing through several layers by default
7Tune and test per channelVoice, chat, and messaging channels have different overhead. Benchmark each channel separately rather than assuming a fast web chat experience means voice will also be fast
8Escalate infrastructure/region concerns to SupportIf none of the above explains broad, consistent slowness, this is worth bringing to Support rather than continuing to tune configuration

A common misconception: Dynamic Voice Routing (DVR) simplifies how voice channels are configured and integrated, but it is not a latency fix by itself — don’t expect enabling it to resolve a slow-voice-agent problem on its own.

Step 5: Voice needs its own pass

Voice conversations feel slower than the same delay would feel in text, because real-time spoken conversation has much less tolerance for pauses. A few things specific to voice:

  • Voice latency includes components that text doesn’t: telephony/call setup, speech-to-text, routing, agent processing, text-to-speech, and the return path back to the caller. A delay can originate in any of these, not just in agent reasoning.
  • Target end-to-end response time for voice is meaningfully tighter than for chat — aim for well under 5 seconds where possible.
  • Keep voice-specific topics and instructions especially lean, and keep spoken responses reasonably short — a response that reads fine in chat can feel long when spoken aloud.
  • Test and benchmark voice as its own channel rather than assuming chat performance transfers over.

Step 6: Before contacting Support

If self-service tuning doesn’t resolve it, a well-described case reaches the right team faster. Include:

  • Whether the slowness is broad or isolated to a specific topic, action, or channel
  • Whether it’s consistent or intermittent, and roughly how often it happens
  • Session ID(s) or Session Tracing data for a few representative slow conversations
  • The approximate timeframe when you observed the slowness
  • Which channel(s) you tested (chat, voice, messaging, etc.) and whether behavior differs between them
  • What you’ve already tried from this guide, and the before/after result

This pairs with the general case-prep checklist in the Agentforce behavior troubleshooting guide — that guide covers unexpected/incorrect behavior, this one covers response speed, and the same session evidence is useful for both.

Lisäresurssit
Knowledge-artikkelin numero

005391243

 
Ladataan
Salesforce Help | Article