Passthru Applet
4 min
the passthru applet enables dynamic call flow control by communicating with your application in real time when a call reaches this applet, exotel sends call details to your application url and uses your response to determine the next step how it works a call reaches the passthru applet in your flow exotel sends an http request to your application url with incoming call details your application processes the data (e g , looks up the caller in a crm) your application responds with an http status code the call flow branches based on your response decision making the passthru applet supports binary decisions using http status codes response code action 200 ok route to choice a (the applet connected to the "200" branch) 302 found route to choice b (the applet connected to the "302" branch) parameters sent to your url when a call reaches the passthru applet, exotel sends details about the incoming call to your application url for the complete list of parameters, refer to the passthru applet documentation use cases vip routing — check if the caller is a premium customer and route to priority support business hours — check if it's within office hours and route accordingly crm integration — look up the caller and route to their assigned account manager load balancing — distribute calls based on agent availability example flow incoming call → passthru (check crm) ├── 200 ok → connect (to assigned agent) └── 302 found → ivr menu (general support) tip use the passthru applet instead of statuscallbackevents when you're using voiceurl for call flows
