https://retellai.com/?utm_source=discord&utm_medium=seo logo
is it supported to do webhooks in the conversation...
# ❓・ai-evy-support
r
@AI Evy is it supported to do webhooks in the conversational flow at the node level, or can you only do it globally? if you add a webhook that's only supposed to be called in a very specific circumstance, for example, acquiring a Lambda function to check if the user exists in a given database, how do you ensure that it's only being called at that point and not later on?
a
Thanks for tagging me @reetamg. I'll look through relevant sources and get back to you shortly.
### Answer --- Yes, webhooks are supported at the node level in Conversation Flow through Function Nodes [(1) ]() . You can create custom functions that call your webhook endpoints for specific circumstances [(2) ]() . To ensure your webhook is only called at a specific point (like checking if a user exists in your database) , you would: 1. Create a Function Node at the exact point in your flow where you need the check [(1) ]() 2. Configure a Custom Function with your Lambda endpoint URL [(2) ]() 3. Use transition conditions to control when and where the flow moves based on the function result [(1) ]() When you configure the custom function, you specify the endpoint URL where Retell sends the request [(2) ]() . The function node will only execute when the conversation reaches that specific node in your flow [(1) ]() . You can control execution timing with these settings : - **Wait for Result**: When enabled, the agent waits for the function to finish before transitioning - **Speak During Execution**: Controls whether the agent speaks while the function runs The function result becomes available for use in transition conditions, allowing you to route the conversation differently based on whether the user exists in your database . This node-level approach ensures your webhook is called only when that specific node is reached in the conversation, not globally throughout the entire call. **
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.