https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hi, We’re using the Retell Chat Widget on producti...
# ❓・ai-evy-support
k
Hi, We’re using the Retell Chat Widget on production and see a consistent 2–3s delay after clicking the chat icon before the chat becomes ready. What we’ve checked: The widget script loads fast: https://dashboard.retellai.com/retell-widget.js ~100ms (cached). The slowdown happens after click, during API calls: create-chat has a CORS preflight OPTIONS ~450–470ms then create-chat-completion takes ~3.0s TTFB (sometimes another call ~1.7s) Page performance is fine (LCP ~1.4s, INP ~24ms). The UI itself is not the bottleneck — network/TTFB is. Question: Is the delay expected because create-chat-completion triggers an LLM response (welcome message) on open? Is there a recommended way to make the chat open instantly (e.g., disable auto-completion / welcome generation on open, or preload create-chat in the background)? Any guidance to reduce create-chat-completion latency (config flags/features marked as “slow/turtle”, model choice, etc.)? Any recommendations to reduce/remove the CORS preflight overhead for widget endpoints?