https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> , is there ping on retell s...
# ❓・ai-evy-support
v
@AI Evy , is there ping on retell sdk?
a
Thanks for tagging me @vikranth_46500. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [LLM WebSocket]() * [Platform Changelogs | Retell AI]() * [Pingpong issues when the agent is talking]() -----------------------------
### Answer Yes, Retell has a ping pong mechanism in their LLM websocket that works as follows: When
auto_reconnect
is set to true in the config event, Retell will: - Send ping_pong events every 2 seconds to keep the connection alive [(1)]() - Expect ping_pong events back from your server every 2 seconds - Close the connection if there's no ping_pong event for 5 seconds The ping_pong events include a timestamp that can be used to calculate round trip time . Some users have reported issues with ping_pong when the agent is talking, and have found success by setting
auto_reconnect: false
in their config [(2)]() . Here's an example config from the documentation:
Copy code
typescript
const config: CustomLlmResponse = {
            response_type: "config",
            config: {
              auto_reconnect: false,
              call_details: true,
            },
          };
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
@AI Evy , is it possible to do health check on retell sdk?
a
Thanks for the follow-up, @vikranth_46500. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [LLM WebSocket]() * [Secure the webhook]() * [SDKs]() * [Platform Changelogs | Retell AI]() -----------------------------
### Answer While there isn't a direct health check endpoint mentioned in the documentation, there are a few monitoring capabilities available: 1. You can verify webhook authenticity using the provided verify function in the SDKs [(1)]() 2. For websocket connections, you can use the ping/pong mechanism when
auto_reconnect
is enabled to monitor connection health [(2)]() 3. There is a status page available for monitoring system status [(3)]() 4. The get-call API provides latency tracking for LLM and websocket roundtrip times For the most up-to-date status information, you can check the status page mentioned in the changelog .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.