diddy345_63419
10/15/2025, 9:55 PMAI Evy
10/15/2025, 9:55 PMAI Evy
10/15/2025, 9:56 PMAI Evy
10/15/2025, 9:56 PMjavascript
import { Retell } from "retell-sdk";
this.app.post("/check-weather", async (req: Request, res: Response) => {
if (
!Retell.verify(
JSON.stringify(req.body) ,
process.env.RETELL_API_KEY,
req.headers["x-retell-signature"] as string,
)
) {
console.error("Invalid signature") ;
return;
}
const content = req.body;
if (content.args.city === "New York") {
return res.json("25f and sunny") ;
} else {
return res.json("20f and cloudy") ;
}
}) ;
[(1) ]()
If you continue experiencing slow custom function calls, I'd recommend checking your server logs and response times to identify where the bottleneck might be occurring.AI Evy
10/15/2025, 9:56 PMX-Retell-Signature header :AI Evy
10/15/2025, 9:56 PM